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 hlsAudioCodecs = getSupportedHLSAudioCodecs();
|
||||||
const audioChannels: number = hasSurroundSupport() ? 6 : 2;
|
const audioChannels: number = hasSurroundSupport() ? 6 : 2;
|
||||||
|
|
||||||
if (profileOptions.enableHls !== false) {
|
if (profileOptions.enableHls) {
|
||||||
TranscodingProfiles.push({
|
TranscodingProfiles.push({
|
||||||
AudioCodec: hlsAudioCodecs.join(','),
|
AudioCodec: hlsAudioCodecs.join(','),
|
||||||
BreakOnNonKeyFrames: false,
|
BreakOnNonKeyFrames: false,
|
||||||
@ -328,12 +328,12 @@ function getTranscodingProfiles(): TranscodingProfile[] {
|
|||||||
if (
|
if (
|
||||||
hlsVideoCodecs.length &&
|
hlsVideoCodecs.length &&
|
||||||
hlsAudioCodecs.length &&
|
hlsAudioCodecs.length &&
|
||||||
profileOptions.enableHls !== false
|
profileOptions.enableHls
|
||||||
) {
|
) {
|
||||||
TranscodingProfiles.push({
|
TranscodingProfiles.push({
|
||||||
AudioCodec: hlsAudioCodecs.join(','),
|
AudioCodec: hlsAudioCodecs.join(','),
|
||||||
BreakOnNonKeyFrames: false,
|
BreakOnNonKeyFrames: false,
|
||||||
Container: 'ts',
|
Container: 'mp4',
|
||||||
Context: EncodingContext.Streaming,
|
Context: EncodingContext.Streaming,
|
||||||
MaxAudioChannels: audioChannels.toString(),
|
MaxAudioChannels: audioChannels.toString(),
|
||||||
MinSegments: 1,
|
MinSegments: 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user