Skip to content

Instantly share code, notes, and snippets.

@samelie
Created October 12, 2019 23:02
Show Gist options
  • Save samelie/223c08e5b0caa6a3996b376070ad0fce to your computer and use it in GitHub Desktop.
Save samelie/223c08e5b0caa6a3996b376070ad0fce to your computer and use it in GitHub Desktop.
ffmpeg concat youtube-dl playlist
# Concat from youtube playlist
## create concat file
`youtube-dl -g -f 22 https://www.youtube.com/playlist\?list\=PLuTh1a1eg5vbXH5Ndg2819Fim-kQb4C32 | sed 's/^/file /' >> c.txt`
*Couldnt figure out how to add single-quotes around the urls *
## concat
`ffmpeg -f concat -safe 0 -protocol_whitelist "file,http,https,tcp,tls" -i c.txt -c copy output.mp4`
@jeolip
Copy link

jeolip commented Apr 28, 2021

Hello

thanks for this script.

How to surround each url with a ' ' thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment