ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.72k stars 9.97k forks source link

No metadata saved #11107

Closed Spenhouet closed 7 years ago

Spenhouet commented 7 years ago

youtube-dl -x --audio-format "mp3" --audio-quality 0 --metadata-from-title "%(artist)s - %(title)s" -o "/Music/%(uploader)s/%(title)s.%(ext)s" https://www.youtube.com/watch?v=0sjR0-EG3BM

The title and artist is parsed correctly:

[fromtitle] parsed title: Changes [fromtitle] parsed artist: DOPEDROP

But the .mp3 file doesn't contain any metadata.

Version: 2016.11.02 OS: Windows 10

dstftw commented 7 years ago

No --add-metadata is supplied.

Spenhouet commented 7 years ago

With --add-metadata it also doesn't save any metadata.

youtube-dl -x --audio-format "mp3" --audio-quality 0 -o "/Music/%(uploader)s/%(title)s.%(ext)s" --metadata-from-title "%(artist)s - %(title)s" --add-metadata https://www.youtube.com/watch?v=0sjR0-EG3BM

The artist field is empty.

youtube-dl -x --audio-format "mp3" --audio-quality 0 -o "/Music/%(uploader)s/%(title)s.%(ext)s" --metadata-from-title "%(artist)s - %(title)s" --add-metadata https://www.youtube.com/watch?v=0sjR0-EG3BM -v
[debug] System config: []
[debug] User config: ['--username', 'PRIVATE', '--password', 'PRIVATE', '--add-metadata', '--extract-audio', '--audio-format', 'mp3', '--audio-quality', '0', '-o', 'C:/Users/spenh/Music/%(uploader)s/%(title)s.%(ext)s', '--verbose']
[debug] Command-line args: ['-x', '--audio-format', 'mp3', '--audio-quality', '0', '-o', '/Music/%(uploader)s/%(title)s.%(ext)s', '--metadata-from-title', '%(artist)s - %(title)s', '--add-metadata', 'https://www.youtube.com/watch?v=0sjR0-EG3BM', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2016.11.02
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg N-82178-g60178e7, ffprobe N-82178-g60178e7
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Logging in
[youtube] 0sjR0-EG3BM: Downloading webpage
[youtube] 0sjR0-EG3BM: Downloading video info webpage
[youtube] 0sjR0-EG3BM: Extracting video information
[youtube] {22} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {43} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {18} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {36} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {17} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {137} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {248} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {136} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {247} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {135} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {244} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {134} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {243} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {133} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {242} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {160} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {278} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {140} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {171} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {249} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {250} signature length 40.40, html5 player en_US-vfl9TjB9H
[youtube] {251} signature length 40.40, html5 player en_US-vfl9TjB9H
[debug] Invoking downloader on 'https://r2---sn-35cxacf-nugl.googlevideo.com/videoplayback?expire=1478242190&initcwndbps=2243750&keepalive=yes&key=yt6&ei=LtsbWKSTBqO_jAbXxJ_YBA&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&ip=109.192.169.160&mm=31&mn=sn-35cxacf-nugl&id=o-APpgm9Dv_Z3fTQGvng69dlWw-Rn03cQsd3ErcmV07_1l&dur=229.601&mime=audio%2Fwebm&requiressl=yes&ms=au&mt=1478220398&mv=m&clen=3946072&gir=yes&pl=16&ipbits=0&lmt=1478103576365773&source=youtube&upn=-K4HPnjdpLI&itag=251&signature=4F81FD45DA246D64982AC82DDA5DB72A341B8072.41A648F34EBD9B81E81AAABD812FAF334B1E7E87&ratebypass=yes'
[download] Destination: Music\Melbourne Beats\DOPEDROP - Changes.webm
[download] 100% of 3.76MiB in 00:00
[fromtitle] parsed artist: DOPEDROP
[fromtitle] parsed title: Changes
[ffmpeg] Adding metadata to 'Music\Melbourne Beats\DOPEDROP - Changes.webm'
[debug] ffmpeg command line: ffmpeg -y -i 'file:Music\Melbourne Beats\DOPEDROP - Changes.webm' -c copy -metadata 'description=Melbourne Beats - Providing The Goods Since '"'"'12
» Facebook: http://on.fb.me/1Kegu0v
» Soundcloud: http://bit.ly/1GJufQM
» Merch: http://bit.ly/1QRdpHv
» Twitter: http://bit.ly/1IA4ujW

⁂ Download Here:
http://bit.ly/2fe1C6N

⁂ Wallpaper:
http://bit.ly/2edxVAi

⁂ Follow DOPEDROP:
https://soundcloud.com/dopedropmusic
https://www.facebook.com/dopedropbounce' -metadata date=20161102 -metadata artist=DOPEDROP -metadata 'comment=Melbourne Beats - Providing The Goods Since '"'"'12
» Facebook: http://on.fb.me/1Kegu0v
» Soundcloud: http://bit.ly/1GJufQM
» Merch: http://bit.ly/1QRdpHv
» Twitter: http://bit.ly/1IA4ujW

⁂ Download Here:
http://bit.ly/2fe1C6N

⁂ Wallpaper:
http://bit.ly/2edxVAi

⁂ Follow DOPEDROP:
https://soundcloud.com/dopedropmusic
https://www.facebook.com/dopedropbounce' -metadata title=Changes -metadata 'purl=https://www.youtube.com/watch?v=0sjR0-EG3BM' 'file:Music\Melbourne Beats\DOPEDROP - Changes.temp.webm'
[debug] ffmpeg command line: ffprobe -show_streams 'file:Music\Melbourne Beats\DOPEDROP - Changes.webm'
[ffmpeg] Destination: Music\Melbourne Beats\DOPEDROP - Changes.mp3
[debug] ffmpeg command line: ffmpeg -y -i 'file:Music\Melbourne Beats\DOPEDROP - Changes.webm' -vn -acodec libmp3lame -q:a 0 'file:Music\Melbourne Beats\DOPEDROP - Changes.mp3'
Deleting original file Music\Melbourne Beats\DOPEDROP - Changes.webm (pass -k to keep)