[FFmpeg-user] How To Play YouTube Videos using FFPLAy

Moritz Barsnick barsnick at gmx.net
Mon Dec 1 01:47:13 CET 2014

On Sun, Nov 30, 2014 at 15:40:11 -0800, DopeLabs wrote:
> what i usually end up doing is using youtube-dl to get the video url from youtube.
> $ youtube-dl -g https://www.youtube.com/watch?v=holhZM1OpTc

Thanks, I was missing the "-g" option!

BTW, I often need "-F" to figure out the correct (dash) streams, and
sometimes grab video and audio separately with "-f <stream>". Now I can
do this in one step with ffmpeg - great!

$ ffmpeg -i `youtube-dl -g -f 136 4nTo8rjo-lM` -i `youtube-dl -g -f 141 4nTo8rjo-lM` -map 0 -map 1 -c copy Weezer\ -\ Paranoid\ Android.mkv
(Bad example, "-f 22" already combines best video and audio in this case.)


More information about the ffmpeg-user mailing list