[Mplayer-advusers] bugreport: xvid encoding broken
Martin Hoffmann
ma.hoff at t-online.de
Thu Sep 19 21:40:45 CEST 2002
I did not use divx5's .h files !
I took divx4.h from xvid package (renaming it to decore.h and to encore2.h) -
and for old mencoder (June 2002) this worked fine !
I just tried decore.h and encore2.h from divx4linux - making the effect even
worse :-( - My testfile grew to ~300MB, when i had to kill mencoder :-(((
And mencoder did not even report frame=1 - this seems to be some pre-init
!???
Martin
> Hi,
>
> someoen said on -users that using encore.h & decore.h from old divx4linux
> (instead of divx5linux) helps, as xvid's divx4 layer is for old lib.
> so bad that xvid doesn't provide these files in its package
>
> > Hi,
> >
> > i want to report a problem i encounter with mencoder (this time _with_
> > proper bug report, i hope ;-) encoding to xvid (in divx4/5 compat. mode)
> >
> > When i try to encode a video (tested with several source mpegs) to lavc
> > all works as expected, when using xvid instead, the output avi is way too
> > large and only contains very colourful macro blocks :-/ I like to say
> > here, that this once worked with earlier mplayer/mencoder versions, and
> > even with todays xvid, so its quite xvid independant ! (see below)
> >
> > I use the following commandline to encode to xvid:
> > cat $SRC | /usr/local/bin/mencoder -v -v -o out.avi -oac mp3lame -ovc
> > divx4 -divx4opts br=900:q=5 -pass 1 -- -
> >
> > and after that -pass 2 !
> > If i use large input files sometimes giant output files are created on
> > the first frame (mencoder report frame=1) and several gigabyte (!) of
> > out.avi are generated ...
> >
> > However this behaviour was introduced in mencoder since beginning of June
> > this year (from early June, everything was okay!) - maybe this helps !?
> >
> > See bugreport.txt containing system information and output.txt for
> > stdout/errout from mencoder calls attached !
> >
> > However seeing output from mencoder makes me think that only 5 frames are
> > encoded ? I like to mention here that these 5 frames take 3,2 MB as
> > out.avi
> >
> > :-(
> >
> > I did some earlier encodes that created an output file even larger, which
> > could be played back, but had completely crazy colours (flickering and
> > really pop-art !) - so maybe some colorspace conversion bug ? Just an
> > idea :-)
> >
> > I hope my descriptions can help finding this problem !
> >
> > If you need any output files for analysis or anything else just drop me a
> > note !
> >
> > Martin.
> >
> >
> >
> >
> >
> > ### Distri
> > SuSE 8.0 - also occurs with my SuSE 7.3 / 7.2
> > ### Kernel
> > Linux thundertux 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown
> > ### libc
> > -rwxr-xr-x 1 root root 1394238 Mär 23 19:34 /lib/libc.so.6
> > ### gcc
> > Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
> > gcc version 2.95.3 20010315 (SuSE)
> > ### ld
> > GNU ld version 2.11.92.0.10 20011021 (SuSE)
> > ### as
> > GNU assembler 2.11.92.0.10 (SuSE)
> > Copyright 2001 Free Software Foundation, Inc.
> > This program is free software; you may redistribute it under the terms of
> > the GNU General Public License. This program has absolutely no warranty.
> > This assembler was configured for a target of `i486-suse-linux'.
> > ### cpu info
> > processor : 0
> > vendor_id : AuthenticAMD
> > cpu family : 6
> > model : 4
> > model name : AMD Athlon(tm) Processor
> > stepping : 2
> > cpu MHz : 857.662
> > cache size : 256 KB
> > fdiv_bug : no
> > hlt_bug : no
> > f00f_bug : no
> > coma_bug : no
> > fpu : yes
> > fpu_exception : yes
> > cpuid level : 1
> > wp : yes
> > flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat
> > pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
> > bogomips : 1710.48
> > ### video independant
> >
> >
> >
> >
> > MEncoder CVS-020919-18:10-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
> >
> > CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping:
> > 2) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
> > Reading /root/.mplayer/codecs.conf: can't open '/root/.mplaye
> > r/codecs.conf': No such file or directory
> > Reading /usr/local/etc/mplayer/codecs.conf: 38 audio & 106 video codecs
> > File not found: 'frameno.avi'
> > get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
> > font: can't open file: /root/.mplayer/font/font.desc
> > font: can't open file: /usr/local/share/mplayer/font/font.desc
> > Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> > Not an URL!
> > Reading from stdin...
> > success: format: 0 data: 0x0 - 0x0
> > Checking for YUV4MPEG2
> > Failed: YUV4MPEG2
> > DEMUXER: freeing demuxer at 0x833a4c0
> > ASF_check: not ASF guid!
> > DEMUXER: freeing demuxer at 0x833a4c0
> > Checking for NuppelVideo
> > DEMUXER: freeing demuxer at 0x833a4c0
> > Checking for MOV
> > DEMUXER: freeing demuxer at 0x833a4c0
> > Checking for VIVO
> > header block 1 size: 0
> > DEMUXER: freeing demuxer at 0x833a4c0
> > Checking for REAL
> > DEMUXER: freeing demuxer at 0x833a4c0
> > DEMUXER: freeing demuxer at 0x833a4c0
> > DEMUXER: freeing demuxer at 0x833a4c0
> > DEMUXER: freeing demuxer at 0x833a4c0
> > DEMUXER: freeing demuxer at 0x833a4c0
> > Checking for SMJPEG
> > DEMUXER: freeing demuxer at 0x833a4c0
> > OGG demuxer : Bad page sync
> > DEMUXER: freeing demuxer at 0x8336578
> > Checking for PVA
> > Failed: PVA
> > DEMUXER: freeing demuxer at 0x8336578
> > system stream synced at 0x180B (0)!
> > ==> Found audio stream: 0
> > ==> Found video stream: 0
> > Detected MPEG-PS file format!
> > Searching for sequence header... OK!
> > VIDEO: MPEG1 192x144 (aspect 1) 25.00 fps 400.0 kbps (50.0 kbyte/s)
> > [V] filefmt:2 fourcc:0x10000001 size:192x144 fps:25.00 ftime:=0.0400
> > Detected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> > Initializing audio codec...
> > Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> > dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
> > mp3lib: made decode tables with MMX optimization
> > init layer2&3 finished, tables done
> > mp3lib: using 3DNow!Ex optimized decore!
> > .MPEG 1.0, Layer II, 32000 Hz 96 kbit Stereo, BPF: 432
> > Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
> > AUDIO: srate=32000 chans=2 bps=2 sfmt=0x10 ratio: 12000->128000
> > Opening video filter: [expand=-1:-1:-1:-1:1]
> > Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
> > =========================================================================
> >= Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> > VDec: vo config request - 192 x 144 (preferred csp: Mpeg PES)
> > vo_debug: query(Mpeg PES) returned 0x0 (i=0)
> > Couldn't find matching colorspace - retrying with -vop scale...
> > Opening video filter: [scale]
> > SwScale params: -1 x -1 (-1=no scaling)
> > vo_debug: query(Mpeg PES) returned 0x0 (i=0)
> > Sorry, selected video_out device is incompatible with this codec.
> > VDecoder init failed :(
> > Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
> > libmpeg2: Using MMXEXT for IDCT transform
> > libmpeg2: Using MMXEXT for motion compensation
> > VDec: vo config request - 192 x 144 (preferred csp: Planar YV12)
> > vo_debug: query(Planar YV12) returned 0x403 (i=0)
> > VDec: using Planar YV12 as output csp (no 0)
> > Movie-Aspect is undefined - no prescaling applied.
> > VO Config (192x144->192x144,flags=0,'MPlayer',0x32315659)
> > REQ: flags=0x3 req=0x0
> > Detected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2)
> > =========================================================================
> >= LAME version 3.92 (alpha 1, Mar 16 2002 14:12:41)
> > (http://www.mp3dev.org/) Using polyphase lowpass filter, transition
> > band: 16129 Hz - 16516 Hz
> >
> > misc:
> >
> > scaling: 0.000000
> > ch0 (left) scaling: 0.000000
> > ch1 (right) scaling: 0.000000
> > filter type: 0
> > quantization: ISO
> > huffman search: normal
> > experimental X=0 Y=0 Z=0
> > ...
> >
> > stream format:
> >
> > MPEG-1 Layer 3
> > 2 channel - stereo
> > padding: auto
> > variable bitrate - VBR rh (default)
> > ...
> >
> > psychoacoustic:
> >
> > tonality estimation limit: 8871.700195 Hz
> > using short blocks: allowed
> > adjust masking: -1.000000 dB
> > psymodel: 1
> > noise shaping: 1
> > ^ amplification: 0
> > ^ stopping: 0
> > ATH: using
> > ^ type: 4
> > ^ adjust type: 3
> > ^ adapt threshold type: 2
> > using temporal masking effect: yes
> > interchannel masking ratio: 0.000000
> > ...
> >
> > MP3 audio selected
> > ======= WAVE Format =======
> > Format Tag: 85 (0x55)
> > Channels: 2
> > Samplerate: 32000
> > avg byte/sec: 24000
> > Block align: 1152
> > bits/sample: 0
> > cbSize: 12
> > mp3.wID=1
> > mp3.fdwFlags=0x2
> > mp3.nBlockSize=1152
> > mp3.nFramesPerBlock=1
> > mp3.nCodecDelay=0
> > Writing AVI header...
> > OSD chg: 3 V: no pb:-1
> > OSD chg: 2 V: no pb:-1
> > *** [divx4] Allocating mp_image_t, 192x144x12bpp YUV planar, 41472 bytes
> > (imgfmt: 32315659, planes: 84134c0,841bbc0,841a0c0 strides: 192,96,96,
> > chroma: 96x72, shift: h:1,v:1)
> > *** [expand] Direct Rendering mp_image_t, 192x144x12bpp YUV planar, 41472
> > bytes (imgfmt: 32315659, planes: 84134c0,841bbc0,841a0c0 strides:
> > 192,96,96, chroma: 96x72, shift: h:1,v:1)
> > mpeg2: [P] 0x833a290 DR!
> > Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
> > A/Vms 4/0 D/B/S 0/1/0
> > *** [divx4] Allocating mp_image_t, 192x144x12bpp YUV planar, 41472 bytes
> > (imgfmt: 32315659, planes: 841d940,8426040,8424540 strides: 192,96,96,
> > chroma: 96x72, shift: h:1,v:1)
> > *** [expand] Direct Rendering mp_image_t, 192x144x12bpp YUV planar, 41472
> > bytes (imgfmt: 32315659, planes: 841d940,8426040,8424540 strides:
> > 192,96,96, chroma: 96x72, shift: h:1,v:1)
> > mpeg2: [B] 0x833a360 DR!
> > OSD chg: 3 V: no pb:-1
> > OSD chg: 2 V: no pb:-1
> > Pos: 0.0s 2f ( 0%) 0fps Trem: 0min 0mb A-V:-0.004 [0:0]
> > A/Vms 4/1 D/B/S 0/1/0 .mpeg2: [B] 0x833a360 DR!
> > Pos: 0.1s 3f ( 0%) 0fps Trem: 0min 0mb A-V:-0.008 [0:0]
> > A/Vms 4/2 D/B/S 0/1/0
> > *** [divx4] Allocating mp_image_t, 192x144x12bpp YUV planar, 41472 bytes
> > (imgfmt: 32315659, planes: 8427dc0,84304c0,842e9c0 strides: 192,96,96,
> > chroma: 96x72, shift: h:1,v:1)
> > *** [expand] Direct Rendering mp_image_t, 192x144x12bpp YUV planar, 41472
> > bytes (imgfmt: 32315659, planes: 8427dc0,84304c0,842e9c0 strides:
> > 192,96,96, chroma: 96x72, shift: h:1,v:1)
> > mpeg2: [P] 0x840db90 DR!
> > Pos: 0.1s 4f ( 0%) 0fps Trem: 0min 0mb A-V:-0.012 [0:0]
> > A/Vms 5/2 D/B/S 0/1/0 .mpeg2: [B] 0x833a360 DR!
> > Pos: 0.2s 5f ( 0%) 0fps Trem: 0min 0mb A-V:-0.016 [0:0]
> > A/Vms 4/11 D/B/S 0/1/0 .out.avi: error writing file.
> > Exiting...
> >
> >
> > MEncoder CVS-020919-18:10-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
> >
> > CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping:
> > 2) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
> > Reading /root/.mplayer/codecs.conf: can't open '/root/.mplaye
> > r/codecs.conf': No such file or directory
> > Reading /usr/local/etc/mplayer/codecs.conf: 38 audio & 106 video codecs
> > File not found: 'frameno.avi'
> > get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
> > font: can't open file: /root/.mplayer/font/font.desc
> > font: can't open file: /usr/local/share/mplayer/font/font.desc
> > Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> > Not an URL!
> > Reading from stdin...
> > success: format: 0 data: 0x0 - 0x0
> > Checking for YUV4MPEG2
> > Failed: YUV4MPEG2
> > DEMUXER: freeing demuxer at 0x833a4c0
> > ASF_check: not ASF guid!
> > DEMUXER: freeing demuxer at 0x833a4c0
> > Checking for NuppelVideo
> > DEMUXER: freeing demuxer at 0x833a4c0
> > Checking for MOV
> > DEMUXER: freeing demuxer at 0x833a4c0
> > Checking for VIVO
> > header block 1 size: 0
> > DEMUXER: freeing demuxer at 0x833a4c0
> > Checking for REAL
> > DEMUXER: freeing demuxer at 0x833a4c0
> > DEMUXER: freeing demuxer at 0x833a4c0
> > DEMUXER: freeing demuxer at 0x833a4c0
> > DEMUXER: freeing demuxer at 0x833a4c0
> > DEMUXER: freeing demuxer at 0x833a4c0
> > Checking for SMJPEG
> > DEMUXER: freeing demuxer at 0x833a4c0
> > OGG demuxer : Bad page sync
> > DEMUXER: freeing demuxer at 0x8336578
> > Checking for PVA
> > Failed: PVA
> > DEMUXER: freeing demuxer at 0x8336578
> > system stream synced at 0x180B (0)!
> > ==> Found audio stream: 0
> > ==> Found video stream: 0
> > Detected MPEG-PS file format!
> > Searching for sequence header... OK!
> > VIDEO: MPEG1 192x144 (aspect 1) 25.00 fps 400.0 kbps (50.0 kbyte/s)
> > [V] filefmt:2 fourcc:0x10000001 size:192x144 fps:25.00 ftime:=0.0400
> > Detected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> > Initializing audio codec...
> > Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> > dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
> > mp3lib: made decode tables with MMX optimization
> > init layer2&3 finished, tables done
> > mp3lib: using 3DNow!Ex optimized decore!
> > .MPEG 1.0, Layer II, 32000 Hz 96 kbit Stereo, BPF: 432
> > Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
> > AUDIO: srate=32000 chans=2 bps=2 sfmt=0x10 ratio: 12000->128000
> > Opening video filter: [expand=-1:-1:-1:-1:1]
> > Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
> > =========================================================================
> >= Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> > VDec: vo config request - 192 x 144 (preferred csp: Mpeg PES)
> > vo_debug: query(Mpeg PES) returned 0x0 (i=0)
> > Couldn't find matching colorspace - retrying with -vop scale...
> > Opening video filter: [scale]
> > SwScale params: -1 x -1 (-1=no scaling)
> > vo_debug: query(Mpeg PES) returned 0x0 (i=0)
> > Sorry, selected video_out device is incompatible with this codec.
> > VDecoder init failed :(
> > Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
> > libmpeg2: Using MMXEXT for IDCT transform
> > libmpeg2: Using MMXEXT for motion compensation
> > VDec: vo config request - 192 x 144 (preferred csp: Planar YV12)
> > vo_debug: query(Planar YV12) returned 0x403 (i=0)
> > VDec: using Planar YV12 as output csp (no 0)
> > Movie-Aspect is undefined - no prescaling applied.
> > VO Config (192x144->192x144,flags=0,'MPlayer',0x32315659)
> > REQ: flags=0x3 req=0x0
> > Detected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2)
> > =========================================================================
> >= LAME version 3.92 (alpha 1, Mar 16 2002 14:12:41)
> > (http://www.mp3dev.org/) Using polyphase lowpass filter, transition
> > band: 16129 Hz - 16516 Hz
> >
> > misc:
> >
> > scaling: 0.000000
> > ch0 (left) scaling: 0.000000
> > ch1 (right) scaling: 0.000000
> > filter type: 0
> > quantization: ISO
> > huffman search: normal
> > experimental X=0 Y=0 Z=0
> > ...
> >
> > stream format:
> >
> > MPEG-1 Layer 3
> > 2 channel - stereo
> > padding: auto
> > variable bitrate - VBR rh (default)
> > ...
> >
> > psychoacoustic:
> >
> > tonality estimation limit: 8871.700195 Hz
> > using short blocks: allowed
> > adjust masking: -1.000000 dB
> > psymodel: 1
> > noise shaping: 1
> > ^ amplification: 0
> > ^ stopping: 0
> > ATH: using
> > ^ type: 4
> > ^ adjust type: 3
> > ^ adapt threshold type: 2
> > using temporal masking effect: yes
> > interchannel masking ratio: 0.000000
> > ...
> >
> > MP3 audio selected
> > ======= WAVE Format =======
> > Format Tag: 85 (0x55)
> > Channels: 2
> > Samplerate: 32000
> > avg byte/sec: 24000
> > Block align: 1152
> > bits/sample: 0
> > cbSize: 12
> > mp3.wID=1
> > mp3.fdwFlags=0x2
> > mp3.nBlockSize=1152
> > mp3.nFramesPerBlock=1
> > mp3.nCodecDelay=0
> > Writing AVI header...
> > OSD chg: 3 V: no pb:-1
> > OSD chg: 2 V: no pb:-1
> > *** [divx4] Allocating mp_image_t, 192x144x12bpp YUV planar, 41472 bytes
> > (imgfmt: 32315659, planes: 84134c0,841bbc0,841a0c0 strides: 192,96,96,
> > chroma: 96x72, shift: h:1,v:1)
> > *** [expand] Direct Rendering mp_image_t, 192x144x12bpp YUV planar, 41472
> > bytes (imgfmt: 32315659, planes: 84134c0,841bbc0,841a0c0 strides:
> > 192,96,96, chroma: 96x72, shift: h:1,v:1)
> > mpeg2: [P] 0x833a2b8 DR!
> > Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
> > A/Vms 4/0 D/B/S 0/1/0
> > *** [divx4] Allocating mp_image_t, 192x144x12bpp YUV planar, 41472 bytes
> > (imgfmt: 32315659, planes: 841d940,8426040,8424540 strides: 192,96,96,
> > chroma: 96x72, shift: h:1,v:1)
> > *** [expand] Direct Rendering mp_image_t, 192x144x12bpp YUV planar, 41472
> > bytes (imgfmt: 32315659, planes: 841d940,8426040,8424540 strides:
> > 192,96,96, chroma: 96x72, shift: h:1,v:1)
> > mpeg2: [B] 0x833a388 DR!
> > OSD chg: 3 V: no pb:-1
> > OSD chg: 2 V: no pb:-1
> > Pos: 0.0s 2f ( 0%) 0fps Trem: 0min 0mb A-V:-0.004 [0:0]
> > A/Vms 4/1 D/B/S 0/1/0 .mpeg2: [B] 0x833a388 DR!
> > Pos: 0.1s 3f ( 0%) 0fps Trem: 0min 0mb A-V:-0.008 [0:0]
> > A/Vms 4/2 D/B/S 0/1/0
> > *** [divx4] Allocating mp_image_t, 192x144x12bpp YUV planar, 41472 bytes
> > (imgfmt: 32315659, planes: 8427dc0,84304c0,842e9c0 strides: 192,96,96,
> > chroma: 96x72, shift: h:1,v:1)
> > *** [expand] Direct Rendering mp_image_t, 192x144x12bpp YUV planar, 41472
> > bytes (imgfmt: 32315659, planes: 8427dc0,84304c0,842e9c0 strides:
> > 192,96,96, chroma: 96x72, shift: h:1,v:1)
> > mpeg2: [P] 0x840dbf8 DR!
> > Pos: 0.1s 4f ( 0%) 0fps Trem: 0min 0mb A-V:-0.012 [0:0]
> > A/Vms 4/2 D/B/S 0/1/0 .mpeg2: [B] 0x833a388 DR!
> > Pos: 0.2s 5f ( 0%) 0fps Trem: 0min 0mb A-V:-0.016 [0:0]
> > A/Vms 4/13 D/B/S 0/1/0 .out.avi: error writing file.
> > Exiting...
> >
> >
> > _______________________________________________
> > Mplayer-advusers mailing list
> > Mplayer-advusers at mplayerhq.hu
> > http://mplayerhq.hu/mailman/listinfo/mplayer-advusers
>
> A'rpi / Astral & ESP-team
More information about the MPlayer-advusers
mailing list