[MPlayer-users] mencoder bails out on 1st pass

Krzysztof Duchnowski amidk75 at gmail.com
Sun Mar 25 22:04:10 CEST 2012


On 25.03.2012 19:29, Alexander Roalter wrote:

>>> It might be because AVI didn't like *bframes and b_pyramid* (AVI don't
>>> like many advanced options) and in second one because MPEG2 don't like
>>> AC3 inside?
>>>
>> 
>> The same happens also with
>> 
>> mencoder movie.vob -o movie.avi -ovc x264 -x264encopts 
>> subq=1:frameref=1:weight_b:pass=1:threads=auto -ofps 24 -delay 0.0 
>> -audio-delay 0.0  -oac mp3lame -lameopts abr:br=64:mode=3:padding=2 
>> -srate 44100 -vf scale=384:288,dsize=512:288
>> 
>> and no x264-options at all.


And *weight_b* is what... Spanish Inquisition?

OK. Sample:
> General
> Complete name                           	:  bollywood-medianeedz_sample.vob
> Format                                  	:  MPEG-PS
> File size                               	:  14.2 MiB
> Duration                                	:  39s 907ms
> Overall bit rate mode                   	:  Variable
> Overall bit rate                        	:  2 985 Kbps
> 
> Video
> ID                                      	:  224 (0xE0)
> Format                                  	:  MPEG Video
> Format version                          	:  Version 2
> Format profile                          	:  Main at Main
> Format settings, BVOP                   	:  Yes
> Format settings, Matrix                 	:  Custom
> Format settings, GOP                    	:  M=3, N=12
> Duration                                	:  39s 907ms
> Bit rate mode                           	:  Variable
> Bit rate                                	:  2 477 Kbps
> Maximum bit rate                        	:  9 000 Kbps
> Width                                   	:  720 pixels
> Height                                  	:  480 pixels
> Display aspect ratio                    	:  16:9
> Frame rate                              	:  23.976 fps
> Standard                                	:  NTSC
> Color space                             	:  YUV
> Chroma subsampling                      	:  4:2:0
> Bit depth                               	:  8 bits
> Scan type                               	:  Progressive
> Scan order                              	:  2:3 Pulldown
> Compression mode                        	:  Lossy
> Bits/(Pixel*Frame)                      	:  0.299
> Stream size                             	:  11.8 MiB (83%)
> 
> Audio
> ID                                      	:  189 (0xBD)-128 (0x80)
> Format                                  	:  AC-3
> Format/Info                             	:  Audio Coding 3
> Mode extension                          	:  CM (complete main)
> Muxing mode                             	:  DVD-Video
> Duration                                	:  39s 808ms
> Bit rate mode                           	:  Constant
> Bit rate                                	:  448 Kbps
> Channel(s)                              	:  6 channels
> Channel positions                       	:  Front: L C R, Side: L R, LFE
> Sampling rate                           	:  48.0 KHz
> Bit depth                               	:  16 bits
> Compression mode                        	:  Lossy
> Delay relative to video                 	:  -445ms
> Stream size                             	:  2.13 MiB (15%)
> 
> Text
> ID                                      	:  189 (0xBD)-32 (0x20)
> Format                                  	:  RLE
> Format/Info                             	:  Run-length encoding
> Muxing mode                             	:  DVD-Video
> Duration                                	:  26s 626ms
> Delay relative to video                 	:  1s 618ms
> 
> Menu


it worked for me with XviD like that:

> $ mencoder bollywood-medianeedz_sample.vob -o sample.avi -vf-clr
> -vf-add scale=352:-11 -oac mp3lame -lameopts
> abr:br=64:mode=3:padding=2 -srate 44100 -ovc xvid -xvidencopts
> fixed_quant=3:profile=asp3:aspect=16/9

> General
> Complete name                           	:  sample.avi
> Format                                  	:  AVI
> Format/Info                             	:  Audio Video Interleave
> File size                               	:  1.79 MiB
> Duration                                	:  40s 173ms
> Overall bit rate mode                   	:  Variable
> Overall bit rate                        	:  373 Kbps
> Writing application                     	:  MEncoder SVN-r34728
> Writing library                         	:  MPlayer
> 
> Video
> ID                                      
> Format                                  	:  MPEG-4 Visual
> Format profile                          	:  Advanced Simple at L3
> Format settings, BVOP                   	:  2
> Format settings, QPel                   	:  No
> Format settings, GMC                    	:  No warppoints
> Format settings, Matrix                 	:  Default (H.263)
> Codec ID                                	:  XVID
> Codec ID/Hint                           	:  XviD
> Duration                                	:  40s 173ms
> Bit rate                                	:  295 Kbps
> Width                                   	:  352 pixels
> Height                                  	:  240 pixels
> Display aspect ratio                    	:  4.513
> Frame rate                              	:  29.970 fps
> Standard                                	:  NTSC
> Color space                             	:  YUV
> Chroma subsampling                      	:  4:2:0
> Bit depth                               	:  8 bits
> Scan type                               	:  Progressive
> Compression mode                        	:  Lossy
> Bits/(Pixel*Frame)                      	:  0.117
> Stream size                             	:  1.41 MiB (79%)
> Writing library                         	:  XviD 71
> 
> Audio
> ID                                      	:  1
> Format                                  	:  MPEG Audio
> Format version                          	:  Version 1
> Format profile                          	:  Layer 3
> Codec ID                                	:  55
> Codec ID/Hint                           	:  MP3
> Duration                                	:  39s 993ms
> Bit rate mode                           	:  Variable
> Bit rate                                	:  64.0 Kbps
> Channel(s)                              	:  1 channel
> Sampling rate                           	:  44.1 KHz
> Compression mode                        	:  Lossy
> Stream size                             	:  314 KiB (17%)
> Alignment                               	:  Aligned on interleaves
> Interleave, duration                    	:  26 ms (0.79 video frame)
> Interleave, preload duration            	:  540 ms
> 
> 



