[MEncoder-users] Mencoder v. SVN-r28642-4.2.4 AVI files incompatible with Avidemux

Jonathan Busby jonathanbusby at gmail.com
Thu Mar 19 21:54:25 CET 2009


I have been trying to find a way to cut DVD video with single frame
accuracy to no avail. Mencoder's EDL format is not frame-accurate
and unfortunately the program I usually use to cut video, Avidemux,
cannot deal with mixed progressive/interlaced streams due to its
crappy (de)muxer. Since I intend on transcoding parts of the DVD
video stream to H.264 anyway and in the process de-interlacing
it along with fixing its framerate, I thought I might as well encode
the entire segment of DVD video with x264 via Mencoder and then
use Avidemux to cut the progressive transcoded output. The problem
is that when I attempt to load the resulting AVI file into Avidemux
it complains about various parts of its structure being broken and
fails with the error that it cannot index it -- see here :
http://avidemux.org/admForum/viewtopic.php?id=5843 . If you read
the reply to my post at the linked forum then you'll see that someone
has suggested that my x264 library might be at fault as it is "only"
|"x264 - core" "55" . Seing this, I pulled the latest sources for x264
from its
SVN repo, compiled them, and then installed the resulting binaries and
libs. I then
recompiled Mplayer/Mencoder and re-installed it. After a re-encode which
used the
same parameters as the previous encode whose resulting AVI file could
not be loaded
into Avidemux, I again received the same error, but this time x264 was
at "57".
Doing an 'ls -al *x264*' on my '/usr/lib' directory shows that there is
the latest
version of the x264 library -- libx264.so.67 , to which libx264.so is a
symbolic
link -- but there is also a libx264.so.57 library which apparently was
picked up by
Mplayer/Mencoder during its recompile. Deleting the .57 library and
recompiling does
not work as invoking Mplayer or Mencoder results in a 'mplayer: error
while loading
shared libraries: libx264.so.57: cannot open shared object file: No such
file or
directory' error.

So, my question is twofold : why does Mplayer/Mencoder insist on using
the .57 version
of libx264 instead of the latest and what would cause Mencoder's output
to be
incompatible with Avidemux, as both use many of the same libraries?


For reference both encodes were initiated with the following Mencoder
command line :
'mencoder dvd://2 -ovc x264 -x264encopts crf=18 -oac mp3lame -lameopts
preset=insane -vf
pullup,hqdn3d=8:6:12,softskip,pp=ha:128:7/va/dr/l5/al/tn:64:128:256
-o test4.avi -ofps 24000/1001' ( note that this was only a test encode
to determine the
target bitrate )

Also, the complaints produced by Avidemux when attempting to load the
generated
AVI file follow :

'
Riff file detected...
AVI file detected...
** opening OpenDML files **
Main avi header :
chunk : Going out of bound!
chunk : Going out of bound!
chunk : Going out of bound!
Video track is 0
Track 0/1 :
vids (73646976)h264 (34363268)
Weird, there is no audio track, but more than one stream...
Main header
______________________
dwStreams: :2
dwMicroSecPerFrame: :41708
dwMaxBytesPerSec: :0
dwPaddingGranularity: :0
dwFlags: :2320
dwTotalFrames: :65595
dwInitialFrames: :0
dwWidth: :720
dwHeight: :480

