[MPlayer-users] encoding with xvid does not honor bitrate argument?!
Norbert Preining
preining at logic.at
Sat Feb 1 02:15:38 CET 2003
Hi!
I have the following problem: I want to encode a set of .vob as follows:
cat *.vob | mencoder -oac mp3lame -ovc xvid -xvidencopts bitrate=1600:pass=1 -v -sid 0 -
But the bitrate/filesize I get is way to big. In fact the file created
at the first pass is even bigger then the original .vob.
Here is the output of a run which has been interrupted after a bit of
time:
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale
MEncoder 0.90rc3-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 4)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /home/norbert/.mplayer/mencoder_codecs.conf: can't open '/home/norbert/.mplayer/mencoder_codecs.conf': Datei oder Verzeichnis nicht gefunden
Reading /etc/mplayer/mencoder_codecs.conf: 49 audio & 130 video codecs
File not found: 'frameno.avi'
Reading config file /home/norbert/.mplayer/mencoder: Datei oder Verzeichnis nicht gefunden
init_freetype
Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay
Not an URL!
Reading from stdin...
success: format: 0 data: 0x0 - 0x0
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x8452e08
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x8452e08
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x8452e08
Checking for REAL
DEMUXER: freeing demuxer at 0x8452e08
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x8452e08
Searching demuxer type for filename - ext: (null)
Checking for MOV
DEMUXER: freeing demuxer at 0x84537a8
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x84537a8
DEMUXER: freeing demuxer at 0x84537a8
DEMUXER: freeing demuxer at 0x84537a8
DEMUXER: freeing demuxer at 0x84537a8
DEMUXER: freeing demuxer at 0x84537a8
DEMUXER: freeing demuxer at 0x84537a8
Checking for PVA
DEMUXER: freeing demuxer at 0x84537a8
system stream synced at 0x180D (0)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 128
Searching for sequence header... ==> Found audio stream: 129
OK!
VIDEO: MPEG2 720x480 (aspect 2) 29,97 fps 4375,0 kbps (546,9 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29,97 ftime:=0,0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using 3DNowEx optimized IMDCT transform
AC3: 1.0 (mono) 48000 Hz 192,0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 24000->192000 (192,0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
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 - 720 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
The 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 MMX for IDCT transform
libmpeg2: Using 3DNOW for motion compensation
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
VO Config (720x480->720x540,flags=0,'MPlayer',0x32315659)
REQ: flags=0x3 req=0x0
videocodec: XViD (720x480 fourcc=44495658 [XVID])
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
LAME version 3.93 MMX (http://www.mp3dev.org/)
CPU features: i387, MMX (ASM used), 3DNow! (ASM used)
Using polyphase lowpass filter, transition band: 19548 Hz - 20129 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: off
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
...
Writing AVI header...
get_path('subfont.ttf') -> '/home/norbert/.mplayer/subfont.ttf'
Unicode font: 1439 glyphs.
*** [xvid] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [expand] Direct Rendering mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
Pos: 0,0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0,000 [0:0] A/Vms 4/10 D/B/S 0/1/0
*** [xvid] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [expand] Direct Rendering mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
Pos: 0,0s 2f ( 0%) 0fps Trem: 0min 0mb A-V:0,003 [0:0] A/Vms 4/13 D/B/S 0/1/0
Pos: 0,1s 3f ( 0%) 0fps Trem: 0min 0mb A-V:0,007 [0:0] A/Vms 4/16 D/B/S 1/1/0
*** [xvid] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [expand] Direct Rendering mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
Pos: 0,1s 4f ( 0%) 0fps Trem: 0min 0mb A-V:0,003 [0:0] A/Vms 3/18 D/B/S 1/1/0
Pos: 0,2s 5f ( 0%) 0fps Trem: 0min 0mb A-V:0,000 [0:0] A/Vms 3/19 D/B/S 2/1/0
Pos: 0,2s 6f ( 0%) 0fps Trem: 0min 0mb A-V:-0,003 [0:0] A/Vms 3/20 D/B/S 2/1/0
Pos: 0,3s 7f ( 0%) 0fps Trem: 0min 0mb A-V:-0,007 [0:0] A/Vms 3/20 D/B/S 2/1/0
Pos: 0,3s 8f ( 0%) 0fps Trem: 0min 0mb A-V:-0,010 [0:0] A/Vms 3/20 D/B/S 2/1/0
Pos: 0,3s 9f ( 0%) 0fps Trem: 0min 0mb A-V:-0,013 [0:0] A/Vms 3/21 D/B/S 2/1/0
Pos: 0,4s 10f ( 0%) 0fps Trem: 0min 0mb A-V:-0,017 [0:0] A/Vms 3/22 D/B/S 3/1/0
demux_mpg: 3:2 TELECINE detected, enabling inverse telecine fx. FPS changed to 23,976!
DVD sub: len=81 v_pts=19,084 s_pts=19,643
[...]
Writing AVI index...
Fixing AVI header...
Video stream: 1157,840 kbit/s (144729 bps) size: 6548364 bytes 45,245 secs 1078 frames
Audio stream: 163,849 kbit/s (20481 bps) size: 935904 bytes 45,696 secs
uninit video: libmpeg2
DEMUXER: freeing demuxer at 0x84537a8
DEMUXER: freeing sh_video at 0x84561a0
DEMUXER: freeing sh_audio at 0x845a5e0
DEMUXER: freeing sh_audio at 0x845a310
Best wishes
Norbert
-------------------------------------------------------------------------------
Norbert Preining <preining AT logic DOT at> Technische Universität Wien
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
CAMER (n.)
A mis-tossed caber.
--- Douglas Adams, The Meaning of Liff
More information about the MPlayer-users
mailing list