why will ffmpeg not output my video?? class VideoWorker < BackgrounDRb::Rails def do_work(args) video = Video.find(args[:video_id]) video.processing_status = 1 video.save system("ffmpeg -i #{video.public_filename} -b 256k -vcodec h264 -acodec aac ~/Desktop/movie.mp4") video.processing_status = 2 video.save end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nevermind forgot RAILS_ROOT edberner wrote:> why will ffmpeg not output my video?? > > class VideoWorker < BackgrounDRb::Rails > def do_work(args) > video = Video.find(args[:video_id]) > video.processing_status = 1 > video.save > > system("ffmpeg -i #{video.public_filename} -b 256k -vcodec > h264 -acodec aac ~/Desktop/movie.mp4") > > video.processing_status = 2 > video.save > end > end--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 15, 2008 11:28 AM, edberner <eberner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Nevermind forgot RAILS_ROOT > > > edberner wrote: > > why will ffmpeg not output my video?? > > > > class VideoWorker < BackgrounDRb::Rails > > def do_work(args) > > video = Video.find(args[:video_id]) > > video.processing_status = 1 > > video.save > > > > system("ffmpeg -i #{video.public_filename} -b 256k -vcodec > > h264 -acodec aac ~/Desktop/movie.mp4") > > > > video.processing_status = 2 > > video.save > > end > > endI will also suggest you to upgrade the BackgrounDRB version. May be 1.0.1 . -- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, It seams you are working on site similar to youtube. Kindly share your experience on following: 1) Where you store the files (database or file system) 2) How can we manage the storage if thousands of videos gets uploaded every day 3) Which player you are using to stream the video Just trying to learn how youtube manages their traffic -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---