4 ms·
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.
by shmerl 12y ago
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.
- ivank 12y agoyoutube-dl supports muxing the separate video and audio streams from YouTube. You just need a recent ffmpeg/avconv and youtube-dl -f bestvideo+bestaudio.
- shmerl 12y agoThanks, good to know. I'll try it out.
- unicornporn 12y agoThis is way cool as YouTube separates video and audio streams for 1080p (and up) and then joins them with DASH.
- ux 12y agoWhat actually happened to quvi? Is it really still active? (https://github.com/legatvs?tab=repositories 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.. http://youtube... (assuming libquvi and its scripts still work)
- shmerl 12y ago> 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.
- yorhel 12y agoNote 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/9b45b48c466765b6491778709a1c52e061480f76 https://github.com/mpv-player/mpv/commit/9b45b48c466765b6491...
- shmerl 12y agoThat's interesting. How are they planning to use youtube-dl? Does it have a C library or mpv allows some plugins in other languages?
- rossy 12y agoThe bit that invokes youtube-dl is a Lua plugin. It checks if the URL starts with http:// http:// or https:// https://, and if so, invokes youtube-dl -J on the command line to dump JSON information about the video.
- 12y ago