mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4361] [MERGED] Add FLAC and define the corresponding target sample rate #10037
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4361
Author: @ssenart
Created: 10/22/2020
Status: ✅ Merged
Merged: 11/17/2020
Merged by: @joshuaboniface
Base:
master← Head:feature/4360-transcoding_flac_downsampling📝 Commits (4)
28ee4f0[AudioTranscoding] Add FLAC as supported target audio format and be able to define the corresponding target sample rate5979151[AudioTranscoding] Add FLAC as supported target audio format and be able to define the corresponding target sample rate95ecedb[AudioTranscoding] Add FLAC as supported target audio format and be able to define the corresponding target sample rate08279e9Update MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs📊 Changes
6 files changed (+43 additions, -4 deletions)
View changed files
📝
CONTRIBUTORS.md(+1 -0)📝
Emby.Dlna/PlayTo/PlayToController.cs(+4 -1)📝
MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs(+1 -1)📝
MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs(+2 -0)📝
MediaBrowser.Model/Dlna/StreamBuilder.cs(+26 -0)📝
MediaBrowser.Model/Dlna/StreamInfo.cs(+9 -2)📄 Description
Changes
Currently, if a target DLNA player does not support High Definition FLAC (24 bits and >= 96khz), then the best choice for converting audio stream is choosing MP3 format by using the transcoding profile:
However, if we have a player accepting FLAC with a sample rate at 48khz, the best choice would be something like:
It means keeping FLAC as target format but down sampling the sample rate from 96khz to 48khz.
It is the case for all Sonos family hardware.
I suggest here to extend the target transcoding format to FLAC and be able to define the maximum accepted sample rate.
Issues
Fixes #4360
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.