[MPlayer-users] A mencoder question, incorrect bitrate.

Xabier Rodriguez Calvar calvaris at arrakis.es
Wed Apr 21 00:29:20 CEST 2004


	Hi, I'm a newbie with mencoder and have a question. I'm trying to recompress 
an mpg file with a bitrate to another file with a lower bitrate to make it 
smaller. I'm trying to make it in three passes.

	First I extract the audio. I don't want to recompress this, so I use -oac 
copy, but when making the second pass, I write the recomended bitrate to 
700MB (874) and when finishing I can see another bitrate (778,505 kbit/s). 
Which is the problem? I want to adjust it to 700MB! :-)

	Thank you!

calvaris at calvaris:/var/calvaris$ mencoder -ovc frameno -oac copy -o 
frameno.avi source.mpg
MEncoder 1.0pre3-3.3.3 (C) 2000-2003 MPlayer Team

CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon 820.5 
MHz (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE

Reading /home/calvaris/.mplayer/mencoder_codecs.conf: Can't open 
'/home/calvaris/.mplayer/mencoder_codecs.conf': Non hai tal ficheiro ou 
directorio
Reading /etc/mplayer/mencoder_codecs.conf: 61 audio & 169 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/calvaris/.mplayer/mencoder: Non hai tal ficheiro ou 
directorio
font: can't open file: /home/calvaris/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x30C45638
LMLM4 Stream Format not found
MPEG-PS file format detected.
VIDEO:  MPEG1  352x288  (aspect 8)  25,000 fps  982,0 kbps (122,8 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:352x288  fps:25,00  ftime:=0,0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (128,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
audiocodec: framecopy (format=50 chans=2 rate=44100 bits=16 bps=16000 
sample=1)
Writing AVI header...
Pos:   0,9s     22f ( 0%)   0fps Trem:   0min   0mb  A-V:0,084 [0:128]
Skipping frame!
Pos:   1,2s     32f ( 0%)   0fps Trem:   0min   0mb  A-V:0,082 [0:128]
Skipping frame!
Pos:5820,6s 145516f (100%) 692fps Trem:   0min  90mb  A-V:0,066 [0:128]
Writing AVI index...
Fixing AVI header...
Recommended video bitrate for 650MB CD: 802
Recommended video bitrate for 700MB CD: 874
Recommended video bitrate for 800MB CD: 1018
Recommended video bitrate for 2 x 650MB CD: 1739
Recommended video bitrate for 2 x 700MB CD: 1883
Recommended video bitrate for 2 x 800MB CD: 2171

Video stream:    0,800 kbit/s  (99 bps)  size: 582056 bytes  5820,560 secs  
145516 frames

Audio stream:  128,000 kbit/s  (16000 bps)  size: 93129666 bytes  5820,604 
secs





calvaris at calvaris:/var/calvaris$ nice -n 20 mencoder -nosound -oac copy 
-o /dev/null -ovc lavc -lavcopts 
vcodec=mpeg4:vbitrate=874:vhq:vpass=1:vqmin=2:vqmax=31 -vf crop=352:162:0:64 
source.mpg
MEncoder 1.0pre3-3.3.3 (C) 2000-2003 MPlayer Team

CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon 401.5 
MHz (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE

Reading /home/calvaris/.mplayer/mencoder_codecs.conf: Can't open 
'/home/calvaris/.mplayer/mencoder_codecs.conf': Non hai tal ficheiro ou 
directorio
Reading /etc/mplayer/mencoder_codecs.conf: 61 audio & 169 video codecs
AVI file format detected.
VIDEO:  [FrNo]  352x288  24bpp  25,000 fps    0,8 kbps ( 0,1 kbyte/s)
Using pass3 control file: frameno.avi
Reading config file /home/calvaris/.mplayer/mencoder: Non hai tal ficheiro ou 
directorio
font: can't open file: /home/calvaris/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x30C45638
LMLM4 Stream Format not found
MPEG-PS file format detected.
VIDEO:  MPEG1  352x288  (aspect 8)  25,000 fps  982,0 kbps (122,8 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:352x288  fps:25,00  ftime:=0,0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [crop w=352 h=162 x=0 y=64]
Crop: 352 x 162, 0 ; 64
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 288 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=50 chans=2 rate=44100 bits=16 bps=16000 
sample=1)
Writing AVI header...
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (352x162 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
New_Face failed. Maybe the font path is wrong.  0mb  A-V:0,000 [0:0]
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Pos:   0,8s     22f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:128]
Skipping frame!
Pos:   1,2s     32f ( 0%)  27fps Trem:   0min   0mb  A-V:0,000 [13:128]
Skipping frame!
Pos:5820,5s 145516f (99%)  21fps Trem:   0min 630mb  A-V:0,000 [778:128]
Writing AVI index...
Fixing AVI header...

Video stream:  778,505 kbit/s  (97313 bps)  size: 566413090 bytes  5820,520 
secs  145516 frames

Audio stream:  128,000 kbit/s  (16000 bps)  size: 93129666 bytes  5820,604 
secs

-- 
    De forma hiporcrita.
		Sra. de Ballina.




More information about the MPlayer-users mailing list