[FFmpeg-user] How to deinterlace a 25fps (50i tff content) video with FFplay and output it as 50p?

Christoph Gerstbauer christophgerstbauer at gmail.com
Fri Oct 23 15:01:30 CEST 2015


Hi,

I am trying to output a 25fps (50i content) with deinterlacing and 
doubled framerate.

I am using following syntax to deinterlace TFF content, but I only get 
25p output. How can I force ffplay to output 50p? "-r 50" is not working.

ffplay -i test.avi -vf "yadif=0:0" -loglevel debug

ffplay version N-74751-gb54e03c Copyright (c) 2003-2015 the FFmpeg 
developers
   built with gcc 4.9.3 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls
-enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm 
--enable-libi
odplug --enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus 
--enable-librtmp --enable-libschro
libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc 
--enable-libvorbis --e
able-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxavs --enable-libxvid --enable-lzma --enable-decklink 
--enable-zlib
   libavutil      54. 31.100 / 54. 31.100
   libavcodec     56. 59.100 / 56. 59.100
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 40.100 /  5. 40.100
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.100
[avi @ 0000000004880740] Format avi probed with size=2048 and score=100
[avi @ 0000000004880360] use odml:1
[avi @ 0000000004880740] Before avformat_find_stream_info() pos: 10088 
bytes read:198368 seeks:6
[avi @ 0000000004880740] parser not found for codec huffyuv, packets or 
times may be invalid.
[avi @ 0000000004880740] parser not found for codec pcm_s16le, packets 
or times may be invalid.
[avi @ 0000000004880740] parser not found for codec huffyuv, packets or 
times may be invalid.
[avi @ 0000000004880740] parser not found for codec pcm_s16le, packets 
or times may be invalid.
[avi @ 0000000004880740] All info found
[avi @ 0000000004880740] After avformat_find_stream_info() pos: 381332 
bytes read:598276 seeks:6 frames:2
Input #0, avi, from 'test.avi':
   Metadata:
     encoder         : Lavf57.3.100
   Duration: 00:00:30.00, start: 0.000000, bitrate: 78613 kb/s
     Stream #0:0, 1, 1/25: Video: huffyuv, 1 reference frame (HFYU / 
0x55594648), yuv422p, 720x576, 1/25, 77161 kb/s, SAR 197:180 DAR 
197:144, 25 fps, 25
bc
     Stream #0:1, 1, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 
48000 Hz, 2 channels, s16, 1536 kb/s
detected 16 logical cores
[ffplay_abuffer @ 00000000048a0d80] Setting 'sample_rate' to value '48000'
[ffplay_abuffer @ 00000000048a0d80] Setting 'sample_fmt' to value 's16'
[ffplay_abuffer @ 00000000048a0d80] Setting 'channels' to value '2'
[ffplay_abuffer @ 00000000048a0d80] Setting 'time_base' to value '1/48000'
[ffplay_abuffer @ 00000000048a0d80] tb:1/48000 samplefmt:s16 
samplerate:48000 chlayout:(null)
[AVFilterGraph @ 0000000004893920] query_formats: 2 queried, 3 merged, 0 
already done, 0 delayed
Audio frame changed from rate:48000 ch:2 fmt:s16 layout:0 channels 
serial:-1 to rate:48000 ch:2 fmt:s16 layout:0 channels serial:1
Video frame changed from size:0x0 format:none serial:-1 to size:720x576 
format:yuv422p serial:1
[ffplay_abuffer @ 00000000048a0d80] Setting 'sample_rate' to value '48000'
[ffplay_abuffer @ 00000000048a0d80] Setting 'sample_fmt' to value 's16'
[ffplay_abuffer @ 00000000048a0d80] Setting 'channels' to value '2'
[ffplay_abuffer @ 00000000048a0d80] Setting 'time_base' to value '1/48000'
[ffplay_abuffer @ 00000000048a0d80] tb:1/48000 samplefmt:s16 
samplerate:48000 chlayout:(null)
[AVFilterGraph @ 000000000b2278e0] query_formats: 2 queried, 3 merged, 0 
already done, 0 delayed
[ffplay_buffer @ 0000000005595e00] Setting 'video_size' to value '720x576'
[ffplay_buffer @ 0000000005595e00] Setting 'pix_fmt' to value '4'
[ffplay_buffer @ 0000000005595e00] Setting 'time_base' to value '1/25'
[ffplay_buffer @ 0000000005595e00] Setting 'pixel_aspect' to value '0/1'
[ffplay_buffer @ 0000000005595e00] Setting 'frame_rate' to value '25/1'
[ffplay_buffer @ 0000000005595e00] w:720 h:576 pixfmt:yuv422p tb:1/25 
fr:25/1 sar:0/1 sws_param:
[ffplay_crop @ 00000000048a0e80] Setting 'out_w' to value 'floor(in_w/2)*2'
[ffplay_crop @ 00000000048a0e80] Setting 'out_h' to value 'floor(in_h/2)*2'
[Parsed_yadif_0 @ 00000000048a1080] Setting 'mode' to value '0'
[Parsed_yadif_0 @ 00000000048a1080] Setting 'parity' to value '0'
[auto-inserted scaler 0 @ 0000000004886780] Setting 'flags' to value 
'bicubic'
[auto-inserted scaler 0 @ 0000000004886780] w:iw h:ih flags:'bicubic' 
interl:0
[ffplay_crop @ 00000000048a0e80] auto-inserting filter 'auto-inserted 
scaler 0' between the filter 'Parsed_yadif_0' and the filter 'ffplay_crop'
[AVFilterGraph @ 0000000005cad0e0] query_formats: 4 queried, 2 merged, 1 
already done, 0 delayed
[auto-inserted scaler 0 @ 0000000004886780] w:720 h:576 fmt:yuv422p 
sar:0/1 -> w:720 h:576 fmt:yuv420p sar:0/1 flags:0x4
[ffplay_crop @ 00000000048a0e80] w:720 h:576 sar:0/1 -> w:720 h:576 sar:0/1
Switch subtitle stream from #-1 to #-1 vq= 9891KB sq=    0B f=0/0
    3.43 A-V:  0.019 fd=   0 aq=  283KB vq= 9788KB sq=    0B f=0/0

Best Regards
Christoph


More information about the ffmpeg-user mailing list