Skip to content

Instantly share code, notes, and snippets.

@daz
Last active June 26, 2022 22:00
Show Gist options
  • Save daz/93242c47b785c3019c2a2aec98f85e65 to your computer and use it in GitHub Desktop.
Save daz/93242c47b785c3019c2a2aec98f85e65 to your computer and use it in GitHub Desktop.
youtube-dl pipe to ffmpeg for mp3 output one-liner
youtube-dl -f251 "[URL]" -o - | ffmpeg -i pipe: -strict -2 out.mp3
@forresthopkinsa
Copy link

youtube-dl -f242 https://www.youtube.com/watch\?v\=VCvC4_6zkrs -o - | ffmpeg -i pipe: -r 18 bubz.gif

@uladzemer
Copy link

youtube-dl -f242 https://www.youtube.com/watch\?v\=VCvC4_6zkrs -o - | ffmpeg -i pipe: -r 18 bubz.gif

Thank you friend! I searched all over the Internet in search of such an answer. I was able to implement stream transfer. There is no limit to my joy.

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