Merge two flv files

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

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

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

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 J. [email protected]

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.

I am also getting the same error… still working on it. Did find a
solution so far?

On 11 Jan., 17:12, Arpit J. [email protected]

Arpit J. 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 J. [email protected]

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

arpit jain wrote in post #615808:

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

Here is a step by step guide on how to join multiple FLV files at:
http://www.faasoft.com/articles/join-flv-files.html

It also applies to join MP4, AVI, MOV, WMV, MKV, ASF, MP3, WAV, AAC,
AC3, FLAC, etc on both Mac and Windows.

It also allows you to merge FLV files w/o re-encoding.

To merge FLV files, you could try Joyoshare FLV Joiner. I have been always using it to merge video clips into one file. It is easy to use and supports various video formats.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs