News for hackers. Stuff that matters.
Re:Youtube-dl by shmerl on Sunday November 23, 2014 @02:53AM (#8648115)
I just use quvi for that.

Example:

    quvi -vm --format $format "$url" --exec 'wget %u -O %t.%e'
instead of $format put any format that the video supports. To query them, use:

    quvi --query-formats "$url"
So it's going to be something like:

    quvi -vm --format fmt43_360p "$url" --exec 'wget %u -O %t.%e'
And to extract audio from the result you can use:

    avconv -i something.webm -vn -acodec copy something.ogg
Youtube however is switching away from fixed video files to separate streams to be used with MSE. You can note that higher resolution video is not available the old way. So downloading that won't be so straightforward.
Re:Youtube-dl by ivank on Sunday November 23, 2014 @02:59AM (#8648127)
youtube-dl supports muxing the separate video and audio streams from YouTube. You just need a recent ffmpeg/avconv and youtube-dl -f bestvideo+bestaudio.
Re:Youtube-dl by unicornporn on Sunday November 23, 2014 @04:45AM (#8648290)
This is way cool as YouTube separates video and audio streams for 1080p (and up) and then joins them with DASH.
Re:Youtube-dl by shmerl on Sunday November 23, 2014 @03:16AM (#8648154)
Thanks, good to know. I'll try it out.
Re:Youtube-dl by ux on Sunday November 23, 2014 @03:05AM (#8648135)
What actually happened to quvi? Is it really still active? (https://github.com/legatvs?tab=repositories). No more commit since last year.

Same question for clive/cclive...

By the way, FFmpeg has support for the 0.4 branch of libquvi, so if you built it with --enable-libquvi you can ffmpeg -i http://youtube... (assuming libquvi and its scripts still work)

Re:Youtube-dl by shmerl on Sunday November 23, 2014 @03:11AM (#8648145)
> What actually happened to quvi?

Good question, I didn't keep track of its development. Your best option would be asking developers if they are planning to work on it further or not.

> By the way, FFmpeg has support for the 0.4 branch of libquvi

Same as mpv I think. You can play Youtube videos with it directly:

    mpv "$url"
Which is kind of fun, since you can do tons of things that aren't available in the browser player - looping, playing only portions of the video and all other things which mpv can do.
Re:Youtube-dl by yorhel on Sunday November 23, 2014 @03:21AM (#8648162)
Note that quvi support has been removed on mpv git recently. They seem to be considering a switch to youtube-dl instead. https://github.com/mpv-player/mpv/commit/9b45b48c466765b6491...
Re:Youtube-dl by shmerl on Sunday November 23, 2014 @03:24AM (#8648165)
That's interesting. How are they planning to use youtube-dl? Does it have a C library or mpv allows some plugins in other languages?
Re:Youtube-dl by rossy on Sunday November 23, 2014 @03:27AM (#8648170)
The bit that invokes youtube-dl is a Lua plugin. It checks if the URL starts with http:// or https://, and if so, invokes youtube-dl -J on the command line to dump JSON information about the video.
Re:Youtube-dl by rg3 on Sunday November 23, 2014 @07:27AM (#8648591)
Awesome! Not long ago I switched to mpv from mplayer. mpv being able to use youtube-dl without any glue script would be fantastic.
Re:Youtube-dl by shmerl on Sunday November 23, 2014 @03:29AM (#8648174)
Ah, I see. Thanks for clarifying.
Re:Youtube-dl by rossy on Sunday November 23, 2014 @03:25AM (#8648168)
I think quvi might be dead. mpv-git actually dropped libquvi a little while back because it was buggy and development was inactive. It's been replaced with a youtube-dl based downloader, so in mpv-git, this would invoke youtube-dl to get the video:

  mpv --ytdl "$url"
Re:Youtube-dl by shmerl on Sunday November 23, 2014 @03:30AM (#8648176)
I wonder if there is any way to specify to it which stream to pick, since Youtube has many options. By default it picks H.264 / AAC, at least when it's using quvi.
Re:Youtube-dl by rossy on Sunday November 23, 2014 @03:38AM (#8648192)
IIRC --ytdl-format is passed directly to youtube-dl -f, but all other options have to be set in youtube-dl's config file.