From 0b966d7c048c209762989e9866348938f330d116 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Sun, 23 Feb 2025 14:50:14 +0100 Subject: [PATCH] fix: add hevc to chromecast h265 profile --- utils/profiles/chromecast.ts | 39 +++++++++++++++++++------------- utils/profiles/chromecasth265.ts | 7 +++--- 2 files changed, 27 insertions(+), 19 deletions(-) diff --git a/utils/profiles/chromecast.ts b/utils/profiles/chromecast.ts index 9e9257e4..1a65ce2d 100644 --- a/utils/profiles/chromecast.ts +++ b/utils/profiles/chromecast.ts @@ -5,12 +5,23 @@ export const chromecast: DeviceProfile = { MaxStreamingBitrate: 8000000, // 8 Mbps MaxStaticBitrate: 8000000, // 8 Mbps MusicStreamingTranscodingBitrate: 384000, // 384 kbps + CodecProfiles: [ + { + Type: "Video", + Codec: "h264", + }, + { + Type: "Audio", + Codec: "aac,mp3,flac,opus,vorbis", + }, + ], + ContainerProfiles: [], DirectPlayProfiles: [ { Container: "mp4", Type: "Video", VideoCodec: "h264", - AudioCodec: "aac,mp3", + AudioCodec: "aac,mp3,opus,vorbis", }, { Container: "mp3", @@ -20,15 +31,23 @@ export const chromecast: DeviceProfile = { Container: "aac", Type: "Audio", }, + { + Container: "flac", + Type: "Audio", + }, + { + Container: "wav", + Type: "Audio", + }, ], TranscodingProfiles: [ { Container: "ts", Type: "Video", - AudioCodec: "aac,mp3", VideoCodec: "h264", - Context: "Streaming", + AudioCodec: "aac,mp3", Protocol: "hls", + Context: "Streaming", MaxAudioChannels: "2", MinSegments: 2, BreakOnNonKeyFrames: true, @@ -37,12 +56,11 @@ export const chromecast: DeviceProfile = { Container: "mp4", Type: "Video", VideoCodec: "h264", - AudioCodec: "aac,mp3", + AudioCodec: "aac", Protocol: "http", Context: "Streaming", MaxAudioChannels: "2", MinSegments: 2, - BreakOnNonKeyFrames: true, }, { Container: "mp3", @@ -61,17 +79,6 @@ export const chromecast: DeviceProfile = { MaxAudioChannels: "2", }, ], - ContainerProfiles: [], - CodecProfiles: [ - { - Type: "Video", - Codec: "h264", - }, - { - Type: "Audio", - Codec: "aac,mp3", - }, - ], SubtitleProfiles: [ { Format: "vtt", diff --git a/utils/profiles/chromecasth265.ts b/utils/profiles/chromecasth265.ts index b42ca9ab..49d8f882 100644 --- a/utils/profiles/chromecasth265.ts +++ b/utils/profiles/chromecasth265.ts @@ -18,7 +18,7 @@ export const chromecasth265: DeviceProfile = { ContainerProfiles: [], DirectPlayProfiles: [ { - Container: "mp4", + Container: "mp4,mkv", Type: "Video", VideoCodec: "hevc,h264", AudioCodec: "aac,mp3,opus,vorbis", @@ -53,13 +53,14 @@ export const chromecasth265: DeviceProfile = { BreakOnNonKeyFrames: true, }, { - Container: "mp4", + Container: "mp4,mkv", Type: "Video", - VideoCodec: "h264", + VideoCodec: "hevc,h264", AudioCodec: "aac", Protocol: "http", Context: "Streaming", MaxAudioChannels: "2", + MinSegments: 2, }, { Container: "mp3",