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

Alexander Roalter alex at roalter.it
Sun Mar 25 19:29:08 CEST 2012


On 03/25/2012 11:31 AM, Krzysztof Duchnowski wrote:
> On 25.03.2012 00:56, Alexander Roalter wrote:
>> I'm trying to reencode a VOB file, and a fresh mencoder build (with a
>> x264 from January 21st) stops with the following message:
>>
>> [VD_FFMPEG] Trying pixfmt=0.
>> The selected video_out device is incompatible with this codec.
>> Try appending the scale filter to your filter list,
>> e.g. -vf spp,scale instead of -vf spp.
>>
>> Exiting...
>>
>>
>> my command line is:
>>
>> mencoder movie.vob -o movie.avi -msglevel all=5 -ovc x264 -x264encopts
>> subq=1:frameref=1:bframes=3:b_pyramid=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
>>
>> This doesn't happen with all videos, so far I've only encountered one.
>> But it also happens with the following command line:
>>
>> mencoder movie.vob -o movie.mpg -msglevel all=5 -of mpeg -ovc lavc
>> -lavcopts vcodec=mpeg2video:vqmin=2:vqscale=2:keyint=12:aspect=16/9
>> -ofps 24  -oac lavc -lavcopts acodec=ac3:abitrate=192 -srate 44100 -vf
>> scale=384:288,dsize=512:288
>>
>> Any idea what the reason could be?
>
>
> 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 no lameoptions, srate, delay, audiodelay, ofps...:

mencoder movie.vob -o movie.avi -ovc x264 -oac mp3lame -vf 
scale=384:288,dsize=512:288

removing dsize doesn't help either.

So it doesn't have to do with the container (and as long as it plays 
with mplayer, I'm happy about it).

-v delivers the following:

Trying demuxer 2 based on filename extension
system stream synced at 0xD (13)!
==> Found video stream: 0
==> Found audio stream: 128
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG2  720x480  (aspect 3)  29.970 fps  7000.0 kbps (875.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.970  ftime:=0.0334
==========================================================================
...
==========================================================================
[file] File size is 0 bytes
STREAM: [file] movie.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=384 h=288]
SwScale params: 384 x 288 (-1=no scaling)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
...
[VD_FFMPEG] Trying pixfmt=0.
[ffmpeg] aspect_ratio: 1.777778
VDec: vo config request - 720 x 480 (preferred colorspace: MPEG2 VDPAU 
acceleration)
Trying filter chain: scale expand x264
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[ffmpeg] aspect_ratio: 1.777778
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
Trying filter chain: scale expand x264
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x480->854x480,flags=0,'MPlayer',0x30323449)
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 8 -> 8
SwScaler: reducing / aligning filtersize 8 -> 8
[swscaler @ 0xfb2920]BICUBIC scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 0xfb2920]720x480 -> 384x288
[swscaler @ 0xfb2920]lum srcW=720 srcH=480 dstW=384 dstH=288 xInc=122880 
yInc=109227
[swscaler @ 0xfb2920]chr srcW=360 srcH=240 dstW=192 dstH=144 xInc=122880 
yInc=109227
REQ: flags=0x403  req=0x0
REQ: flags=0x3  req=0x0
x264 [info]: using SAR=4/3
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle 
SSEMisalign LZCNT
x264 [info]: profile High, level 2.1
*** [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
Unicode font: 5162 glyphs.
Unicode font: 5162 glyphs.

1 duplicate frame(s)!
Pos:   0.7s     21f ( 0%)   0fps Trem:   0min   0mb  A-V:0.067 [0:32] 
A/Vms 0/2 D/B/S 1/1/0
.....


Pos:1643.3s  49257f (99%) 264fps Trem:   0min 113mb  A-V:0.068 [356:217] 
A/Vms 0/2 D/B/S 4/10/9

Skipping frame!
Pos:1643.4s  49260f (99%) 264fps Trem:   0min 113mb  A-V:0.045 [356:217] 
A/Vms 0/2 D/B/S 4/11/10
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: audio)
Pos:1643.4s  49261f (100%) 264fps Trem:   0min 113mb  A-V:0.048 
[356:217] A/Vms 0/2 D/B/S 4/11/10
ds_fill_buffer: EOF reached (stream: audio)
ds_fill_buffer: EOF reached (stream: audio)
[VD_FFMPEG] Trying pixfmt=0.
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 720 x 480 (preferred colorspace: MPEG2 VDPAU 
acceleration)
Trying filter chain: scale expand x264
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.

Exiting...


I reckon the video has some sort of resolution change at the and or how 
do I interpret this?

-- 
Cheers,
Alex


More information about the MPlayer-users mailing list