4 ms·
The only point in lossy encoding is to save space / bandwidth. Opus excels at getting good sound quality at lower bitrates. If there's a talk or lecture on Yo
by lozf 6y ago
The only point in lossy encoding is to save space / bandwidth. Opus excels at getting good sound quality at lower bitrates.
If there's a talk or lecture on Youtube that you're about to grab, try the 50kbps Opus version and save your limited space for more important things, but you might need to remux from webm to an ogg container for compatibility.
e.g. youtube-dl -f249 $URL --exec 'ffmpeg -i {} -vn -c:a copy {}.ogg'
- derf_ 6y agoYou can replace the --exec 'ffmpeg ...' with just -x (or the long form --extract-audio).
- lozf 6y agoYes, but with opus, that only put's the audio in a .opus container, which isn't as widely compatible as the .ogg container.
- knaik94 6y agoIf you have youtube-dl and ffmpeg installed together on linux or both executables in the same directory on windows, youtube-dl automatically remuxes "incompatible" formats into an mkv file.
- lozf 6y agoYes, that's great for videos, but many audio players don't support matroska containers. Putting the opus audio in an ogg container seems to be most effective to get a playable file for most people, so that's my default suggestion.
- tatersolid 6y agoIsn’t opus the default companion for both H.265 and AV1 in an MP4 container? So why wouldn’t opus audio only in an MP4 container be playable everywhere those things are as well? I really think we need to stop overloading the .MP4 file extension and standardize “.av1opusmp4” or “.h265opusmp4” or similar even though it is still an MP4 container. Even .webm is now overloaded with two codec generations. We don’t get a “codecs” HTML attribute in a file system (at least not portably).
- quadrangle 6y ago> e.g. youtube-dl -f249 $URL --exec 'ffmpeg -i {} -vn -c:a copy {}.ogg' Why not just `youtube-dl -x` ?
- lozf 6y agoSee my reply above.
- 8bitsrule 6y agoYou can DL and listen to a longish YT track without the video - in far less time and with (usually) better audio - by specifying format 251 (usually available). For example, an hour-long performance video mp4 at 1280x720 gets you 96k audio and 280MB. 'youtube-dl -f 251 url' will get you a 160K Opus in 54 MB. To my ears Opus sounds sweeter and fuller than mp3. At 64K and lower bit-rates, it's near the top.
- unicornporn 6y agoI love youtube-dl, but I usually just download the lowest bitrate Opus stream with two taps on my phone using NewPipe[1]. [1] https://newpipe.schabi.org/ https://newpipe.schabi.org/