Advertisement
visionary

ffmpeg fade filter displays black even with alpha=1

Feb 9th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. ffmpeg -i test.mov -t 7 -r 30 -loop 1 -i chalkboard.png -y -filter_complex "[1]fade=in:30:15:alpha=1,fade=out:80:30:alpha=1,scale=580:720 [introbg];[0][introbg] overlay=0:0" -c:v libx264 -movflags +faststart -crf 18 -maxrate 6000000 -bufsize 12000000 -s:v 1280x720 -acodec libfaac -ac 2 -ar 48000 -ab 128000 -absf aac_adtstoasc test.mp4
  2. ffmpeg version N-37183-g969039e Copyright (c) 2000-2013 the FFmpeg developers
  3. built on Feb 9 2013 16:13:25 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  4. configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libx264 --enable-nonfree --enable-version3
  5. libavutil 52. 17.101 / 52. 17.101
  6. libavcodec 54. 91.102 / 54. 91.102
  7. libavformat 54. 62.100 / 54. 62.100
  8. libavdevice 54. 3.103 / 54. 3.103
  9. libavfilter 3. 37.101 / 3. 37.101
  10. libswscale 2. 2.100 / 2. 2.100
  11. libswresample 0. 17.102 / 0. 17.102
  12. libpostproc 52. 2.100 / 52. 2.100
  13. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
  14. Metadata:
  15. major_brand : qt
  16. minor_version : 537199360
  17. compatible_brands: qt
  18. creation_time : 2012-09-29 22:42:26
  19. Duration: 00:00:14.90, start: 0.000000, bitrate: 21008 kb/s
  20. Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 246 kb/s
  21. Metadata:
  22. creation_time : 2012-09-29 22:42:26
  23. handler_name : Apple Alias Data Handler
  24. Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720, 20758 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 600 tbn, 1200 tbc
  25. Metadata:
  26. creation_time : 2012-09-29 22:42:26
  27. handler_name : Apple Alias Data Handler
  28. Input #1, image2, from 'chalkboard.png':
  29. Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
  30. Stream #1:0: Video: png, rgb24, 1280x720 [SAR 2835:2835 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
  31. -t is not an input option, keeping it for the next output; consider fixing your command line.
  32. [libx264 @ 0x20f9b80] using SAR=1/1
  33. [libx264 @ 0x20f9b80] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
  34. [libx264 @ 0x20f9b80] profile High, level 3.1
  35. [libx264 @ 0x20f9b80] 264 - core 129 r2 bc13772 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - 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=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=6000 vbv_bufsize=12000 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00
  36. Output #0, mp4, to 'test.mp4':
  37. Metadata:
  38. major_brand : qt
  39. minor_version : 537199360
  40. compatible_brands: qt
  41. encoder : Lavf54.62.100
  42. Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 15360 tbn, 30 tbc
  43. Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s
  44. Metadata:
  45. creation_time : 2012-09-29 22:42:26
  46. handler_name : Apple Alias Data Handler
  47. Stream mapping:
  48. Stream #0:1 (h264) -> overlay:main (graph 0)
  49. Stream #1:0 (png) -> fade (graph 0)
  50. overlay (graph 0) -> Stream #0:0 (libx264)
  51. Stream #0:0 -> #0:1 (aac -> libfaac)
  52. Press [q] to stop, [?] for help
  53. Starting second pass: moving header on top of the file04.80 bitrate=2827.9kbits/s
  54. frame= 210 fps= 22 q=32766.0 Lsize= 2103kB time=00:00:07.01 bitrate=2454.7kbits/s
  55. video:1986kB audio:109kB subtitle:0 global headers:0kB muxing overhead 0.405378%
  56. [libx264 @ 0x20f9b80] frame I:2 Avg QP:15.52 size: 26128
  57. [libx264 @ 0x20f9b80] frame P:109 Avg QP:17.78 size: 15590
  58. [libx264 @ 0x20f9b80] frame B:99 Avg QP:19.14 size: 2841
  59. [libx264 @ 0x20f9b80] consecutive B-frames: 20.0% 48.6% 8.6% 22.9%
  60. [libx264 @ 0x20f9b80] mb I I16..4: 69.2% 11.8% 19.0%
  61. [libx264 @ 0x20f9b80] mb P I16..4: 8.3% 6.0% 2.4% P16..4: 27.6% 8.4% 5.7% 0.0% 0.0% skip:41.7%
  62. [libx264 @ 0x20f9b80] mb B I16..4: 1.3% 0.2% 0.1% B16..8: 16.4% 2.0% 0.3% direct: 2.3% skip:77.4% L0:38.7% L1:50.7% BI:10.5%
  63. [libx264 @ 0x20f9b80] 8x8 transform intra:32.1% inter:65.8%
  64. [libx264 @ 0x20f9b80] coded y,uvDC,uvAC intra: 51.2% 29.7% 7.3% inter: 15.0% 18.1% 0.5%
  65. [libx264 @ 0x20f9b80] i16 v,h,dc,p: 62% 15% 14% 9%
  66. [libx264 @ 0x20f9b80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 18% 37% 4% 3% 4% 4% 6% 5%
  67. [libx264 @ 0x20f9b80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 23% 22% 4% 5% 5% 5% 4% 3%
  68. [libx264 @ 0x20f9b80] i8c dc,h,v,p: 73% 12% 13% 2%
  69. [libx264 @ 0x20f9b80] Weighted P-Frames: Y:20.2% UV:0.0%
  70. [libx264 @ 0x20f9b80] ref P L0: 48.5% 20.8% 22.9% 6.2% 1.6%
  71. [libx264 @ 0x20f9b80] ref B L0: 82.7% 15.8% 1.5%
  72. [libx264 @ 0x20f9b80] ref B L1: 96.8% 3.2%
  73. [libx264 @ 0x20f9b80] kb/s:2323.32
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement