Skip to content

Instantly share code, notes, and snippets.

@ketanketanketan
Created October 31, 2015 21:50
Show Gist options
  • Save ketanketanketan/6d57bc1a67223e23579f to your computer and use it in GitHub Desktop.
Save ketanketanketan/6d57bc1a67223e23579f to your computer and use it in GitHub Desktop.
youtube-dl -xv --audio-format "mp3" <url>
$ youtube-dl -xv --audio-format "mp3" https://www.youtube.com/watch?v=qzGk9C8KI0w
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-xv', u'--audio-format', u'mp3', u'https://www.youtube.com/watch?v=qzGk9C8KI0w']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.10.24
[debug] Python version 2.7.10 - Darwin-15.0.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.8.1, ffprobe 2.8.1
[debug] Proxy map: {}
[youtube] qzGk9C8KI0w: Downloading webpage
[youtube] qzGk9C8KI0w: Downloading video info webpage
[youtube] qzGk9C8KI0w: Extracting video information
[youtube] qzGk9C8KI0w: Downloading DASH manifest
[youtube] qzGk9C8KI0w: Downloading DASH manifest
[debug] Invoking downloader on 'https://r1---sn-nwj7knee.googlevideo.com/videoplayback?id=ab31a4f42f0a234c&itag=141&source=youtube&requiressl=yes&mv=m&ms=au&mn=sn-nwj7knee&mm=31&pl=16&nh=IgpwcjAxLnBhbzAzKgkxMjcuMC4wLjE&ratebypass=yes&mime=audio/mp4&gir=yes&clen=222840135&lmt=1429925364863961&dur=6989.507&signature=124DA73C18D5B25284DC582EA4553C2EB4E052C1.96AEC333F4C501F47420AD0D9C7DC62BAD1821E6&fexp=9407117,9408710,9410705,9414764,9416126,9416729,9416838,9417707,9418201,9418401,9418897,9419446,9420239,9421147,9421252,9421543,9422596,9423625&mt=1446327595&upn=VmWVJJeTfDE&sver=3&key=dg_yt0&ip=24.6.225.45&ipbits=0&expire=1446349231&sparams=ip,ipbits,expire,id,itag,source,requiressl,mv,ms,mn,mm,pl,nh,ratebypass,mime,gir,clen,lmt,dur'
[download] Ludovico Einaudi - iTunes Festival 17-09-2013-qzGk9C8KI0w.m4a has already been downloaded
[download] 100% of 212.44MiB
[ffmpeg] Correcting container in "Ludovico Einaudi - iTunes Festival 17-09-2013-qzGk9C8KI0w.m4a"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Ludovico Einaudi - iTunes Festival 17-09-2013-qzGk9C8KI0w.m4a' -c copy -f mp4 'file:Ludovico Einaudi - iTunes Festival 17-09-2013-qzGk9C8KI0w.temp.m4a'
[debug] ffmpeg command line: ffprobe -show_streams 'file:Ludovico Einaudi - iTunes Festival 17-09-2013-qzGk9C8KI0w.m4a'
[ffmpeg] Destination: Ludovico Einaudi - iTunes Festival 17-09-2013-qzGk9C8KI0w.mp3
[debug] ffmpeg command line: ffmpeg -y -i 'file:Ludovico Einaudi - iTunes Festival 17-09-2013-qzGk9C8KI0w.m4a' -vn -acodec libmp3lame -q:a 5 'file:Ludovico Einaudi - iTunes Festival 17-09-2013-qzGk9C8KI0w.mp3'
Deleting original file Ludovico Einaudi - iTunes Festival 17-09-2013-qzGk9C8KI0w.m4a (pass -k to keep)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment