Skip to content

Instantly share code, notes, and snippets.

@hapylestat
Created September 3, 2013 08:19
Show Gist options
  • Select an option

  • Save hapylestat/6421055 to your computer and use it in GitHub Desktop.

Select an option

Save hapylestat/6421055 to your computer and use it in GitHub Desktop.
simple youtube-dl automatization, initital version
#!/bin/bash
youtube-dl -F "$1"
read -e -p "Select preffered format:" FRMT
FILE=`youtube-dl -f $FRMT --get-filename "$1"`
youtube-dl -f $FRMT "$1"
ffmpeg -i "$FILE" -c copy -copyts "${FILE}.mp4"
chown user:user "$FILE"
chown user:user "${FILE}.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment