[FFmpeg-user] overlaying animated PNG, doesn't loop

Dave Thorn davet at fysh.org
Mon Jan 11 10:08:03 EET 2021


Yeah, sorry.  Stuck on Windows at the moment and I was anticipating
difficulty updating, but it was fine.

Same behaviour in this version:

$ ./ffmpeg-N-100581-ga454a0c14f-win64-gpl/bin/ffmpeg -i ../input.mp4 -i ../elephant.apng -filter_complex "[0:v][1:v] overlay=25:25:enable='between(t,0,4)'" -pix_fmt yuv420p -c:a copy output.mp4
ffmpeg version N-100581-ga454a0c14f Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 9.3-win32 (GCC) 20200320
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enabl
e-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enabl
e-ffnvcodec --enable-cuda-llvm --disable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --en
able-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --ext
ra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
  libavutil      56. 63.100 / 56. 63.100
  libavcodec     58.115.102 / 58.115.102
  libavformat    58. 65.101 / 58. 65.101
  libavdevice    58. 11.103 / 58. 11.103
  libavfilter     7. 95.100 /  7. 95.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../input.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.18.102
  Duration: 00:00:04.04, start: 0.000000, bitrate: 28 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 24 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
Input #1, apng, from '../elephant.apng':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Video: apng, rgba(pc), 480x400, 24 fps, 24 tbr, 100k tbn, 100k tbc
Stream mapping:
  Stream #0:0 (h264) -> overlay:main
  Stream #1:0 (apng) -> overlay:overlay
  overlay -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[libx264 @ 000001a3db0dd240] using SAR=1/1
[libx264 @ 000001a3db0dd240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001a3db0dd240] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 000001a3db0dd240] 264 - core 161 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=12 lookahead_threads=2 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=24 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 'output.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.65.101
    Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 24 fps, 12288 tbn (default)
    Metadata:
      encoder         : Lavc58.115.102 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=   97 fps=0.0 q=-1.0 Lsize=      59kB time=00:00:03.91 bitrate= 124.4kbits/s speed= 4.9x
video:57kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.468895%
[libx264 @ 000001a3db0dd240] frame I:1     Avg QP:18.32  size:  8066
[libx264 @ 000001a3db0dd240] frame P:24    Avg QP:15.47  size:   951
[libx264 @ 000001a3db0dd240] frame B:72    Avg QP:17.65  size:   379
[libx264 @ 000001a3db0dd240] consecutive B-frames:  1.0%  0.0%  0.0% 99.0%
[libx264 @ 000001a3db0dd240] mb I  I16..4: 15.8% 82.0%  2.1%
[libx264 @ 000001a3db0dd240] mb P  I16..4:  0.2%  0.1%  0.1%  P16..4:  1.1%  0.3%  0.1%  0.0%  0.0%    skip:98.2%
[libx264 @ 000001a3db0dd240] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.1%  0.2%  0.0%  direct: 0.0%  skip:98.7%  L0:48.6% L1:49.3% BI: 2.2%
[libx264 @ 000001a3db0dd240] 8x8 transform intra:77.5% inter:21.6%
[libx264 @ 000001a3db0dd240] coded y,uvDC,uvAC intra: 2.8% 7.5% 4.8% inter: 0.1% 0.1% 0.1%
[libx264 @ 000001a3db0dd240] i16 v,h,dc,p: 81% 11%  7%  1%
[libx264 @ 000001a3db0dd240] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 79% 11% 10%  0%  0%  0%  0%  0%  0%
[libx264 @ 000001a3db0dd240] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 27% 26%  4%  3%  4%  4%  3%  4%
[libx264 @ 000001a3db0dd240] i8c dc,h,v,p: 84%  5% 10%  0%
[libx264 @ 000001a3db0dd240] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001a3db0dd240] ref P L0: 69.4%  0.9% 16.3% 13.4%
[libx264 @ 000001a3db0dd240] ref B L0: 67.0% 29.8%  3.3%
[libx264 @ 000001a3db0dd240] ref B L1: 96.0%  4.0%
[libx264 @ 000001a3db0dd240] kb/s:115.18



On Fri, Jan 08, 2021 at 06:42:45PM -0800, Carl Zwanzig wrote:
> On 1/8/2021 6:47 AM, Dave Thorn via ffmpeg-user wrote:
> > Coming back to ffmpeg after a while away, so my version is probably a
> > bit out of date by now[1]
> 
> _Always_ try an up-to-date version, even if you don't think that's the problem.
> 
> z!
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

-- 
dave thorn

Would you like green eggs and the fundamental condition of yearning
for meaning in a world devoid of it?


More information about the ffmpeg-user mailing list