blackjack4494 / youtube-dlc

Command-line program to download various media from YouTube.com and other sites
https://blackjack4494.github.io/youtube-dlc/
The Unlicense
1.22k stars 13 forks source link

[Broken] Soundcloud converting wav to mp3 despite "best" option #214

Closed ghost closed 3 years ago

ghost commented 3 years ago

Checklist

Verbose log

youtube-dlc -v -x --audio-format "best" https://soundcloud.com/belikboom/harry-potter
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-x', '--audio-format', 'best', 'https://soundcloud.com/belikboom/harry-potter']
[debug] Loading archive file None
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dlc version 2020.10.09
[debug] Python version 3.8.6 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 4.3.1-2020-11-19-full_build-www.gyan.dev, ffprobe 4.3.1-2020-11-19-full_build-www.gyan.dev
[debug] Proxy map: {}
[soundcloud] belikboom/harry-potter: Downloading info JSON
[soundcloud] 172989719: Downloading JSON metadata
[soundcloud] 172989719: Downloading webpage
[soundcloud] 172989719: Downloading JSON metadata
[soundcloud] 172989719: Downloading JSON metadata
[soundcloud] 172989719: Downloading JSON metadata
[debug] Invoking downloader on 'https://cf-media.sndcdn.com/WYHtGMNj90Yp?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vV1lIdEdNTmo5MFlwIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNjA5MzA3MDMxfX19XX0_&Signature=WJhd4byXEUIoKzdnrYXk-0oxJzRnwirPBzLaIFJIxKVu5zXqPALV~nBV994RS60Yuc~7l2Ac4BpkA3BtUcxXwV9nVqFxYwbCpI8AiCwEHw1-rCesQHjyrydj~7sC15bbWy~t0I0C4i25GflVW8kn3AJp3jHaBtpQ55ScHu2Hq6B4uiWBXabRB4WVfVZ1ouSBzSaocapZMs6eVb0EpcMSfa0GAnUSgPFxeekxxosux7QKmSX1uAxkUmzUbj5sdVnYp5Q4P-QJdLB23A3475cosVc5yMsLZ1sSOX7NY2ydLTASijYjfXNIZi7oeWRnetRRF731yNj8lQPNImuNR81Mpg__&Key-Pair-Id=APKAI6TU7MMXM5DG6EPQ'
[download] Destination: Avada kadabra (FREE DOWNLOAD)-172989719.wav
[download] 100% of 67.68MiB in 00:01
[debug] ffmpeg command line: ffprobe -show_streams "file:Avada kadabra (FREE DOWNLOAD)-172989719.wav"
[ffmpeg] Destination: Avada kadabra (FREE DOWNLOAD)-172989719.mp3
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Avada kadabra (FREE DOWNLOAD)-172989719.wav" -vn -acodec libmp3lame "-q:a" 5 "file:Avada kadabra (FREE DOWNLOAD)-172989719.mp3"
Deleting original file Avada kadabra (FREE DOWNLOAD)-172989719.wav (pass -k to keep)

Description

Wav file downloads successfully, but is then converted to a very low-quality (137 kbps) mp3 file, and wav is deleted despite specifying "best".

Downloading mp3s and aacs works properly with this option (mp3 remains same, aac -> m4a), only wav does not. The goal is to convert all 3 formats in bulk, which is why I am using the "best" argument and not just "wav".

I believe this is a similar issue to #212, just for soundcloud and I don't know which arguments to add to fix the sort.

nicolaasjan commented 3 years ago

Try: youtube-dlc -v -f best https://soundcloud.com/belikboom/harry-potter (see also my comment on Reddit)

youtube-dlc -v --ignore-config -f best https://soundcloud.com/belikboom/harry-potter
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--ignore-config', '-f', 'best', 'https://soundcloud.com/belikboom/harry-potter']
[debug] Loading archive file None
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dlc version 2020.12.29
[debug] Python version 3.6.9 (CPython) - Linux-4.15.0-128-generic-x86_64-with-LinuxMint-19.3-tricia
[debug] exe versions: ffmpeg N-100367-g8d19b3c-Nico-20201210, ffprobe N-100367-g8d19b3c-Nico-20201210
[debug] Proxy map: {}
[soundcloud] belikboom/harry-potter: Downloading info JSON
[soundcloud] 172989719: Downloading JSON metadata
[soundcloud] 172989719: Downloading webpage
[soundcloud] 172989719: Downloading JSON metadata
[soundcloud] 172989719: Downloading JSON metadata
[soundcloud] 172989719: Downloading JSON metadata
[debug] Invoking downloader on 'https://cf-media.sndcdn.com/WYHtGMNj90Yp?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vV1lIdEdNTmo5MFlwIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNjA5MzM4NjgxfX19XX0_&Signature=eIi1IftkaTgAUZnWGw5syhoukAA58Z4VKaEVAFl083iVjyUIdwipgxxB9XZEHcIspIq1spBmUOFURTvDFBTVharug6iHVVbEyMLUYxfE6N5ZIzoX6Oq76tcxaT2pZRe79d6z5i3wJgZSEoyuM8LaHDCMvNqQYfbCGTHNKo7ssqFP8mSDZLbi3SuJ9y3apoY7MHWjcSYyUNnEYjVEmYhOpgA0~KgW3ZT~HIIzrANBJgwpWwgQu4yMOyj4SWWGT0fMTyqgMtrQXiLYOQupDpl9jhrPhf9Gzy2D3ZFE8U3ak7j5tWTfGs0VvY56QFbsgZ7wjpZvM0jkZmspbz74yrAJ9Q__&Key-Pair-Id=APKAI6TU7MMXM5DG6EPQ'
[download] Destination: Avada kadabra (FREE DOWNLOAD)-172989719.wav
[download] 100% of 67.68MiB in 00:11

Side note: The official youtube-dlc repo is now here: https://github.com/blackjack4494/yt-dlc (since the DMCA debacle...)

However there hasn't been any activity for about a month now... See this issue.

ghost commented 3 years ago

Oh my bad on using the wrong repo. Thanks for the responses here and on reddit though! This works, but makes things slightly less automated for me. Ultimately --audio-format is the only option I know of that will also convert soundcloud's native aac to m4a which is ideal, but this will have to do. Thanks again!