Advertisement
metalx1000

Melt MLT Video Overlay Newcast

Jan 18th, 2018 (edited)
871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.56 KB | None | 0 0
  1. #!/bin/bash
  2. mkdir vid
  3. cd vid
  4.  
  5. #Get Media
  6. youtube-dl -c -f 22 "https://youtu.be/3-7THizUa-w" -o A.mp4
  7. youtube-dl -c -f 22 "https://youtu.be/FaTa5vqV49I" -o B.mp4
  8. wget "https://filmsbykris.com/scripts/2022/overlay.png" -O overlay.png
  9. #convert overlay.png -resize 1280x720 overlay.png
  10.  
  11. #preview
  12. melt -track A.mp4 -filter watermark:overlay.png -track B.mp4 -transition composite geometry=70%,5%:40%x40% -transition mix
  13.  
  14. #melt -track A.mp4 -filter watermark:overlay.png -track B.mp4 -transition composite geometry=10%,10%:20%x20% -audio-track A.mp4 -transition mix
  15.  
  16. #render to Xvid AVI
  17. melt -track A.mp4 -filter watermark:overlay.png -track B.mp4 -transition composite geometry=70%,5%:40%x40% -transition mix -consumer avformat:"render.mp4"
  18.  
  19. #or with compression options
  20. melt -track A.mp4 -filter watermark:overlay.png -track B.mp4 -transition composite geometry=70%,5%:40%x40% -transition mix -consumer avformat:"render.mp4" acodec=libmp3lame ab=128k ar=44100 vcodec=libxvid minrate=0 vb=8000k aspect=@16/9 mbd=2 trellis=1 mv4=1 pass=1 threads=1 real_time=-1
  21.  
  22. #melt -track A.mp4 -filter watermark:overlay.png -track B.mp4 -transition composite geometry=10%,10%:20%x20% -audio-track A.mp4 -transition mix -consumer avformat:"render.avi" acodec=libmp3lame ab=128k ar=44100 vcodec=libxvid minrate=0 vb=8000k aspect=@16/9 mbd=2 trellis=1 mv4=1 pass=1 threads=1 real_time=-1
  23.  
  24. ###Live Webcam Overlay###
  25. melt -track video4linux2:"/dev/video2?width=720&height=340&frame_rate=15" -filter watermark:overlay.png -track B.mp4 -transition composite geometry=5%x5%:30%x30% -transition mix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement