[MPlayer-users] Desync when using yadif=1 with mencoder, why?
Alexander Shaduri
ashaduri at gmail.com
Mon Apr 13 19:27:13 CEST 2009
Hello all,
I have this problem with mencoder:
Whenever I try to encode with yadif=1 (50 fps output in case of PAL),
I get a/v desync, about 150ms difference.
That is, when I play the result with "mplayer -delay 0.15 test.avi",
everything's ok.
The command is:
$ mencoder -sws 2 -vf yadif=1,harddup -ovc lavc -lavcopts \
vcodec=mpeg4:keyint=132:threads=2:vbitrate=1000 \
-fps 50 -ofps 50 -oac copy -dvd-device . dvd://1 -aid 0 -o test.avi -endpos 0:5:0
If I encode it with 25 fps output, there is no delay:
$ mencoder -sws 2 -vf yadif=0,harddup -ovc lavc -lavcopts \
vcodec=mpeg4:keyint=132:threads=2:vbitrate=1000 -oac copy \
-dvd-device . dvd://1 -aid 0 -o test.avi -endpos 0:5:0
So, is there anything that causes this delay?
I get it with any DVD I try to encode. Also, it always seems to be
around 150ms. I don't have a problem with correcting it manually
on the container level, but I need to know its exact value.
I tried encoding the audio track too, demuxing / remuxing them, etc...
Nothing seems to help.
I'm attaching the output of the first mencoder command.
Thanks,
Alexander
-------------------------------------------------------------------------
MEncoder SVN-r29121-4.2.1 (C) 2000-2009 MPlayer Team
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Couldn't find device name.
There are 1 titles on this DVD.
There are 1 angles in this DVD title.
audio stream: 0 format: mpeg1 (stereo) language: unknown aid: 0.
audio stream: 1 format: ac3 (stereo) language: unknown aid: 129.
number of audio channels on disk: 2.
number of subtitles on disk: 0
success: format: 2 data: 0x0 - 0x1c74e000
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 8197.6 kbps (1024.7 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.000 ftime:=0.0400
Input fps will be interpreted as 50.000 instead.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
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: [yadif=1]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: 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.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 B/s=32000 sample-1)
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=34504d46 [FMP4])
[mpeg2video @ 0x8e099d0]ac-tex damaged at 1 1
[mpeg2video @ 0x8e099d0]Warning MVs not available
[mpeg2video @ 0x8e099d0]concealing 1575 DC, 1575 AC, 1575 MV errors
Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.0s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.002 [0:0]
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
1 duplicate frame(s)!
Pos: 0.1s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.004 [0:0]
Pos: 0.1s 4f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.006 [0:0]
Pos: 0.1s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0]
Pos: 0.2s 6f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.010 [0:0]
Pos: 0.2s 7f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.012 [0:0]
Pos: 0.3s 8f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.014 [0:0]
Pos: 0.3s 9f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.016 [0:0]
Pos: 0.3s 10f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.018 [0:0]
Pos: 0.4s 11f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.020 [0:0]
Pos: 0.4s 12f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.022 [0:0]
Pos: 0.5s 13f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.024 [0:0]
Pos: 0.5s 14f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.026 [0:0]
Pos: 0.5s 15f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.028 [0:0]
Pos: 0.6s 16f ( 0%) 15.22fps Trem: 0min 0mb A-V:0.030 [0:256]
Pos: 0.6s 17f ( 0%) 15.37fps Trem: 0min 0mb A-V:0.032 [0:256]
Pos: 0.7s 18f ( 0%) 15.41fps Trem: 0min 0mb A-V:0.034 [0:256]
Pos: 0.7s 19f ( 0%) 15.54fps Trem: 0min 0mb A-V:0.036 [0:256]
Pos: 0.7s 20f ( 0%) 15.67fps Trem: 0min 0mb A-V:0.038 [0:256]
Pos: 0.8s 21f ( 0%) 15.86fps Trem: 0min 0mb A-V:0.040 [0:256]
Pos: 0.8s 22f ( 0%) 16.26fps Trem: 0min 0mb A-V:0.042 [0:256]
Skipping frame!
Pos: 0.8s 23f ( 0%) 17.00fps Trem: 0min 0mb A-V:0.024 [0:256]
Pos: 0.9s 24f ( 0%) 17.49fps Trem: 0min 0mb A-V:0.026 [0:256]
Pos: 0.9s 25f ( 0%) 17.99fps Trem: 0min 0mb A-V:0.028 [0:256]
Pos: 0.9s 26f ( 0%) 18.44fps Trem: 0min 0mb A-V:0.030 [0:256]
Pos: 1.0s 27f ( 0%) 18.83fps Trem: 0min 0mb A-V:0.032 [0:256]
Pos: 1.0s 28f ( 0%) 19.22fps Trem: 0min 0mb A-V:0.034 [1760:256]
Pos: 1.1s 29f ( 0%) 19.57fps Trem: 0min 0mb A-V:0.036 [1727:256]
Pos: 1.1s 30f ( 0%) 19.87fps Trem: 0min 0mb A-V:0.038 [1708:256]
Pos: 1.1s 31f ( 0%) 20.29fps Trem: 0min 0mb A-V:0.040 [1679:256]
Pos: 1.2s 32f ( 0%) 20.69fps Trem: 0min 0mb A-V:0.042 [1652:256]
Skipping frame!
Pos: 1.2s 33f ( 0%) 21.29fps Trem: 0min 0mb A-V:0.024 [1652:256]
Pos: 1.2s 34f ( 0%) 21.68fps Trem: 0min 0mb A-V:0.026 [1628:256]
Pos: 1.3s 35f ( 0%) 22.03fps Trem: 0min 0mb A-V:0.028 [1610:256]
Pos: 1.3s 36f ( 0%) 22.32fps Trem: 0min 0mb A-V:0.030 [1588:256]
Pos: 1.3s 37f ( 0%) 22.67fps Trem: 0min 0mb A-V:0.032 [1570:256]
Pos: 1.4s 38f ( 0%) 23.03fps Trem: 0min 0mb A-V:0.034 [1554:256]
Pos: 1.4s 39f ( 0%) 23.37fps Trem: 0min 0mb A-V:0.035 [1537:256]
Pos: 1.5s 40f ( 0%) 23.71fps Trem: 0min 0mb A-V:0.037 [1523:256]
Pos: 1.5s 41f ( 0%) 23.91fps Trem: 0min 0mb A-V:0.039 [1508:256]
Pos: 1.5s 42f ( 0%) 24.22fps Trem: 0min 0mb A-V:0.041 [1492:256]
Skipping frame!
Pos: 1.5s 43f ( 0%) 24.78fps Trem: 0min 0mb A-V:0.023 [1492:256]
Pos: 1.6s 44f ( 0%) 25.10fps Trem: 0min 0mb A-V:0.025 [1481:256]
Pos: 1.6s 45f ( 0%) 25.34fps Trem: 0min 0mb A-V:0.027 [1471:256]
Pos: 1.7s 46f ( 0%) 25.63fps Trem: 0min 0mb A-V:0.029 [1459:256]
Pos: 1.7s 47f ( 0%) 25.84fps Trem: 0min 0mb A-V:0.031 [1452:256]
Pos: 1.7s 48f ( 0%) 26.04fps Trem: 0min 0mb A-V:0.033 [1442:256]
Pos: 1.8s 49f ( 0%) 26.29fps Trem: 0min 0mb A-V:0.035 [1435:256]
Pos: 1.8s 50f ( 0%) 26.54fps Trem: 0min 0mb A-V:0.037 [1430:256]
Pos: 1.9s 51f ( 0%) 26.72fps Trem: 0min 0mb A-V:0.035 [1423:256]
Pos: 1.9s 52f ( 0%) 26.89fps Trem: 0min 0mb A-V:0.033 [1417:256]
Pos: 1.9s 53f ( 0%) 27.08fps Trem: 0min 0mb A-V:0.033 [1410:256]
Pos: 2.0s 54f ( 0%) 27.26fps Trem: 0min 0mb A-V:0.035 [1402:256]
Pos: 2.0s 55f ( 0%) 27.45fps Trem: 0min 0mb A-V:0.037 [1396:256]
Pos: 2.1s 56f ( 0%) 27.65fps Trem: 0min 0mb A-V:0.039 [1392:256]
Pos: 2.1s 57f ( 0%) 27.86fps Trem: 0min 0mb A-V:0.041 [1384:256]
Skipping frame!
Pos: 2.1s 58f ( 0%) 28.33fps Trem: 0min 0mb A-V:0.023 [1384:256]
Pos: 2.1s 59f ( 0%) 28.56fps Trem: 0min 0mb A-V:0.025 [1380:256]
Pos: 2.2s 60f ( 0%) 28.67fps Trem: 0min 0mb A-V:0.027 [1378:256]
Pos: 2.2s 61f ( 0%) 28.83fps Trem: 0min 0mb A-V:0.029 [1369:256]
Pos: 2.3s 62f ( 0%) 29.01fps Trem: 0min 0mb A-V:0.031 [1362:256]
Pos: 2.3s 63f ( 0%) 29.17fps Trem: 0min 0mb A-V:0.029 [1352:256]
Pos: 2.3s 64f ( 0%) 29.30fps Trem: 0min 0mb A-V:0.027 [1345:256]
Pos: 2.4s 65f ( 0%) 29.44fps Trem: 0min 0mb A-V:0.025 [1337:256]
Pos: 2.4s 66f ( 0%) 29.57fps Trem: 0min 0mb A-V:0.024 [1329:256]
Pos: 2.5s 67f ( 0%) 29.76fps Trem: 0min 0mb A-V:0.025 [1326:256]
Pos: 2.5s 68f ( 0%) 29.89fps Trem: 0min 0mb A-V:0.027 [1318:256]
Pos: 2.5s 69f ( 0%) 30.00fps Trem: 0min 0mb A-V:0.029 [1315:256]
Pos: 2.6s 70f ( 0%) 30.13fps Trem: 0min 0mb A-V:0.031 [1308:256]
Pos: 2.6s 71f ( 0%) 30.28fps Trem: 0min 0mb A-V:0.033 [1301:256]
Pos: 2.7s 72f ( 0%) 30.38fps Trem: 0min 0mb A-V:0.035 [1422:256]
Pos: 2.7s 73f ( 0%) 30.51fps Trem: 0min 0mb A-V:0.037 [1413:256]
Pos: 2.7s 74f ( 0%) 30.62fps Trem: 0min 0mb A-V:0.039 [1405:256]
Pos: 2.8s 75f ( 0%) 30.80fps Trem: 0min 0mb A-V:0.037 [1396:256]
Pos: 2.8s 76f ( 0%) 30.94fps Trem: 0min 0mb A-V:0.035 [1389:256]
Pos: 2.9s 77f ( 0%) 31.11fps Trem: 0min 0mb A-V:0.033 [1384:256]
Pos: 2.9s 78f ( 0%) 31.25fps Trem: 0min 0mb A-V:0.031 [1374:256]
Pos: 2.9s 79f ( 0%) 31.37fps Trem: 0min 0mb A-V:0.031 [1369:256]
Pos: 3.0s 80f ( 0%) 31.56fps Trem: 0min 0mb A-V:0.033 [1361:256]
Pos: 3.0s 81f ( 0%) 31.73fps Trem: 0min 0mb A-V:0.035 [1354:256]
Pos: 3.1s 82f ( 0%) 31.88fps Trem: 0min 0mb A-V:0.037 [1350:256]
Pos: 3.1s 83f ( 0%) 32.02fps Trem: 0min 0mb A-V:0.039 [1344:256]
Pos: 3.1s 84f ( 0%) 32.15fps Trem: 0min 0mb A-V:0.041 [1339:256]
Skipping frame!
Pos: 3.1s 85f ( 0%) 32.52fps Trem: 0min 0mb A-V:0.023 [1339:256]
Pos: 3.2s 86f ( 0%) 32.64fps Trem: 0min 0mb A-V:0.025 [1337:256]
<--------------------------------------------->
nothing interesting after this point, no skipping /duplicate frame messages.
<--------------------------------------------->
Pos: 300.0s 7507f ( 6%) 45.59fps Trem: 40min 704mb A-V:-0.011 [1005:256]
Pos: 300.0s 7508f ( 6%) 45.58fps Trem: 40min 704mb A-V:-0.009 [1005:256]
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream: 1005.319 kbit/s (125664 B/s) size: 37701994 bytes 300.020 secs 7508 frames
Audio stream: 256.000 kbit/s (32000 B/s) size: 9600000 bytes 300.000 secs
More information about the MPlayer-users
mailing list