Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- mkdir vid
- cd vid
- #Get Media
- youtube-dl -c -f 22 "https://youtu.be/3-7THizUa-w" -o A.mp4
- youtube-dl -c -f 22 "https://youtu.be/FaTa5vqV49I" -o B.mp4
- wget "https://filmsbykris.com/scripts/2022/overlay.png" -O overlay.png
- #convert overlay.png -resize 1280x720 overlay.png
- #preview
- melt -track A.mp4 -filter watermark:overlay.png -track B.mp4 -transition composite geometry=70%,5%:40%x40% -transition mix
- #melt -track A.mp4 -filter watermark:overlay.png -track B.mp4 -transition composite geometry=10%,10%:20%x20% -audio-track A.mp4 -transition mix
- #render to Xvid AVI
- melt -track A.mp4 -filter watermark:overlay.png -track B.mp4 -transition composite geometry=70%,5%:40%x40% -transition mix -consumer avformat:"render.mp4"
- #or with compression options
- 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
- #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
- ###Live Webcam Overlay###
- 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