[Issue]: Weird reason for transcoding audio, then proceeds to use copy for codec #5137

Open
opened 2025-12-22 01:14:24 +01:00 by backuprepo · 11 comments
Owner

Originally created by @felix920506 on GitHub (Oct 7, 2023).

Please describe your bug

I am playing back some CD Rips in FLAC on my JF instance using both Web via Chrome and JMP.

I noticed this very weird transcode reason "Video bitrate exceeds the limit" (As in screenshots below)

It then proceeds to transcode the source file to another FLAC file with the flag -acodec copy (As shown in the ffmpeg log)

Steps to reproduce:

  1. Playback FLAC files that exceed the bandwidth limits on the client side (I think)
  2. See error

Sometimes it transcodes to AAC so this probably won't appear 100% of the time, however I've seen this behavior in 10+ files so I decided to open a bug report.

Jellyfin Version

10.8.z

if other:

10.8.11

Environment

- OS: Ubuntu 23.04
- Linux Kernel: 6.2
- Virtualization: None
- Clients: JMP
- Browser: N/A
- FFmpeg Version: 6.0
- Playback Method: "Transcoding"
- Hardware Acceleration: QSV
- GPU Model: Intel ARC A750
- Plugins: AniDB, AudioDB, Cover Art Archive, Musicbrainz, OMDb, Studio Images, TMDb
- Reverse Proxy: Caddy
- Base URL: /jellyfin
- Networking: Reverse proxy
- Storage: Mounted SMB

Jellyfin logs

No response

FFmpeg logs

Attached below (256kFLAC.txt)

Please attach any browser or client logs here

ffmpeg log:
256kFLAC.txt

Please attach any screenshots here

Media Info:
截圖 2023-10-07 下午4 12 25

Plaback status:
截圖 2023-10-07 下午1 53 04

Code of Conduct

  • I agree to follow this project's Code of Conduct
Originally created by @felix920506 on GitHub (Oct 7, 2023). ### Please describe your bug I am playing back some CD Rips in FLAC on my JF instance using both Web via Chrome and JMP. I noticed this very weird transcode reason "Video bitrate exceeds the limit" (As in screenshots below) It then proceeds to transcode the source file to another FLAC file with the flag `-acodec copy` (As shown in the ffmpeg log) Steps to reproduce: 1. Playback FLAC files that exceed the bandwidth limits on the client side (I think) 2. See error Sometimes it transcodes to AAC so this probably won't appear 100% of the time, however I've seen this behavior in 10+ files so I decided to open a bug report. ### Jellyfin Version 10.8.z ### if other: 10.8.11 ### Environment ```markdown - OS: Ubuntu 23.04 - Linux Kernel: 6.2 - Virtualization: None - Clients: JMP - Browser: N/A - FFmpeg Version: 6.0 - Playback Method: "Transcoding" - Hardware Acceleration: QSV - GPU Model: Intel ARC A750 - Plugins: AniDB, AudioDB, Cover Art Archive, Musicbrainz, OMDb, Studio Images, TMDb - Reverse Proxy: Caddy - Base URL: /jellyfin - Networking: Reverse proxy - Storage: Mounted SMB ``` ### Jellyfin logs _No response_ ### FFmpeg logs ```shell Attached below (256kFLAC.txt) ``` ### Please attach any browser or client logs here ffmpeg log: [256kFLAC.txt](https://github.com/jellyfin/jellyfin/files/12838839/256kFLAC.txt) ### Please attach any screenshots here Media Info: <img width="882" alt="截圖 2023-10-07 下午4 12 25" src="https://github.com/jellyfin/jellyfin/assets/25688628/75ee7e61-e2ae-4860-a5f7-ad1b514cdf7a"> Plaback status: <img width="301" alt="截圖 2023-10-07 下午1 53 04" src="https://github.com/jellyfin/jellyfin/assets/25688628/1cf96586-565d-4fe5-be89-f161fa86ebd7"> ### Code of Conduct - [X] I agree to follow this project's Code of Conduct
backuprepo added the
confirmed
media playback
bug
labels 2025-12-22 01:14:24 +01:00
Author
Owner

@Bond-009 commented on GitHub (Oct 10, 2023):

