Skip to content

Instantly share code, notes, and snippets.

@gppam
Created November 27, 2022 21:55
Show Gist options
  • Save gppam/328485fcdc3162278abb2289863e63c8 to your computer and use it in GitHub Desktop.
Save gppam/328485fcdc3162278abb2289863e63c8 to your computer and use it in GitHub Desktop.
yt-dlp with ffplay. Playing youtube audio with ffmpeg/ffplay :)

Requirements:

yt-dlp and ffmpeg.

On command prompt/terminal:

  1. Get youtube details and audio only code.

yt-dlp -F https://www.youtube.com/watch?v=Hibkm14x4k0

  1. Use code, for example replace number 139 below.

yt-dlp -f 139 -o - https://www.youtube.com/watch?v=Hibkm14x4k0 | ffplay -i -

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