[FFmpeg-trac] #6294(avfilter:open): gif frame delay dropped from last frame when scale filter is used

FFmpeg trac at avcodec.org
Tue Apr 11 19:38:28 EEST 2017


#6294: gif frame delay dropped from last frame when scale filter is used
------------------------------------+------------------------------------
             Reporter:  okor        |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avfilter
              Version:  git-master  |               Resolution:
             Keywords:  fps         |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by Gyan):

 Works if you call scale from within a filter_complex.

 {{{
 λ ffmpeg -i 7GPW_LivingRoom.gif -filter_complex scale=-2:-2 fc-out.mp4
 ffmpeg version N-85457-g8378466507 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with gcc 6.3.0 (Rev2, Built by MSYS2 project)
   configuration:  --enable-avisynth --enable-libmp3lame --enable-libopus
 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
 --enable-cuda --enable-cuvid --enable-schannel --enable-decklink --enable-
 fontconfig --enable-frei0r --enable-libass --enable-libbluray --enable-
 libbs2b --enable-libcaca --enable-libfreetype --enable-libfribidi
 --enable-libgme --enable-libgsm --enable-libilbc --enable-libmfx --enable-
 libmodplug --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libsoxr
 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvidstab --enable-libvo-amrwbenc --enable-libwavpack --enable-libwebp
 --enable-libxavs --enable-libxvid --enable-libzimg --enable-openssl
 --enable-libsnappy --enable-gpl --enable-opencl --enable-opengl --enable-
 libcdio --enable-libfdk-aac --enable-libkvazaar --enable-librubberband
 --enable-libssh --enable-libtesseract --enable-libzvbi --enable-
 chromaprint --enable-libopenh264 --enable-libopenmpt --enable-netcdf
 --enable-sdl2 --enable-libzmq --extra-cflags=-DLIBTWOLAME_STATIC --extra-
 cflags=-fopenmp --extra-libs=-lgomp --extra-libs=-lstdc++ --extra-
 cflags=-DLIBSSH_STATIC --extra-ldflags='-Wl,--allow-multiple-definition'
 --extra-cflags=-DCACA_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-
 cflags=-DCHROMAPRINT_NODLL --extra-libs=-lstdc++ --extra-
 cflags=-DZMQ_STATIC --disable-w32threads --extra-cflags=-DPTW32_STATIC_LIB
 --extra-libs=-lpthread --extra-libs=-lwsock32 --extra-
 cflags=-DKVZ_STATIC_LIB --enable-version3 --enable-nonfree --enable-
 filter=frei0r --disable-debug
   libavutil      55. 61.100 / 55. 61.100
   libavcodec     57. 92.100 / 57. 92.100
   libavformat    57. 72.100 / 57. 72.100
   libavdevice    57.  7.100 / 57.  7.100
   libavfilter     6. 84.101 /  6. 84.101
   libswscale      4.  7.100 /  4.  7.100
   libswresample   2.  8.100 /  2.  8.100
   libpostproc    54.  6.100 / 54.  6.100
 Input #0, gif, from '7GPW_LivingRoom.gif':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: gif, bgra, 2432x1556, 100 tbr, 100 tbn, 100 tbc
 Stream mapping:
   Stream #0:0 (gif) -> scale
   scale -> Stream #0:0 (libx264)
 Press [q] to stop, [?] for help
 No pixel format specified, yuv444p for H.264 encoding chosen.
 Use -pix_fmt yuv420p for compatibility with outdated media players.
 [libx264 @ 00000000004bc800] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
 [libx264 @ 00000000004bc800] profile High 4:4:4 Predictive, level 5.2,
 4:4:4 8-bit
 [libx264 @ 00000000004bc800] 264 - core 148 r2762 90a61ec - H.264/MPEG-4
 AVC codec - Copyleft 2003-2017 - 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=4 threads=6
 lookahead_threads=1 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 'fc-out.mp4':
   Metadata:
     encoder         : Lavf57.72.100
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p,
 2432x1556, q=-1--1, 100 fps, 12800 tbn, 100 tbc
     Metadata:
       encoder         : Lavc57.92.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
 frame=  400 fps= 33 q=-1.0 Lsize=     937kB time=00:00:03.97
 bitrate=1932.9kbits/s dup=398 drop=0 speed=0.324x
 video:931kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.589860%
 [libx264 @ 00000000004bc800] frame I:2     Avg QP:19.71  size:443142
 [libx264 @ 00000000004bc800] frame P:100   Avg QP:22.09  size:   292
 [libx264 @ 00000000004bc800] frame B:298   Avg QP:30.84  size:   126
 [libx264 @ 00000000004bc800] consecutive B-frames:  0.5%  0.0%  1.5% 98.0%
 [libx264 @ 00000000004bc800] mb I  I16..4:  8.8% 87.2%  4.1%
 [libx264 @ 00000000004bc800] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:
 0.1%  0.1%  0.7%  0.0%  0.0%    skip:99.1%
 [libx264 @ 00000000004bc800] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:
 0.1%  0.0%  0.0%  direct: 0.0%  skip:99.9%  L0:30.3% L1:69.7% BI: 0.0%

 [libx264 @ 00000000004bc800] 8x8 transform intra:86.8% inter:91.3%
 [libx264 @ 00000000004bc800] coded y,u,v intra: 95.9% 46.8% 42.9% inter:
 0.0% 0.0% 0.0%
 [libx264 @ 00000000004bc800] i16 v,h,dc,p: 12% 41% 38%  9%
 [libx264 @ 00000000004bc800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 35% 29%
 5%  4%  2%  3%  2%  7%
 [libx264 @ 00000000004bc800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 17% 15%
 6%  5%  3%  5%  3%  7%
 [libx264 @ 00000000004bc800] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 00000000004bc800] ref P L0: 92.0%  0.6%  4.6%  2.8%
 [libx264 @ 00000000004bc800] ref B L0: 61.0% 37.9%  1.1%
 [libx264 @ 00000000004bc800] ref B L1: 66.0% 34.0%
 [libx264 @ 00000000004bc800] kb/s:1905.86
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6294#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list