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.

Attachment: pgpbhFxbUoSjt.pgp
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to