Add option to prevent transcoding of audio files
See original GitHub issueChecklist
- I’m reporting a feature request
- I’ve verified that I’m running youtube-dl version 2021.01.24.1
- I’ve searched the bugtracker for similar feature requests including closed ones
Description
Downloading a lossless audio file (tested with .wav and .aiff) with the -x
flag causes the audio to be transcoded into mp3. For archiving purposes, having the option to prevent all (audio) transcoding would be ideal.
Examples links: https://soundcloud.com/caleesi-sarahkreis/caleesi-sarahkreis-mbr-sao-paulo https://soundcloud.com/caleesi/arutani-caleesi-ennui-original-mix
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
How to Avoid Transcoding - Plexopedia
Learning how to avoid transcoding movie files from your Plex server is a common ... The next best option is Direct stream because...
Read more >How do i avoid transcoding as much as possible? : r/PleX
Hey, im running a Plex media server on a server pc with very Little cpu Power. What can i do to avoid transcoding...
Read more >How to really disable transcoding? | Forum
Another way, i guess, is to define all "supported formats" in the conf file. Just add any/all file types. ( see DefaultRenderer.conf, or...
Read more >View and modify audio tracks in Compressor - Apple Support
In Compressor, view audio and video tracks, enable or disable them, and reconfigure them into alternative formats.
Read more >Compatible media transcoding - Android Developers
Override transcoding defaults This setting determines whether or not the platform controls automatic transcoding. · Enable transcoding · Assume apps support ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I looked through the source code of extractaudio. These are the conversions it does when you don’t give --audio-format:
aac > m4a flac, mp3, opus = untouched vorbis > ogg everything else > mp3
This is not completely true as using
-x
on an.mp3
stream will not cause transcoding:It looks like the current rule of the flag is “strip video and transcode audio unless it is mp3”.
The current behavior makes it harder to use
youtube-dl
in a script to extract audio (with minimal transcoding) from multiple sources (e.g. soundcloud + youtube). It would require to set the-x
flag for video sites but omit it for audio-only sites.Having a
demux
option looks like a way to address this. I would even argue that it should be the default since the name of the--extract-audio
flag suggests extraction only. Transcoding should be an optional second step as it decreases quality further.