Hi all. I am using ffmpeg to convert my video files to flv format. Now i need to merge or join two flv files. Any suggestions?? Thanks Arpit --~--~---------~--~----~------------~-------~--~----~ 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 11 Jan 2008, at 15:12, arpit jain wrote:> I am using ffmpeg to convert my video files to flv format. > Now i need to merge or join two flv files. > Any suggestions??Not Rails related at all, but here we go: Second google search result: http://www.google.com/search?client=safari&rls=en&q=ffmpeg+join+flv +files&ie=UTF-8&oe=UTF-8 http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2007-February/ 006849.html And if u''re doing this from your Rails app, i would strongly suggest handing it over to backgroundrb for processing. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter De Berdt wrote:> On 11 Jan 2008, at 15:12, arpit jain wrote: > >> I am using ffmpeg to convert my video files to flv format. >> Now i need to merge or join two flv files. >> Any suggestions?? > > > Not Rails related at all, but here we go: > > Second google search result: > http://www.google.com/search?client=safari&rls=en&q=ffmpeg+join+flv > +files&ie=UTF-8&oe=UTF-8 > > http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2007-February/ > 006849.html > > And if u''re doing this from your Rails app, i would strongly suggest > handing it over to backgroundrb for processing. > > Best regards > > Peter De Berdtmkfifo temp1.a mkfifo temp1.v mkfifo temp2.a mkfifo temp2.v mkfifo all.a mkfifo all.v ffmpeg -i input1.flv -vn -f u16le -acodec pcm_s16le -ac 2 -ar 44100 - > temp1.a < /dev/null & ffmpeg -i input2.flv -vn -f u16le -acodec pcm_s16le -ac 2 -ar 44100 - > temp2.a < /dev/null & ffmpeg -i input1.flv -an -f yuv4mpegpipe - > temp1.v < /dev/null & ffmpeg -i input2.flv -an -f yuv4mpegpipe - > temp2.v < /dev/null & cat temp1.a temp2.a > all.a & cat temp1.v temp2.v > all.v & ffmpeg -f u16le -acodec pcm_s16le -ac 2 -ar 44100 -i all.a \ -f yuv4mpegpipe -i all.v \ -sameq -y output.flv rm temp[12].[av] all.[av] i am using this code as given in the ffmpeg docs. but its not working... i am getting pipe broken error. any solution?? Thanks Arpit -- 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 -~----------~----~----~----~------~----~------~--~---
I am also getting the same error... still working on it. Did find a solution so far? On 11 Jan., 17:12, Arpit Jain <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Peter De Berdt wrote: > > On 11 Jan 2008, at 15:12, arpit jain wrote: > > >> I am using ffmpeg to convert my video files to flv format. > >> Now i need to merge or join two flv files. > >> Any suggestions?? > > > Not Rails related at all, but here we go: > > > Second google search result: > >http://www.google.com/search?client=safari&rls=en&q=ffmpeg+join+flv > > +files&ie=UTF-8&oe=UTF-8 > > >http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2007-February/ > > 006849.html > > > And if u''re doing this from your Rails app, i would strongly suggest > > handing it over to backgroundrb for processing. > > > Best regards > > > Peter De Berdt > > mkfifo temp1.a > mkfifo temp1.v > mkfifo temp2.a > mkfifo temp2.v > mkfifo all.a > mkfifo all.v > ffmpeg -i input1.flv -vn -f u16le -acodec pcm_s16le -ac 2 -ar 44100 - > > temp1.a < /dev/null & > ffmpeg -i input2.flv -vn -f u16le -acodec pcm_s16le -ac 2 -ar 44100 - > > temp2.a < /dev/null & > ffmpeg -i input1.flv -an -f yuv4mpegpipe - > temp1.v < /dev/null & > ffmpeg -i input2.flv -an -f yuv4mpegpipe - > temp2.v < /dev/null & > cat temp1.a temp2.a > all.a & > cat temp1.v temp2.v > all.v & > ffmpeg -f u16le -acodec pcm_s16le -ac 2 -ar 44100 -i all.a \ > -f yuv4mpegpipe -i all.v \ > -sameq -y output.flv > rm temp[12].[av] all.[av] > > i am using this code as given in the ffmpeg docs. > but its not working... > i am getting pipe broken error. > any solution?? > > Thanks > Arpit > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
Andreas wrote:> I am also getting the same error... still working on it. Did find a > solution so far? > > > On 11 Jan., 17:12, Arpit Jain <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Hi Andreas. I am also working on it but could not solve. Also trying to use mencoder for it, but am facing fps(frames per second) error. If u got any solution please post it. -- 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 -~----------~----~----~----~------~----~------~--~---
Arpit Jain wrote:> Andreas wrote: >> I am also getting the same error... still working on it. Did find a >> solution so far? >> >> >> On 11 Jan., 17:12, Arpit Jain <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > Hi Andreas. > I am also working on it but could not solve. > Also trying to use mencoder for it, but am facing fps(frames per > second) error. > If u got any solution please post it.Hi. I have used ffmpeg to convert video files to flv format and mencoder to merge them.Mencoder merge the two flv files into one file that is in avi format. But i need the resultant file in flv format.So i again applied ffmpeg command on the merged file and got the flv file. Now i am using backgroundrb process to handle all this, but i want to do it in the action of controller or any model function.Ffmpeg works fine but mencoder is creating issues.I have got the error that input file is truncated while running mencoder command. Any suggestions?? Thanks -- 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 -~----------~----~----~----~------~----~------~--~---