[FFmpeg-devel] [PATCH 3/3] avformat: add youtube-dl based demuxer

Nicolas George george at nsup.org
Wed Apr 8 22:22:42 CEST 2015


Le nonidi 19 germinal, an CCXXIII, Gilles Chanteperdrix a écrit :
> So, when you just need to run exec, it is stupid 

Exactly what I wrote: not your problem / premature optimization.

> I do not follow you here. youtube-dl -J has a uselessly verbose
> output, much harder to parse than youtube-dl -g which gives you just
> one URL. But you still need to run youtube-dl. So, I do not see the
> upside.

Scratch "uselessly" and you will get it right: -J gives you everything you
may need to download the video correctly. -g only gives you one piece of
information, which is sometimes sufficient (but not not enough that you do
not feel the need to call a second time for -e) but only for a few sites.

So here is the upside of -J: it works.

Second upside: it works with a single call.

Third upside: since the information is completely self-contained, you can
pass it around easily. People here whine about "ffmpeg -f youtubedl", and
they have valid arguments. This:

youtube-dl -J $url | ffmpeg -f youtubedl -i -

is just as easy, and nobody will whine.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150408/5292ac9c/attachment.asc>


More information about the ffmpeg-devel mailing list