Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- mkdir output
- endurl="https://youtu.be/tSbv3jcSuNM"
- introurl="https://youtu.be/ySE1kYtrsj0,https://youtu.be/nksGb6mRAzE,https://youtu.be/wmA7I7dSYXs"
- introurl="$(echo "$introurl"|tr "," "\n"|shuf -n 1)"
- endvid="/tmp/yellowsun.mp4"
- introvid="/tmp/intro.mp4"
- youtube-dl -c "$endurl" -o "$endvid"
- rm "$introvid"
- youtube-dl -c "$introurl" -o "$introvid"
- #for i in *.{mkv,avi,mp4,MOV,mov}
- ls *.{mkv,avi,mp4,MOV,mov}|while read i
- do
- #get tech tip/fact url and make qrcode
- echo "https://www.youtube.com/watch?v=$(wget -qO- "https://pastebin.com/raw/BP6ys0h5"|shuf -n 1)"|qrencode -o /tmp/tip.png
- echo "============$i================="
- melt "$introvid" -mix 30 -mixer luma -mixer mix:-1 "$i" -mix 30 -mixer luma -mixer mix:-1 "$endvid" -mix 30 -mixer luma -mixer mix:-1 "/tmp/tip.png" in=1 out=5 -consumer avformat:"output/$i" acodec=mp2 ab=128k
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement