I am using ffmpeg to convert my video files to flv format.
Now i need to merge or join two flv files.
Any suggestions??
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 via http://www.ruby-forum.com/.
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