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

Gilles Chanteperdrix gilles.chanteperdrix at xenomai.org
Thu Apr 9 15:32:44 CEST 2015


On Wed, Apr 08, 2015 at 10:22:42PM +0200, Nicolas George wrote:
> 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.

Well, in that case, 
ffmpeg -i `youtube-dl -f bestvideo -g $url`

Is even simpler.

-- 
					    Gilles.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150409/1b5476dd/attachment.asc>


More information about the ffmpeg-devel mailing list