jellyfin/MediaBrowser.Controller/MediaEncoding
danne e4383493a9 Fix audio sample rate forced to 48 kHz for non-Opus codecs
GetProgressiveAudioFullCommandLine applied the libopus-only sample rate
quantization to every codec except Opus, inverting the intended guard.
A requested rate such as 44100 Hz was therefore snapped to 48000 Hz for
AAC/MP3/FLAC, while Opus (which actually requires the quantization) was
skipped entirely.

Apply the quantization only when the output codec is Opus, and pass the
requested sample rate through unchanged for all other codecs.

Fixes #17026

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 09:43:31 +02:00
..
BaseEncodingJobOptions.cs Check videoRotation in video stream copy 2026-05-09 15:20:29 +08:00
BitStreamFilterOptionType.cs Improve dynamic HDR metadata handling (#13277) 2025-04-02 18:06:02 -06:00
DownMixAlgorithmsHelper.cs Add comments for Dave750/NightmodeDialogue 7.1 downmix 2024-08-01 07:45:16 +08:00
EncodingHelper.cs Fix audio sample rate forced to 48 kHz for non-Opus codecs 2026-06-21 09:43:31 +02:00
EncodingJobInfo.cs Extend TranscodingReason reporting 2026-06-15 09:29:24 +02:00
FilterOptionType.cs Fix the transparency issue of ASS subtitle rendering in HWA (#14024) 2025-05-03 08:21:08 -06:00
IAttachmentExtractor.cs Cleanup extracted files (#13760) 2025-04-03 09:17:14 -06:00
IMediaEncoder.cs Improve dynamic HDR metadata handling (#13277) 2025-04-02 18:06:02 -06:00
ISubtitleEncoder.cs Expose ExtractAllExtractableSubtitles (#14876) 2025-09-26 13:45:01 -06:00
ITranscodeManager.cs Updated contributors, upgraded to AsyncKeyedLocker 6.3.0 which now supports non-keyed locking using a similar interface and changed SemaphoreSlim-based locks to using AsyncNonKeyedLocker. 2024-01-14 12:11:16 +01:00
JobLogger.cs Fix nullable annotation 2026-01-14 18:55:47 +01:00
MediaInfoRequest.cs Enable nullable reference types for MediaBrowser.Controller 2021-05-07 00:39:20 +02:00
TranscodingJob.cs move to new System.Threading.Lock type for better performance 2024-12-12 18:10:06 +05:00
TranscodingJobType.cs Remove BOM from UTF-8 files 2024-08-30 15:29:48 +02:00
TranscodingSegmentCleaner.cs Apply suggestions from code review 2024-03-17 20:45:00 +08:00
TranscodingThrottler.cs Remove BOM from UTF-8 files 2024-08-30 15:29:48 +02:00