Brad
Brad

Reputation: 1177

Combining Multiple MPG Files

I have an interesting problem...

I have created multiple mpg files (5 total) using FFMPEG. Once the files are done the are 30 seconds in length, I did this purposefully.

My Problem is, when I cat *.mpg >> final.mpg it creates the final.mpg but chops off a totally of 18 seconds. Its approximately 3.2 seconds of each mpg.

Does anyone know a better way to combine these files using bash without loosing those extra seconds?

Thanks in advance!

Upvotes: 1

Views: 541

Answers (1)

ephemient
ephemient

Reputation: 204678

Using MPlayer,

mencoder -oac copy -ovc copy -of mpeg -o final.mpg input1.mpg input2.mpg input3.mpg ...

However, given the workflow that you stated… wouldn't it be easier to just pass all the images to FFmpeg at once?

Upvotes: 1

Related Questions