Log in

View Full Version : mencoder and vop packed bitstream divx/xvid avi


WalterK
28th September 2007, 04:33
I noticed when trying to play these types of files in mplayer it would report that the file in question was badly interleaved so the argument -forceidx would have to be used for playback.
However other media players like vlc had no problem playing the files.
I could have just left the problem alone and used vlc , but i wanted to fix the problem enter avidemux it identified the file as having a packed bitstream so i just saved it again as a normal avi and mplayer played it correctly with no errors.
I decided to try mencoder to see if i could achieve the samething.

mencoder input.avi -ovc copy -oac copy -forceidx -of avi -o test.avi
everything should work correctly and the output file played in mplayer but i noticed something not only was the file a few mbs smaller it also seemed to have less runtime and a playback of the original and the new version in vlc proved this, the file encoded via mencoder was missing the last four minutes according to the timestamp and audio became badly out of sync near the end.

The output file created with avidemux was equal in file size to the original and had the same runtime the settings for that was -ovc copy -oac copy and -of avi (it didn't use those specific arguments but that is what was selected from via the gui) the only difference is avidemux unpacked the bitstream which i assumed -forceidx did for mencoder/mplayer

So i am trying to figure out is it my encoding argument that is wrong somehow or is it something to do with mencoder and vop packed bitstreams in xvid/divx files?
Anyone has any ideas?

nm
28th September 2007, 10:12
So i am trying to figure out is it my encoding argument that is wrong somehow or is it something to do with mencoder and vop packed bitstreams in xvid/divx files?
Anyone has any ideas?
Probably this: http://lists.mplayerhq.hu/pipermail/mplayer-users/2005-February/051635.html

WalterK
28th September 2007, 21:00
thanks for the info so mencoder doesn't handle packed bitstream encoded files.
A shame i always like to have a fall back program.

i guess vlc's basic transcoder should work as well as avidemux i will have to check that.