#4990: fieldmatch+decimate duplicate frames with yuv ------------------------------------+------------------------------------ Reporter: nullb | Owner: Type: defect | Status: reopened Priority: normal | Component: avfilter Version: git-master | Resolution: Keywords: pullup | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 0 | ------------------------------------+------------------------------------
Comment (by cehoyos): In the first block of five frames, the fifth frame should be dropped, but the first frame is dropped instead: {{{ $ ffmpeg -loglevel 50 -i fieldmatched.avi -vf decimate -f null - ffmpeg version N-81500-ga648391 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.7 (SUSE Linux) configuration: --enable-gpl libavutil 55. 29.100 / 55. 29.100 libavcodec 57. 54.101 / 57. 54.101 libavformat 57. 48.101 / 57. 48.101 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 58.100 / 6. 58.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '50'. Reading option '-i' ... matched as input file with argument 'fieldmatched.avi'. Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'decimate'. Reading option '-f' ... matched as option 'f' (force format) with argument 'null'. Reading option '-' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument 50. Successfully parsed a group of options. Parsing a group of options: input file fieldmatched.avi. Successfully parsed a group of options. Opening an input file: fieldmatched.avi. [file @ 0x1fcbd20] Setting default whitelist 'file,crypto' [avi @ 0x1fcb400] Format avi probed with size=2048 and score=100 [avi @ 0x1fcbda0] use odml:1 [avi @ 0x1fcb400] Before avformat_find_stream_info() pos: 5720 bytes read:98952 seeks:4 nb_streams:1 [avi @ 0x1fcb400] parser not found for codec ffv1, packets or times may be invalid. Last message repeated 1 times [avi @ 0x1fcb400] All info found [avi @ 0x1fcb400] After avformat_find_stream_info() pos: 635993 bytes read:696457 seeks:4 frames:1 Input #0, avi, from 'fieldmatched.avi': Metadata: encoder : Lavf57.20.100 Duration: 00:00:00.67, start: 0.000000, bitrate: 123059 kb/s Stream #0:0, 1, 1001/30000: Video: ffv1, 1 reference frame (FFV1 / 0x31564646), yuv420p, 1920x1080, 0/1, 129457 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc Successfully opened the file. Parsing a group of options: output file -. Applying option vf (set video filters) with argument decimate. Applying option f (force format) with argument null. Successfully parsed a group of options. Opening an output file: -. Successfully opened the file. detected 8 logical cores [graph 0 input from stream 0:0 @ 0x1fd0060] Setting 'video_size' to value '1920x1080' [graph 0 input from stream 0:0 @ 0x1fd0060] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0x1fd0060] Setting 'time_base' to value '1001/30000' [graph 0 input from stream 0:0 @ 0x1fd0060] Setting 'pixel_aspect' to value '0/1' [graph 0 input from stream 0:0 @ 0x1fd0060] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x1fd0060] Setting 'frame_rate' to value '30000/1001' [graph 0 input from stream 0:0 @ 0x1fd0060] w:1920 h:1080 pixfmt:yuv420p tb:1001/30000 fr:30000/1001 sar:0/1 sws_param:flags=2 [AVFilterGraph @ 0x1fd0220] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed [Parsed_decimate_0 @ 0x1fd1100] FPS: 30000/1001 -> 24000/1001 [null @ 0x1fce1c0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Output #0, null, to 'pipe:': Metadata: encoder : Lavf57.48.101 Stream #0:0, 0, 1001/24000: Video: wrapped_avframe, 1 reference frame, yuv420p, 1920x1080, 0/1, q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc Metadata: encoder : Lavc57.54.101 wrapped_avframe Stream mapping: Stream #0:0 -> #0:0 (ffv1 (native) -> wrapped_avframe (native)) Press [q] to stop, [?] for help cur_dts is invalid (this is harmless if it occurs once at the start per stream) Last message repeated 11 times [Parsed_decimate_0 @ 0x1fd1100] 1/5 frame drop: [Parsed_decimate_0 @ 0x1fd1100] #1: totdiff=7fffffffffffffff maxbdiff=7fffffffffffffff sc [DROP] [Parsed_decimate_0 @ 0x1fd1100] #2: totdiff=00ca660c maxbdiff=000130d8 [Parsed_decimate_0 @ 0x1fd1100] #3: totdiff=015715f3 maxbdiff=00022e12 [Parsed_decimate_0 @ 0x1fd1100] #4: totdiff=00c6e459 maxbdiff=0001df5b [Parsed_decimate_0 @ 0x1fd1100] #5: totdiff=000d4fce maxbdiff=00000d05 lowest [Parsed_decimate_0 @ 0x1fd1100] 1/5 frame drop: [Parsed_decimate_0 @ 0x1fd1100] #1: totdiff=0093eda5 maxbdiff=0001b481 [Parsed_decimate_0 @ 0x1fd1100] #2: totdiff=0089d968 maxbdiff=00019ebc [Parsed_decimate_0 @ 0x1fd1100] #3: totdiff=0080a999 maxbdiff=00017223 [Parsed_decimate_0 @ 0x1fd1100] #4: totdiff=007c98d0 maxbdiff=00018261 [Parsed_decimate_0 @ 0x1fd1100] #5: totdiff=00099bf0 maxbdiff=00000f6b lowest [DROP] [Parsed_decimate_0 @ 0x1fd1100] 1/5 frame drop: [Parsed_decimate_0 @ 0x1fd1100] #1: totdiff=0079855c maxbdiff=0001ab54 [Parsed_decimate_0 @ 0x1fd1100] #2: totdiff=008401c0 maxbdiff=0001bf8e [Parsed_decimate_0 @ 0x1fd1100] #3: totdiff=007db8bb maxbdiff=0001ade7 [Parsed_decimate_0 @ 0x1fd1100] #4: totdiff=007f553c maxbdiff=0001806d [Parsed_decimate_0 @ 0x1fd1100] #5: totdiff=0010b14d maxbdiff=00001d9a lowest [DROP] [Parsed_decimate_0 @ 0x1fd1100] 1/5 frame drop: [Parsed_decimate_0 @ 0x1fd1100] #1: totdiff=007b5d19 maxbdiff=0001691f [Parsed_decimate_0 @ 0x1fd1100] #2: totdiff=0076c12d maxbdiff=00012a61 [Parsed_decimate_0 @ 0x1fd1100] #3: totdiff=006cc5ab maxbdiff=00014404 [Parsed_decimate_0 @ 0x1fd1100] #4: totdiff=005b2dca maxbdiff=0000e7ce [Parsed_decimate_0 @ 0x1fd1100] #5: totdiff=000fe7bc maxbdiff=0000150d lowest [DROP] [Parsed_decimate_0 @ 0x1fd1100] 1/5 frame drop: [output stream 0:0 @ 0x1fd1d20] EOF on sink link output stream 0:0:default. No more output streams to write to, finishing. frame= 16 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.70 bitrate=N/A speed=2.44x video:8kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (fieldmatched.avi): Input stream #0:0 (video): 20 packets read (10258995 bytes); 20 frames decoded; Total: 20 packets (10258995 bytes) demuxed Output file #0 (pipe:): Output stream #0:0 (video): 16 frames encoded; 16 packets muxed (7808 bytes); Total: 16 packets (7808 bytes) muxed 20 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x1fd4040] Statistics: 10325678 bytes read, 4 seeks }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/4990#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://ffmpeg.org/mailman/listinfo/ffmpeg-trac