choose a stream, meaning of itags is on wikipedia article of youtube. wget -q -O - 'http://www.youtube.com/watch?v=Ux1Za8Wmz_s'|sed 's/"/\n/g; s/\\u0026/ /g; s/,/\n/g'|sed -n '/url_encoded_fmt_stream_map/,/^$/p; /adaptive_fmts/,/^$/p'
One very nice new thing i discovered by going the manual way without the stupid quvi (which sadly randomly stopped working at some point for me) was that they now at least they have pure audio files together with that adaptive streaming bullshit, so I don't need ffmpeg for my purposes any more. Try itag 171 or 140, e.g. wget -q -O - 'http://www.youtube.com/watch?v=Ux1Za8Wmz_s'|sed 's/"/\n/g; s/\\u0026/ /g; s/,/\n/g'|sed -n '/itag=171/s/^.*url=//p' Then you need to remove the percentencoding, I'm sure you guys might be able to come up with a C tool for that.