FORUMS: list search recent posts

combining mpeg files

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Peter Robertson
combining mpeg files
on Jun 6, 2012 at 4:56:27 pm

I'm using this:

ffmpeg cat test_0.mpeg test_12.mpeg > comp.mpeg

to combine to files. The output file (comp.mpeg) is only the second file. Each of the input files is 10 seconds. Am I missing something here? Why is my first file not merged with the second??

Thanks.

Pedro

Pedro


Return to posts index

Reuben Martin
Re: combining mpeg files
on Jun 7, 2012 at 3:04:43 am

cat test_0.mpeg test_12.mpeg | ffmpeg -i - -vcodec copy -acodec copy -f mpeg comp.mpeg


Return to posts index

Peter Robertson
Re: combining mpeg files
on Jun 8, 2012 at 4:54:33 pm

That works! Thanks.

Pedro

Pedro


Return to posts index


stephen dixon
Re: combining mpeg files
on Jun 12, 2012 at 12:42:48 pm

You don't need to pipe it through ffmpeg. What you're doing wrong is using > instead of >>
The single angle brace overwrites whatever's already in the file, the double brace appends it to the end. See section 3.6.3 here


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]