Guest User

Untitled

a guest
Dec 21st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #!/bin/bash
  2. # a special repost backup for the !fediverse – @bugabinga
  3.  
  4. # WTF? It just grabs & scans & downloads any Web-based URL-video from german WDR in North-Rhine-Westphalia since they switched to Javascript (burn!).
  5.  
  6. #Actual example (on the dumbest contest): ./WDRbackup.sh http://www1.wdr.de/nachrichten/weihnachtsmarkt-anschlag-berlin-nrw-100.html
  7.  
  8. ffmpeg -i $( lynx -dump $( lynx -dump $( curl -v --silent $1 --stderr - | grep "mediaLink video" | sed -n 's/.*url'\'': '\''\([^'\'']*\).*/\1/p' ) | tr -s "\"" '\n' | grep m3u8 ) | grep -A1 960x | grep .wdr ) -vcodec copy -acodec copy -bsf:a aac_adtstoasc -strict -2 $( echo $1 | sed -e 's/.*\///' -e 's/\.html/\.mp4/' )
Advertisement
Add Comment
Please, Sign In to add comment