Support and General Use > Plugins/Viewers

Wrong duration header when joining .mpg files with cat:

<< < (3/3)

dreamlayers:
Using Mencoder (version Sherpya-MT-SVN-r30521, distributed as a part of Mplayer), the following works for me:
--- Code: ---mencoder -of mpeg -ovc copy -oac copy inputfile.mpg -o outputfile.mpg
--- End code ---

saratoga:

--- Quote from: jccc on September 06, 2010, 02:13:40 PM ---
--- Quote from: saratoga on September 06, 2010, 10:47:27 AM ---I'm not sure how MPG works, but I doubt a binary join is going to work very well.  Short of running through the entire file to see how many segments there are, how would you even determine the file length?

--- End quote ---

A Google search for how to join multiple .mpg files returns page after page of suggestions simply to use cat.  Also, the FAQ for ffmpeg (suggested by Rockbox's docs for the .mpg player plugin) itself says to use cat.

The test I mentioned above gave me a fully joined mpg file.  (I can play this video, although different players get confused in different ways by the incorrect length header.)  And running this file through ffmpeg once more (ostensibly unchanged w/ -sameq) even gives me the correct length header, but fattens up my file.

--- End quote ---

I didn't ask why you tried to do this, I'm just pointing out that if you think about what you're doing, you'll realize that theres no way it could work :) 

Navigation

[0] Message Index

[*] Previous page

Go to full version