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?
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?