Advertisement
metalx1000

Tutorial Render script

May 30th, 2019
1,115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.86 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. mkdir output
  4. endurl="https://youtu.be/tSbv3jcSuNM"
  5. introurl="https://youtu.be/ySE1kYtrsj0,https://youtu.be/nksGb6mRAzE,https://youtu.be/wmA7I7dSYXs"
  6. introurl="$(echo "$introurl"|tr "," "\n"|shuf -n 1)"
  7.  
  8. endvid="/tmp/yellowsun.mp4"
  9. introvid="/tmp/intro.mp4"
  10.  
  11. youtube-dl -c "$endurl" -o "$endvid"
  12. rm "$introvid"
  13. youtube-dl -c "$introurl" -o "$introvid"
  14.  
  15. #for i in *.{mkv,avi,mp4,MOV,mov}
  16. ls *.{mkv,avi,mp4,MOV,mov}|while read i
  17. do
  18.   #get tech tip/fact url and make qrcode
  19.   echo "https://www.youtube.com/watch?v=$(wget -qO- "https://pastebin.com/raw/BP6ys0h5"|shuf -n 1)"|qrencode -o /tmp/tip.png
  20.   echo "============$i================="
  21.   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