taniey

ffmpeg overlay gif question

Aug 21st, 2015
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. ffmpeg question about overlay gif.
  2. before 48.560s e.g. : 48s ,the gif show a little time and disappearance, reach to 48.560s the gif normal display.
  3. the command like :
  4.  
  5. ffmpeg -y -i '/data/mediadata/source/Ice.Age.Continental.Drift.2012.720sp.mkv' -ignore_loop 0 -i '/data/mediadata/source/gif.gif' -filter_complex "overlay=x=182:y=82:shortest=1:repeatlast=0:enable=between(t\,48.560\,60)[out]" -map [out] -c:v h264 -s 640*360 -b:v 500k -c:a aac -strict -2 -ar 22050 -ac 2 -t 00:01:00.000 'v_8JnNXs.mkv'
  6. ffmpeg version 2.7.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers
  7. built with gcc 4.9.3 (Debian 4.9.3-1)
  8. configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9
  9. libavutil 54. 27.100 / 54. 27.100
  10. libavcodec 56. 41.100 / 56. 41.100
  11. libavformat 56. 36.100 / 56. 36.100
  12. libavdevice 56. 4.100 / 56. 4.100
  13. libavfilter 5. 16.101 / 5. 16.101
  14. libswscale 3. 1.101 / 3. 1.101
  15. libswresample 1. 2.100 / 1. 2.100
  16. libpostproc 53. 3.100 / 53. 3.100
  17. Input #0, matroska,webm, from '/data/mediadata/source/Ice.Age.Continental.Drift.2012.720sp.mkv':
  18. Metadata:
  19. encoder : libebml v0.8.0 + libmatroska v0.9.0
  20. creation_time : 2012-10-14 03:18:39
  21. Duration: 01:27:45.34, start: 0.000000, bitrate: 4461 kb/s
  22. Stream #0:0: Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
  23. Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
  24. Metadata:
  25. title : 英语
  26. Stream #0:2: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
  27. Metadata:
  28. title : 国语
  29. Stream #0:3: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
  30. Metadata:
  31. title : 粤语
  32. Stream #0:4: Subtitle: ass (default)
  33. Metadata:
  34. title : 中英
  35. Stream #0:5: Subtitle: ass
  36. Metadata:
  37. title : 英中
  38. Stream #0:6: Subtitle: subrip
  39. Metadata:
  40. title : 中文
  41. Stream #0:7: Subtitle: subrip
  42. Metadata:
  43. title : 英文
  44. Input #1, gif, from '/data/mediadata/source/gif.gif':
  45. Duration: N/A, bitrate: N/A
  46. Stream #1:0: Video: gif, bgra, 199x220, 2.21 fps, 3.33 tbr, 100 tbn, 100 tbc
  47. [libx264 @ 0x2fc3640] using SAR=1/1
  48. [libx264 @ 0x2fc3640] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
  49. [libx264 @ 0x2fc3640] profile High, level 3.0
  50. [libx264 @ 0x2fc3640] 264 - core 146 r109 121396c - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
  51. Output #0, matroska, to 'v_8JnNXs.mkv':
  52. Metadata:
  53. encoder : Lavf56.36.100
  54. Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 500 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default)
  55. Metadata:
  56. encoder : Lavc56.41.100 libx264
  57. Stream mapping:
  58. Stream #0:0 (h264) -> overlay:main
  59. Stream #1:0 (gif) -> overlay:overlay
  60. overlay -> Stream #0:0 (libx264)
  61. Press [q] to stop, [?] for help
  62. frame= 1439 fps=173 q=-1.0 Lsize= 3773kB time=00:00:59.93 bitrate= 515.7kbits/s
  63. video:3762kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.286032%
  64. [libx264 @ 0x2fc3640] frame I:13 Avg QP:13.97 size: 9417
  65. [libx264 @ 0x2fc3640] frame P:761 Avg QP:18.70 size: 4121
  66. [libx264 @ 0x2fc3640] frame B:665 Avg QP:21.51 size: 892
  67. [libx264 @ 0x2fc3640] consecutive B-frames: 30.0% 21.8% 9.8% 38.4%
  68. [libx264 @ 0x2fc3640] mb I I16..4: 45.7% 38.8% 15.5%
  69. [libx264 @ 0x2fc3640] mb P I16..4: 7.9% 15.6% 2.8% P16..4: 22.8% 9.2% 4.4% 0.0% 0.0% skip:37.3%
  70. [libx264 @ 0x2fc3640] mb B I16..4: 0.2% 0.7% 0.2% B16..8: 21.8% 3.7% 0.5% direct: 1.3% skip:71.7% L0:29.5% L1:62.4% BI: 8.1%
  71. [libx264 @ 0x2fc3640] final ratefactor: 20.23
  72. [libx264 @ 0x2fc3640] 8x8 transform intra:58.2% inter:72.3%
  73. [libx264 @ 0x2fc3640] coded y,uvDC,uvAC intra: 36.2% 50.5% 26.6% inter: 10.8% 14.5% 1.7%
  74. [libx264 @ 0x2fc3640] i16 v,h,dc,p: 34% 41% 6% 19%
  75. [libx264 @ 0x2fc3640] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 21% 28% 3% 4% 3% 6% 3% 5%
  76. [libx264 @ 0x2fc3640] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 23% 16% 4% 6% 4% 7% 4% 3%
  77. [libx264 @ 0x2fc3640] i8c dc,h,v,p: 57% 27% 12% 4%
  78. [libx264 @ 0x2fc3640] Weighted P-Frames: Y:15.4% UV:7.4%
  79. [libx264 @ 0x2fc3640] ref P L0: 67.4% 16.1% 11.9% 4.4% 0.2%
  80. [libx264 @ 0x2fc3640] ref B L0: 90.6% 8.5% 0.9%
  81. [libx264 @ 0x2fc3640] ref B L1: 96.2% 3.8%
  82. [libx264 @ 0x2fc3640] kb/s:513.44
Advertisement
Add Comment
Please, Sign In to add comment