[FFmpeg-trac] #1040(avfilter:new): yadif filter with movie source causes assertion failure

FFmpeg trac at avcodec.org
Tue Mar 6 00:38:00 CET 2012


#1040: yadif filter with movie source causes assertion failure
----------------------------------+--------------------------------------
             Reporter:  ls        |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avfilter  |                  Version:  git-master
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 See log below. Example works if yadif is removed.

 {{{
 ffmpeg -i ~/scratch/camera-raw.mp4 -vf movie=~/scratch/camera-
 raw.mp4,yadif=1,scale=100:100[mov],[in][mov]overlay=10:10 -y out.mp4

 ffmpeg version N-32793-g01606d1 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Mar  6 2012 00:02:07 with gcc 4.6.1
   configuration: --prefix=/home/ls/ffmpeg --enable-shared --disable-static
 --enable-gpl --enable-nonfree --enable-libmp3lame --enable-libx264
 --enable-libxvid --enable-sram --cpu=core2 --enable-hwaccel=h264_vaapi
 --enable-hwaccel=mpeg2_vaapi --enable-hwaccel=mpeg4_vaapi --enable-libfaac
 --enable-x11grab --disable-ffserver --enable-libvpx --enable-libvorbis
 --enable-libass --enable-libfreetype
   libavutil      51. 41.100 / 51. 41.100
   libavcodec     54.  9.100 / 54.  9.100
   libavformat    54.  2.100 / 54.  2.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 63.100 /  2. 63.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  7.100 /  0.  7.100
   libpostproc    52.  0.100 / 52.  0.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ls/scratch/camera-raw.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: mp42
     creation_time   : 2012-02-13 23:21:42
   Duration: 00:13:40.80, start: 0.000000, bitrate: 1022 kb/s
     Stream #0:0(eng): Video: mpeg2video (Main) (mp4v / 0x7634706D),
 yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 35000 kb/s, 25 fps, 25 tbr, 25k
 tbn, 50 tbc
     Metadata:
       creation_time   : 2012-02-13 23:21:42
       handler_name    : Video Media Handler
     Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2
 channels, s16, 1536 kb/s
     Metadata:
       creation_time   : 2012-02-13 23:21:42
       handler_name    : NRT Metadata Handler
 [buffer @ 0x247e740] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1
 sws_param:
 [movie @ 0x24a9120] seek_point:0 format_name:(null)
 file_name:/home/ls/scratch/camera-raw.mp4 stream_index:0
 [yadif @ 0x2518400] mode:1 parity:-1 auto_enable:0
 [scale @ 0x2518a40] w:1920 h:1080 fmt:yuv420p -> w:100 h:100 fmt:yuva420p
 flags:0x4
 [overlay @ 0x24c7c20] main w:1920 h:1080 fmt:yuv420p overlay x:10 y:10
 w:100 h:100 fmt:yuva420p
 [overlay @ 0x24c7c20] main_tb:1/1000000 overlay_tb:1/25000 -> tb:1/1000000
 exact:1
 [libx264 @ 0x24a8260] using SAR=1/1
 [libx264 @ 0x24a8260] using cpu capabilities: MMX2 SSE2Fast SSSE3
 FastShuffle SSE4.2
 [libx264 @ 0x24a8260] profile High, level 4.0
 [libx264 @ 0x24a8260] 264 - core 120 r0+2 a3f4407 - H.264/MPEG-4 AVC codec
 - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60
 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'out.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: mp42
     creation_time   : 2012-02-13 23:21:42
     encoder         : Lavf54.2.100
     Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 tbn, 25 tbc
     Metadata:
       creation_time   : 2012-02-13 23:21:42
       handler_name    : Video Media Handler
     Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 2
 channels, s16, 128 kb/s
     Metadata:
       creation_time   : 2012-02-13 23:21:42
       handler_name    : NRT Metadata Handler
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg2video -> libx264)
   Stream #0:1 -> #0:1 (pcm_s16be -> libfaac)
 Press [q] to stop, [?] for help
 [mpeg2video @ 0x247d480] warning: first frame is no keyframe
 ffmpeg: libavfilter/vf_yadif.c:323: poll_frame: Assertion `yadif->next ||
 !val' failed.
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1040>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list