PDA

View Full Version : Mencoder .AVI - .264 - mp4box


Panky
11th February 2007, 20:58
Hello, i'm using Mencoder to , as i put in the title, encode a .AVI file into a .264 and then place both the audio and video in a mp4 container. I have searched and searched(not only in this forum) and i couldn't get a clear answer to my problem. When i try encoding an avi file with this

"mencoder -oac copy -ovc x264 -x264encopts subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b -o output.264 -of rawvideo -vf harddup -ofps 25 input.avi""

I get: "Badly interleaved avi file detected - switching to -ni mode
Cannot seek backward in linear streams!
Seek Failed
"

I tried opening it with virtualDub, and i could re-export it again into another .avi file and i CAN encode it, but man, if i encode it 3 times the quality and a/v synch won't be any good. Does someone have an answer to this? Thanks.

nm
11th February 2007, 21:31
Try adding parameters -noskip and -forceidx. If that doesn't help, try first without a cache (-nocache) and then with larger cache values (-cache 8192; or perhaps -cache 16384).

LoRd_MuldeR
11th February 2007, 23:08
The problem with MEncoder here is, that it is limited to AVI or Raw for output.

Did you think of using Avidemux to do the encoding?
This way you could convert to AVI -> h.264/MP4 directly!

http://fixounet.free.fr/avidemux/win32/r2811_win32.zip

Panky
17th February 2007, 02:40
Hi, thanks for your answers guys, but with avidemux (already tried before) the image is strange, with strange lines :
http://img444.imageshack.us/img444/2989/dibujocu6.jpg

If it's of help, i've exported the video from Adobe Premiere Pro 2.0 in HUFFYUV format. Thanks

FIX: the Avidemux you gave me doesn't have that problem, only a green line below, do you know why?

FIX2: I was wrong... the problem stills is with this version... i said taht before because i accidentaly used another version of the .avi that passed before by virtualdub... anyone knows if the problem is adobe premiere or my pc?