TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Yt-Dlp Reduced Quality?

4 pointsby ramtatatamover 1 year ago
Hi HN!<p>I maintain a playlist of youtube clips for offline use in case I run out of internet, and recently I noticed something strange.<p>I was listening to this clip on youtube: https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Ry4TqqM5TGs , I then downloaded it with `yt-dlp https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Ry4TqqM5TGs` and listened locally with intention to loop until end of my day. And I noticed when I play this clip on youtube the sound is much more vibrant and the clip sounds much better than the downloaded version.<p>Is there any magic switch I&#x27;m missing? I already tried `-f bestvideo+bestaudio`

2 comments

qbrassover 1 year ago
It might be pulling an audio format that either youtube resampled, or that ffmpeg had to resample when merging the video because it&#x27;s not compatible with the video format.<p>There&#x27;s a way to pick preferred audio and video formats it will choose over what&#x27;s simply the best bitrate, but you&#x27;ll have to look in the manual for more details.
评论 #37560339 未加载
8chanAnonover 1 year ago
The highest quality audio is generally tag 251 (webm&#x2F;opus). You can stream or download through an Invidious instance:<p><a href="https:&#x2F;&#x2F;vid.puffyan.us&#x2F;latest_version?itag=251&amp;id=Ry4TqqM5TGs" rel="nofollow noreferrer">https:&#x2F;&#x2F;vid.puffyan.us&#x2F;latest_version?itag=251&amp;id=Ry4TqqM5TG...</a>