[MEncoder-users] Mencoder soft telecine broken; fix included
Nicolas Hesler
nicolas.hesler at sheridanc.on.ca
Tue Oct 2 17:53:54 CEST 2007
Nico Sabbi wrote:
> Il Tuesday 02 October 2007 17:22:24 Nicolas Hesler ha scritto:
>
>
>> My source is a hard 24 FPS (not 24000/1001). I've tried every
>> combination of using mpegopts "telecine" "tele_src:tele_dest" with
>> -fps, without -fps, with -ofps and without -ofps. with the same
>> result, frame skipping. Is there something else I'm doing wrong?
>> Like I mentioned, the release version of Mencoder doesn't have this
>> behavior. I want my 24 fps video to be converted to 24000/1001 with
>> soft-telecine for DVD. I'm used to see frame skipping now and
>> then, but every 10 or 20 frames seems strange.
>>
>>
>> mencoder -oac lavc -ovc lavc -of mpeg -mpegopts
>> format=mpeg2:muxrate=10080:tsaf:tele_src=24:tele_dest=24000/1001
>> -vf scale=720:480:0:0:0.00:0.75,harddup -srate 48000 -af
>> lavcresample=48000:0:2 -lavcopts
>> vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=7000:vbitrate=6000:
>> keyint=12:acodec=ac3:abitrate=224:aspect=16/9:vstrict=0 -fps 24
>> -ofps 24000/1001 -o "output.mpg" "input.mpg"
>>
>
> telecining in mencoder can be used to simulate a higher framerate,
> not lower. Anyway your target framerate is 30000/1001, not 24000/1001,
> thus :tele_dest=30000/1001 will work *without* -fps and -ofps
>
Please correct me if I'm wrong.
So traditionally, if I wanted soft-telecine of hard 24fps video, I would
use mpegopts "telecine". and -ofps 24000/1001
(this is what I used to do, and it worked successfully, as far as I can
tell) (but skips frames in latest cvs)
now, because of the skipping frames, I've gone ahead and tried using
mpegopts "tele_src=24:tele_dest=30000/1001" without -ofps.
but I'm still getting the skipping frames.
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts
format=mpeg2:muxrate=10080:tsaf:tele_src=24:tele_dest=30000/1001 -vf
scale=720:480:0:0:0.00:0.75,harddup -srate 48000 -af
lavcresample=48000:0:2 -lavcopts
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=7000:vbitrate=6000:keyint=12:acodec=ac3:abitrate=224:aspect=16/9:vstrict=0
-o "output.mpg" "input.mpg"
MEncoder dev-SVN-r24679-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6,
Model: 8, Stepping: 3)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE
success: format: 0 data: 0x0 - 0x26db2804
MPEG-PS file format detected.
VIDEO: MPEG2 1280x720 (aspect 3) 24.000 fps 18500.0 kbps (2312.5
kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:1280x720 fps:24.00 ftime:=0.0417
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 43885
MPEG MUXER, patching framerate to 29.97 fps
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=720 h=480 interlaced=0 chr-drop=0
param=0.00 param2=0.75]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1280 x 720 (preferred colorspace: Mpeg PES)
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.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Limiting audio preload to 0.4s.
Increasing audio density to 4.
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6
[swscaler @ 0x8896a70]SwScaler: BICUBIC scaler, from yuv420p to yuv420p
using MMX2
[swscaler @ 0x8896a70]SwScaler: using 8-tap MMX scaler for horizontal
luminance scaling
[swscaler @ 0x8896a70]SwScaler: using 8-tap MMX scaler for horizontal
chrominance scaling
[swscaler @ 0x8896a70]SwScaler: using n-tap MMX scaler for vertical
scaling (YV12 like)
[swscaler @ 0x8896a70]SwScaler: 1280x720 -> 720x480
videocodec: libavcodec (720x480 fourcc=3267706d [mpg2])
Pos: 0.0s 1f ( 1%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...
INITV: 0.200, 0.158, fps: 24.000
New_Face failed. Maybe the font path is wrong.n 0mb A-V:0.004 [0:0]
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
INITV: 0.242, 0.200, fps: 24.000
ENABLED SOFT TELECINING, FPS=29.970
1 duplicate frame(s)!
Pos: 0.9s 21f ( 2%) 10.15fps Trem: 1min 30mb A-V:0.083 [0:224]
Skipping frame!
Pos: 1.2s 31f ( 2%) 10.71fps Trem: 1min 27mb A-V:0.083 [5463:224]
Skipping frame!
Pos: 1.6s 41f ( 2%) 10.97fps Trem: 2min 37mb A-V:0.083 [5404:224]
Skipping frame!
Pos: 2.4s 61f ( 2%) 11.23fps Trem: 2min 53mb A-V:0.083 [5299:224]
Skipping frame!
Pos: 2.8s 71f ( 3%) 11.29fps Trem: 3min 50mb A-V:0.083 [5259:223]
Skipping frame!
Pos: 3.5s 91f ( 3%) 11.42fps Trem: 3min 64mb A-V:0.083 [5319:224]
Skipping frame!
Pos: 3.9s 101f ( 3%) 11.51fps Trem: 3min 70mb A-V:0.083 [5315:223]
Skipping frame!
Pos: 4.2s 111f ( 3%) 11.58fps Trem: 3min 67mb A-V:0.083 [5319:224]
Skipping frame!
More information about the MEncoder-users
mailing list