and with x264 like that:
> $ mencoder bollywood-medianeedz_sample.vob -o sample.avi -vf-clr
> -vf-add scale=352:-11 -oac mp3lame -lameopts
> abr:br=64:mode=3:padding=2 -srate 44100 -ovc x264 -x264encopts
> qp=22:preset=fast:tune=film:profile=baseline

> General
> Complete name                           	:  sample.avi
> Format                                  	:  AVI
> Format/Info                             	:  Audio Video Interleave
> File size                               	:  2.11 MiB
> Duration                                	:  40s 173ms
> Overall bit rate mode                   	:  Variable
> Overall bit rate                        	:  440 Kbps
> Writing application                     	:  MEncoder SVN-r34728
> Writing library                         	:  MPlayer
> 
> Video
> ID                                      
> Format                                  	:  AVC
> Format/Info                             	:  Advanced Video Codec
> Format profile                          	:  Baseline at L1.3
> Format settings, CABAC                  	:  No
> Format settings, ReFrames               	:  2 frames
> Codec ID                                	:  h264
> Duration                                	:  40s 173ms
> Bit rate                                	:  362 Kbps
> Width                                   	:  352 pixels
> Height                                  	:  240 pixels
> Display aspect ratio                    	:  16:9
> Frame rate                              	:  29.970 fps
> Standard                                	:  NTSC
> Color space                             	:  YUV
> Chroma subsampling                      	:  4:2:0
> Bit depth                               	:  8 bits
> Scan type                               	:  Progressive
> Bits/(Pixel*Frame)                      	:  0.143
> Stream size                             	:  1.73 MiB (82%)
> Writing library                         	:  x264 core 120 r2164 da19765
> Encoding settings                       	:  cabac=0 / ref=2 /
> 	deblock=1:-1:-1 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 /
> 	psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 /
> 	trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 /
> 	chroma_qp_offset=-3 / threads=3 / sliced_threads=0 / nr=0 /
> 	decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 /
> 	bframes=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 /
> 	intra_refresh=0 / rc=cqp / mbtree=0 / qp=22 / ip_ratio=1.40 / aq=0>
> Audio
> ID                                      	:  1
> Format                                  	:  MPEG Audio
> Format version                          	:  Version 1
> Format profile                          	:  Layer 3
> Codec ID                                	:  55
> Codec ID/Hint                           	:  MP3
> Duration                                	:  39s 993ms
> Bit rate mode                           	:  Variable
> Bit rate                                	:  64.0 Kbps
> Channel(s)                              	:  1 channel
> Sampling rate                           	:  44.1 KHz
> Compression mode                        	:  Lossy
> Stream size                             	:  314 KiB (15%)
> Alignment                               	:  Aligned on interleaves
> Interleave, duration                    	:  26 ms (0.79 video frame)
> Interleave, preload duration            	:  540 ms


>> *** [x264] Allocating mp_image_t, 384x288x12bpp YUV planar, 165888 bytes
>> *** [expand] Direct Rendering mp_image_t, 384x288x12bpp YUV planar, 
>> 165888 bytes
>> *** [scale] Allocating (slices) mp_image_t, 736x480x12bpp YUV planar, 
>> 529920 bytes
>> Pos:   0.0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] 
>> A/Vms 0/5 D/B/S 0/1/0
>> *** [scale] Allocating (slices) mp_image_t, 736x480x12bpp YUV planar, 
>> 529920 bytes
>> [mpeg2video @ 0xee9d60]warning: first frame is no keyframe
>> [VD_FFMPEG] DRI failure.
>> *** [scale] Exporting mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
> 
> [..]
>  
>> I reckon the video has some sort of resolution change at the and or how 
>> do I interpret this?


Upload sample somewhere...

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/


More information about the MPlayer-users mailing list