I can only get it to transcode to aac

@Bond-009 commented on GitHub (Oct 10, 2023): I can only get it to transcode to aac
Author
Owner

@felix920506 commented on GitHub (Oct 10, 2023):

I tried to reproduce the issue again today. Setting the bitrate limit to 1mbps immediately reproduced the issue for me.

@felix920506 commented on GitHub (Oct 10, 2023): I tried to reproduce the issue again today. Setting the bitrate limit to 1mbps immediately reproduced the issue for me.
Author
Owner

@Bond-009 commented on GitHub (Oct 10, 2023):

@felix920506 10.8.x or master, bc I tested on master

@Bond-009 commented on GitHub (Oct 10, 2023): @felix920506 10.8.x or master, bc I tested on master
Author
Owner

@felix920506 commented on GitHub (Oct 10, 2023):

I've only tried Release 10.8.11 to this point. I will test master if needed.

@felix920506 commented on GitHub (Oct 10, 2023): I've only tried Release 10.8.11 to this point. I will test master if needed.
Author
Owner

@felix920506 commented on GitHub (Oct 10, 2023):

I've tried to test master but unfortunately I've been unable to create an environment where the connection runs over the internet instead of only a local connection. When I try to use the same machine to host the server and playback using JMP it always direct plays. Connecting via Zerotier also always transcodes.

@felix920506 commented on GitHub (Oct 10, 2023): I've tried to test master but unfortunately I've been unable to create an environment where the connection runs over the internet instead of only a local connection. When I try to use the same machine to host the server and playback using JMP it always direct plays. Connecting via Zerotier also always transcodes.
Author
Owner

@felix920506 commented on GitHub (Oct 11, 2023):

@Bond-009 I've just tested on Master and the issue seems to be even worse.
On 10.8.11, it would give a stupid reason of transcoding but it would still play normally.
On Master, it will straight up fail to transcode and in turn fail to start playback.
Attached is the ffmpeg log. (Different file but still same behavior)
masterbranch20231011.txt

I've also successfully replicated this issue on Windows using JMP with a 10.8.11 server.

@felix920506 commented on GitHub (Oct 11, 2023): @Bond-009 I've just tested on Master and the issue seems to be even worse. On 10.8.11, it would give a stupid reason of transcoding but it would still play normally. On Master, it will straight up fail to transcode and in turn fail to start playback. Attached is the ffmpeg log. (Different file but still same behavior) [masterbranch20231011.txt](https://github.com/jellyfin/jellyfin/files/12864900/masterbranch20231011.txt) I've also successfully replicated this issue on Windows using JMP with a 10.8.11 server.
Author
Owner

@Bond-009 commented on GitHub (Oct 11, 2023):

Can reproduce with JMP on master

@Bond-009 commented on GitHub (Oct 11, 2023): Can reproduce with JMP on master
Author
Owner

@gnattu commented on GitHub (Sep 30, 2024):

I now do believe this is more of a JMP issue rather than server issue, and I can no longer reproduce this on latest JMP

@gnattu commented on GitHub (Sep 30, 2024): I now do believe this is more of a JMP issue rather than server issue, and I can no longer reproduce this on latest JMP
Author
Owner

@felix920506 commented on GitHub (Oct 1, 2024):

I am still able to reproduce this on a 10.9.9 server with latest JMP

@felix920506 commented on GitHub (Oct 1, 2024): I am still able to reproduce this on a 10.9.9 server with latest JMP
Author
Owner

@gnattu commented on GitHub (Oct 1, 2024):

JMP does not specify a valid audio transcoding profile which lead to undefined behavior from the server side. I think it should be fixed on the JMP side.

@gnattu commented on GitHub (Oct 1, 2024): JMP does not specify a valid audio transcoding profile which lead to undefined behavior from the server side. I *think* it should be fixed on the JMP side.
Author
Owner

@felix920506 commented on GitHub (Oct 1, 2024):

If that is the case then I guess this issue should be moved to JMP repo

@felix920506 commented on GitHub (Oct 1, 2024): If that is the case then I guess this issue should be moved to JMP repo
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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: starred/jellyfin#5137
No description provided.