Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques combining mpeg files

  • combining mpeg files

    Posted by Peter Robertson on June 6, 2012 at 4:56 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

    Stephen Dixon replied 13 years, 11 months ago 3 Members · 3 Replies
  • 3 Replies
  • Reuben Martin

    June 7, 2012 at 3:04 am

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

  • Peter Robertson

    June 8, 2012 at 4:54 pm

    That works! Thanks.

    Pedro

    Pedro

  • Stephen Dixon

    June 12, 2012 at 12:42 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy