[FFmpeg-user] yadif filter loses last frame

Mark Himsley mark at mdsh.com
Sat Jan 21 19:04:08 CET 2012


I have a 10 second interlaced source file. It has every field identified.

When I pass that file through the yadif filter to deinterlace it, both
fields of the the last input frame are missing from the output file.

I am also interested by the "*** 1 dup!" message - I believe that
message is output before the first frame is written.


./ffmpeg -loglevel debug -i ~/Movies/TestSigs_625-50/Clock10.mov -vf
yadif=1 -r 50 -vcodec mpeg4 -b:v 4000K -y Clock10-50.mov
ffmpeg version N-36573-g49c5e62 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Jan 21 2012 17:45:37 with gcc 4.0.1 (Apple Inc. build 5490)
  configuration: --extra-cflags='-I/Users/mdsh/local/ffmpeg/include
-I/opt/local/include' --extra-libs='-L/Users/mdsh/local/ffmpeg/lib
-L/opt/local/lib' --prefix=/Users/mdsh/local/ffmpeg --cpu=i686
--disable-ffplay --enable-ffprobe --enable-shared --disable-indev=jack
--disable-indev=x11_grab_device --enable-gpl --enable-version3
--enable-nonfree --enable-pthreads --enable-libdirac --enable-libfaac
--enable-libgsm --enable-libmp3lame --enable-libopenjpeg
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxvid
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 54.100 / 53. 54.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 57.101 /  2. 57.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2004e00] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=95
[dvvideo @ 0x200e800] err{or,}_recognition separate: 1; 1
[dvvideo @ 0x200e800] err{or,}_recognition combined: 1; 10001
[dvvideo @ 0x200e800] detected 2 logical cores
[dvvideo @ 0x200e800] Unsupported bit depth: 0
[dvvideo @ 0x2005400] err{or,}_recognition separate: 1; 1
[dvvideo @ 0x2005400] err{or,}_recognition combined: 1; 10001
[dvvideo @ 0x2005400] detected 2 logical cores
[dvvideo @ 0x2005400] Unsupported bit depth: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2004e00] All info found
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/Users/mdsh/Movies/TestSigs_625-50/Clock10.mov':
  Metadata:
    creation_time   : 2009-06-23 19:40:06
  Duration: 00:00:10.00, start: 0.000000, bitrate: 29011 kb/s
    Stream #0:0(eng), 1, 1/2500: Video: dvvideo (dvcp / 0x70637664),
yuv420p, 720x576 [SAR 16:15 DAR 4:3], 1/25, 28800 kb/s, 25 fps, 25 tbr,
2500 tbn, 25 tbc
    Metadata:
      creation_time   : 2009-06-23 19:40:07
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng), 1, 1/2500: Video: dvvideo (dvcp / 0x70637664),
yuv420p, 720x576 [SAR 16:15 DAR 4:3], 1/25, 28800 kb/s, 25 fps, 25 tbr,
2500 tbn, 25 tbc
    Metadata:
      creation_time   : 2009-06-23 19:40:07
      handler_name    : ?Apple Alias Data Handler
[buffer @ 0x1d23f20] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/15
sws_param:
[yadif @ 0x1d24460] mode:1 parity:-1 auto_enable:0
[mpeg4 @ 0x2012a00] err{or,}_recognition separate: 1; 1
[mpeg4 @ 0x2012a00] err{or,}_recognition combined: 1; 10001
[mpeg4 @ 0x2012a00] detected 2 logical cores
[mpeg4 @ 0x2012a00] intra_quant_bias = 0 inter_quant_bias = -64
[mpeg4 @ 0x2012a00] Unsupported bit depth: 0
[dvvideo @ 0x200e800] err{or,}_recognition separate: 1; 10001
[dvvideo @ 0x200e800] err{or,}_recognition combined: 1; 10001
[dvvideo @ 0x200e800] detected 2 logical cores
[dvvideo @ 0x200e800] Unsupported bit depth: 0
Output #0, mov, to 'Clock10-50.mov':
  Metadata:
    creation_time   : 2009-06-23 19:40:06
    encoder         : Lavf53.29.100
    Stream #0:0(eng), 0, 1/50: Video: mpeg4 (mp4v / 0x7634706D),
yuv420p, 720x576 [SAR 16:15 DAR 4:3], 1/50, q=2-31, 4000 kb/s, 50 tbn,
50 tbc
    Metadata:
      creation_time   : 2009-06-23 19:40:07
      handler_name    : ?Apple Alias Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (dvvideo -> mpeg4)
Press [q] to stop, [?] for help
*** 1 dup!
frame=  499 fps= 84 q=2.7 Lsize=    5006kB time=00:00:09.98
bitrate=4108.9kbits/s dup=1 drop=0
video:5003kB audio:0kB global headers:0kB muxing overhead 0.058737%

-- 
Mark


More information about the ffmpeg-user mailing list