Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
downloading low quality from youtube? something changed in API? #6847
Comments
|
Post the full output of youtube-dl when run with |
|
ywta="youtube-dl --buffer-size 16k --restrict-filenames --continue --audio-format=best --no-part --extract-audio --verbose --output=%(title)s.%(ext)s" ywta https://www.youtube.com/watch?v=LIPc1cfS-oQ |
|
final file is |
|
|
|
If you don't want webm then don't download it at all: |
|
that opus file is low bitrate, so perhaps youtube is intentionally mislabeling audio when downloading with youtube-dl at default settings, the correct audio is downloaded so something in the script is wrong, although is used to work fine. |
|
where is this documented? -f bestaudio[ext!=webm] this doesn't work? |
|
bitrate is not a robust measure of quality. |
|
cool, thanks. |
|
This might not be relevant anymore but I had the same problem and I fixed it. It seems that if youtube-dl can't find audio stream with your specified format it uses ffmpeg to encode to your desired format. I don't know if this is the same for other formats as well but default quality settings seem to encode opus files with around 6-7 kbps. Imagine how bad the quality is... You fix it by adding --audio-quality 0 (Best Quality) right after you specify what format audio you want to get. This will download song in bad quality: youtube-dl DLzxrzFCyOs -x --audio-format opusThis will download song in good quality: youtube-dl DLzxrzFCyOs -x --audio-format opus --audio-quality 0See for yourself. |
i use this to download from youtube and extract audio
ywta="youtube-dl --buffer-size 16k --restrict-filenames --continue --audio-format=best --no-part --extract-audio --output=%(title)s.%(ext)s"
program downloads crappy webm and outputs opus as audio file, which is a low bitrate and crap, when 1080P is available.
ywta https://www.youtube.com/watch?v=LIPc1cfS-oQ
results
[download] Destination: Rammstein_-Ohne_Dich_Official_Video.webm
[download] 100% of 5.25MiB in 00:45
[ffmpeg] Destination: Rammstein-_Ohne_Dich_Official_Video.opus
youtube-dl https://www.youtube.com/watch?v=LIPc1cfS-oQ
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: Rammstein - Ohne Dich (Official Video)-LIPc1cfS-oQ.f137.mp4
this is the high quality