[Feature Request]: Downloader - Specify itag number for custom download with no ffmpeg transcoding from Webm + Opus to M4A + AAC #3519

Open
opened 2025-06-23 22:09:08 +00:00 by rubin110 · 2 comments
rubin110 commented 2025-06-23 22:09:08 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

For Premium users, the Downloader plugin currently grabs a webm encapsulating an opus stream. With the custom setting I can edit the config file to get ffmpeg to simply extract the opus stream and stick it into its own opus file. Webm isn't super supported with a good deal of music playback devices unfortunately, nor is straight up opus/ogg. So in the end to get something like a M4A with AAC, a lossy transcode of the opus audio stream needs to happen.

Proposed Solution

YouTube does offers AAC inside of an M4A, for Premium users the higher quality option is itag 141. It would be ideal if as a user I could also specify the itag number through the custom settings, so I could directly grab the AAC format and can forego any ffmpeg lossy transcoding.

Alternatives Considered

No alternatives.

Additional Information

Thank you for making such an incrediable client and tool!

### Preflight Checklist - [x] I use the latest version of YouTube Music (Application). - [x] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a feature request that matches the one I want to file, without success. ### Problem Description For Premium users, the Downloader plugin currently grabs a webm encapsulating an opus stream. With the custom setting I can edit the config file to get ffmpeg to simply extract the opus stream and stick it into its own opus file. Webm isn't super supported with a good deal of music playback devices unfortunately, nor is straight up opus/ogg. So in the end to get something like a M4A with AAC, a lossy transcode of the opus audio stream needs to happen. ### Proposed Solution YouTube does offers AAC inside of an M4A, for Premium users the higher quality option is itag 141. It would be ideal if as a user I could also specify the itag number through the custom settings, so I could directly grab the AAC format and can forego any ffmpeg lossy transcoding. ### Alternatives Considered No alternatives. ### Additional Information Thank you for making such an incrediable client and tool!
rubin110 commented 2025-06-23 22:11:34 +00:00 (Migrated from github.com)

If anyone is curious, the ffmpeg command to lossless extract/copy the audio stream bit for bit (mostly) from a webm to an opus file is:

ffmpeg -i song.webm -c:a copy -vn song.opus
If anyone is curious, the ffmpeg command to lossless extract/copy the audio stream bit for bit (mostly) from a webm to an opus file is: ```sh ffmpeg -i song.webm -c:a copy -vn song.opus ```
Owner

I feel like the downloader needs a total revamp, I've made a discussion to do just that.

I feel like the downloader needs a total revamp, I've made a [discussion](https://github.com/th-ch/youtube-music/discussions/3523) to do just that.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#3519
No description provided.