video stream attached:
______________________
Extra Data : 505
0000 : ......???E????H? 00 00 00 01 06 05 ff ca dc 45 e9 bd e6 d9 48 b7
0010 : ?,? ?#??x264 - c 96 2c d8 20 d9 23 ee ef 78 32 36 34 20 2d 20 63
0020 : ore 57 - H.264/M 6f 72 65 20 35 37 20 2d 20 48 2e 32 36 34 2f 4d
0030 : PEG-4 AVC codec 50 45 47 2d 34 20 41 56 43 20 63 6f 64 65 63 20
0040 : - Copyleft 2005 2d 20 43 6f 70 79 6c 65 66 74 20 32 30 30 35 20
0050 : - http://www.vid 2d 20 68 74 74 70 3a 2f 2f 77 77 77 2e 76 69 64
0060 : eolan.org/x264.h 65 6f 6c 61 6e 2e 6f 72 67 2f 78 32 36 34 2e 68
0070 : tml - options: c 74 6d 6c 20 2d 20 6f 70 74 69 6f 6e 73 3a 20 63
0080 : abac=1 ref=1 deb 61 62 61 63 3d 31 20 72 65 66 3d 31 20 64 65 62
0090 : lock=1:0:0 analy 6c 6f 63 6b 3d 31 3a 30 3a 30 20 61 6e 61 6c 79
00a0 : se=0x1:0x111 me= 73 65 3d 30 78 31 3a 30 78 31 31 31 20 6d 65 3d
00b0 : hex subme=5 brdo 68 65 78 20 73 75 62 6d 65 3d 35 20 62 72 64 6f
00c0 : =0 mixed_ref=0 m 3d 30 20 6d 69 78 65 64 5f 72 65 66 3d 30 20 6d
00d0 : e_range=16 chrom 65 5f 72 61 6e 67 65 3d 31 36 20 63 68 72 6f 6d
00e0 : a_me=1 trellis=0 61 5f 6d 65 3d 31 20 74 72 65 6c 6c 69 73 3d 30
00f0 : 8x8dct=0 cqm=0 20 38 78 38 64 63 74 3d 30 20 63 71 6d 3d 30 20
0100 : deadzone=21,11 c 64 65 61 64 7a 6f 6e 65 3d 32 31 2c 31 31 20 63
0110 : hroma_qp_offset= 68 72 6f 6d 61 5f 71 70 5f 6f 66 66 73 65 74 3d
0120 : 0 threads=1 nr=0 30 20 74 68 72 65 61 64 73 3d 31 20 6e 72 3d 30
0130 : decimate=1 mbaf 20 64 65 63 69 6d 61 74 65 3d 31 20 6d 62 61 66
0140 : f=0 bframes=0 ke 66 3d 30 20 62 66 72 61 6d 65 73 3d 30 20 6b 65
0150 : yint=250 keyint_ 79 69 6e 74 3d 32 35 30 20 6b 65 79 69 6e 74 5f
0160 : min=25 scenecut= 6d 69 6e 3d 32 35 20 73 63 65 6e 65 63 75 74 3d
0170 : 40 rc=crf crf=18 34 30 20 72 63 3d 63 72 66 20 63 72 66 3d 31 38
0180 : .0 rceq='blurCpl 2e 30 20 72 63 65 71 3d 27 62 6c 75 72 43 70 6c
0190 : x^(1-qComp)' qco 78 5e 28 31 2d 71 43 6f 6d 70 29 27 20 71 63 6f
01a0 : mp=0.60 qpmin=10 6d 70 3d 30 2e 36 30 20 71 70 6d 69 6e 3d 31 30
01b0 : qpmax=51 qpstep 20 71 70 6d 61 78 3d 35 31 20 71 70 73 74 65 70
01c0 : =4 ip_ratio=1.40 3d 34 20 69 70 5f 72 61 74 69 6f 3d 31 2e 34 30
01d0 : .?....gM at 3?t.??? 00 80 00 00 00 01 67 4d 40 33 9a 74 05 a1 ed ff
01e0 : ?...?...H..?.x? 80 04 00 04 88 00 00 1f 48 00 05 dc 04 78 c1 95
01f0 : ....h?.<? 00 00 00 01 68 ee 02 3c 80
fccType :vids (73646976)
fccHandler :h264 (34363268)
dwFlags: :0
dwInitialFrames: :0
dwRate: :24000
dwStart: :0
dwSampleSize: :0
dwScale: :1001
dwLength: :65595
dwQuality: :0
dwSampleSize: :0
biSize: :545
biWidth: :720
biHeight: :480
biBitCount: :24
biCompression: :875967080
h264 (34363268)
biSizeImage: :1036800
biXPelsPerMeter: :0
biYPelsPerMeter: :0
biClrUsed: :0
_regularIndex.offset : no
_Tracks[vidTrack].indx.offset : no
Could not index it properly...
'

Any insight into this problem would be appreciated.

Jonathan



|



More information about the MEncoder-users mailing list