Log in

View Full Version : Mencoder seems to create incorrect AVI files


LigH
20th May 2006, 10:25
Excuse me starting this thread in "General discussion", but I don't know where to put it exactly. It is not related to a specific codec probably, AVI is not a "new container", Mencoder is not a GUI ...

Moderators: Please move where you believe it fits best.
__

In the german doom9/Gleitz board, there have been a few issues reported, trying to use Mencoder to create bigger AVI files (like >1 GB, up to <4 GB), one using the XviD encoder in Mencoder CVS-060101 (MeGUI 0.2.3.2116) to build HDTV videos, another with not yet known used codec, but at least the version reported (mplayer2006.01.01.P4.7z by celticdruid).

Both have the problem that those AVIs cannot be opened by VirtualDub(Mod) or even played in any player, including Mplayer.

For the ~4 GB file, VirtualDub tries to reconstruct the index block, but can't advance beyond ~1/4 (probably 1 GB). AviMux_GUI tells 2 times "qwPos<0" and crashes.

For those who know some german:

http://forum.gleitz.info/showthread.php?t=28228
http://forum.gleitz.info/showthread.php?t=28114

I wonder if anyone here can confirm such issues. If so, we will try to contact Mencoder developers. But before we shout that Mencoder is buggy with big AVI files, maybe someone has an idea if a command line switch could be missing, or similar stupid mistakes were made by the user.

GodofaGap
20th May 2006, 11:25
I can confirm and I believe this is happening for more than a year now. IIRC the problem was/is that mencoder writes invalid byte positions for the opendml riff chunks in the header. It has nothing to do with the codec, you can easily recreate it when using uncompressed data.

I reported this on the mplayer channel on freenode around March last year, but I guess no one came around to fix it yet. Or it wasn't considered important enough to fix.

Gusar
20th May 2006, 12:17
It's the old mingw issue. For largefile support one needs to compile mencoder with a patched mingw. The versions those people used probably weren't compiled that way. I think ChronoCross uses the mingw patch for his mencoder builds, so the best advice is, everyone should update to his latest build. It's in the MeGUI-Essentials package on his page: http://chronocrossdev.com/apps/megui/

celtic_druid
21st May 2006, 10:07
I just created a 4.09GB file (-ovc raw -oac pcm) and it opens fine in VDubMod. I'd suggest that you update to a newer mencoder build.

LigH
21st May 2006, 13:13
Indeed, 060101 sounds a bit outdated...

What are your "not too CPU-optimized" builds on http://ffdshow.faireal.net/mirror/mplayer/ - is "Pent-M" = Pentium-MMX, or do they all require at least SSE?
__

Obviously not, crashes on a Duron Spitfire. :( - The "Tbird" builds from 2005 are the last which work for me.

celtic_druid
21st May 2006, 13:39
Pent-M = Pentium M.
The tbird build got dropped since it did so poorly in my poll. There should be one more recent than Jan though.

LigH
21st May 2006, 15:37
:mad: [ Edit of edit ... ]

All download mirrors from mplayerhq.hu are outdated. And except those, I know only your builds so far. And your ^ mirror only displays April-May.

celtic_druid
21st May 2006, 16:15
mplayer2006.03.27.tbird.7z
That was the last build I did.

http://mirror05.x264.nl/celtic_druid/force.php?file=./mplayer2006.03.27.tbird.7z
Tested ok playing a 7GB mpg file, so it should be ok creating 4GB avi's.

LigH
21st May 2006, 22:31
:) Many thanks.

The second member who reported this issue, used a P4 build, so he will be happy with your "bleeding edge" builds.