mirror of
https://github.com/jellyfin/jellyfin-chromecast.git
synced 2024-11-23 05:59:50 +00:00
Merge pull request #662 from 3flex/mp4-hls-container
Request mp4 container when transcoding HLS video
This commit is contained in:
commit
1baac2d9c7
@ -291,7 +291,7 @@ function getTranscodingProfiles(): TranscodingProfile[] {
|
||||
const hlsAudioCodecs = getSupportedHLSAudioCodecs();
|
||||
const audioChannels: number = hasSurroundSupport() ? 6 : 2;
|
||||
|
||||
if (profileOptions.enableHls !== false) {
|
||||
if (profileOptions.enableHls) {
|
||||
TranscodingProfiles.push({
|
||||
AudioCodec: hlsAudioCodecs.join(','),
|
||||
BreakOnNonKeyFrames: false,
|
||||
@ -328,12 +328,12 @@ function getTranscodingProfiles(): TranscodingProfile[] {
|
||||
if (
|
||||
hlsVideoCodecs.length &&
|
||||
hlsAudioCodecs.length &&
|
||||
profileOptions.enableHls !== false
|
||||
profileOptions.enableHls
|
||||
) {
|
||||
TranscodingProfiles.push({
|
||||
AudioCodec: hlsAudioCodecs.join(','),
|
||||
BreakOnNonKeyFrames: false,
|
||||
Container: 'ts',
|
||||
Container: 'mp4',
|
||||
Context: EncodingContext.Streaming,
|
||||
MaxAudioChannels: audioChannels.toString(),
|
||||
MinSegments: 1,
|
||||
|
Loading…
Reference in New Issue
Block a user