SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Adds 3-sec fading out title image before video.      
  2. # What's going on here: We get title.png image, loop it for 3 sec video, create 3 sec silence, get video.mp4 (framerate 25). Next, we add fade out filter on looped image video, after that we concat our image video, audio silence and main video into one. Easy peasy.
  3.    
  4. Add image (3 sec) at first with fade effect
  5. ffmpeg -loop 1 -framerate 25 -t 3 -i iphone1.jpg -t 3 -f lavfi -i aevalsrc=0 -i video.mp4 -filter_complex '[0:0]fade=out:50:25:alpha=1[title]; [title][1:0][2:0][2:1] concat=n=2:v=1:a=1' output4.mp4
  6.  
  7.  
  8. Add image (3 sec) at end of video  
  9. ffmpeg -i video.mp4 -loop 1 -framerate 25 -t 3 -i iphone1.jpg -t 3 -f lavfi -i aevalsrc=0 -filter_complex 'concat=n=2:v=1:a=1' output4.mp4
  10.  
  11.  
  12. Add image (3 sec) at start of video no effects 
  13. ffmpeg -loop 1 -framerate 25 -t 3 -i iphone1.jpg -t 3 -f lavfi -i aevalsrc=0 -i video.mp4  -filter_complex 'concat=n=2:v=1:a=1' output4.mp4
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top