Created
July 16, 2017 15:11
-
-
Save eruffaldi/9a52b62ff4febc988392a52548b82691 to your computer and use it in GitHub Desktop.
Youtube Download and Preserve originating URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get filename from youtube-dl then replace it with mp4 | |
# then download, convert to mp4 and put metadata | |
filename=$(youtube-dl --get-filename "$1") | |
filename=${filename%.*}.mp4 | |
youtube-dl "$1" --recode-video mp4 --add-metadata | |
exiftool $filename -XMP:source=$1 | |
exiftool $filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment