mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
fix: subtitles burn in for chromecast
This commit is contained in:
@@ -1,18 +1,25 @@
|
|||||||
import {
|
import { DeviceProfile } from "@jellyfin/sdk/lib/generated-client/models";
|
||||||
DeviceProfile
|
|
||||||
} from "@jellyfin/sdk/lib/generated-client/models";
|
|
||||||
|
|
||||||
export const chromecastProfile: DeviceProfile = {
|
export const chromecastProfile: DeviceProfile = {
|
||||||
Name: "Chromecast Video Profile",
|
Name: "Chromecast Video Profile",
|
||||||
Id: "chromecast-001",
|
MaxStreamingBitrate: 8000000, // 8 Mbps
|
||||||
MaxStreamingBitrate: 4000000, // 4 Mbps
|
MaxStaticBitrate: 8000000, // 8 Mbps
|
||||||
MaxStaticBitrate: 4000000, // 4 Mbps
|
|
||||||
MusicStreamingTranscodingBitrate: 384000, // 384 kbps
|
MusicStreamingTranscodingBitrate: 384000, // 384 kbps
|
||||||
|
CodecProfiles: [
|
||||||
|
{
|
||||||
|
Type: "Video",
|
||||||
|
Codec: "h264",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Type: "Audio",
|
||||||
|
Codec: "aac,mp3,flac,opus,vorbis",
|
||||||
|
},
|
||||||
|
],
|
||||||
DirectPlayProfiles: [
|
DirectPlayProfiles: [
|
||||||
{
|
{
|
||||||
Container: "mp4,webm",
|
Container: "mp4",
|
||||||
Type: "Video",
|
Type: "Video",
|
||||||
VideoCodec: "h264,vp8,vp9",
|
VideoCodec: "h264",
|
||||||
AudioCodec: "aac,mp3,opus,vorbis",
|
AudioCodec: "aac,mp3,opus,vorbis",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -34,89 +41,32 @@ export const chromecastProfile: DeviceProfile = {
|
|||||||
],
|
],
|
||||||
TranscodingProfiles: [
|
TranscodingProfiles: [
|
||||||
{
|
{
|
||||||
Container: "ts",
|
|
||||||
Type: "Video",
|
Type: "Video",
|
||||||
VideoCodec: "h264",
|
Context: "Streaming",
|
||||||
AudioCodec: "aac,mp3",
|
|
||||||
Protocol: "hls",
|
Protocol: "hls",
|
||||||
Context: "Streaming",
|
Container: "ts",
|
||||||
MaxAudioChannels: "2",
|
VideoCodec: "h264, hevc",
|
||||||
MinSegments: 2,
|
AudioCodec: "aac,mp3,ac3",
|
||||||
BreakOnNonKeyFrames: true,
|
CopyTimestamps: false,
|
||||||
|
EnableSubtitlesInManifest: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Container: "mp4",
|
Type: "Audio",
|
||||||
Type: "Video",
|
Context: "Streaming",
|
||||||
VideoCodec: "h264",
|
|
||||||
AudioCodec: "aac",
|
|
||||||
Protocol: "http",
|
Protocol: "http",
|
||||||
Context: "Streaming",
|
|
||||||
MaxAudioChannels: "2",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Container: "mp3",
|
Container: "mp3",
|
||||||
Type: "Audio",
|
|
||||||
AudioCodec: "mp3",
|
AudioCodec: "mp3",
|
||||||
Protocol: "http",
|
|
||||||
Context: "Streaming",
|
|
||||||
MaxAudioChannels: "2",
|
MaxAudioChannels: "2",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Container: "aac",
|
|
||||||
Type: "Audio",
|
|
||||||
AudioCodec: "aac",
|
|
||||||
Protocol: "http",
|
|
||||||
Context: "Streaming",
|
|
||||||
MaxAudioChannels: "2",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
ContainerProfiles: [
|
|
||||||
{
|
|
||||||
Type: "Video",
|
|
||||||
Container: "mp4",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Type: "Video",
|
|
||||||
Container: "webm",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
CodecProfiles: [
|
|
||||||
{
|
|
||||||
Type: "Video",
|
|
||||||
Codec: "h264",
|
|
||||||
Conditions: [
|
|
||||||
{
|
|
||||||
Condition: "LessThanEqual",
|
|
||||||
Property: "VideoBitDepth",
|
|
||||||
Value: "8",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Condition: "LessThanEqual",
|
|
||||||
Property: "VideoLevel",
|
|
||||||
Value: "41",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Type: "Video",
|
|
||||||
Codec: "vp9",
|
|
||||||
Conditions: [
|
|
||||||
{
|
|
||||||
Condition: "LessThanEqual",
|
|
||||||
Property: "VideoBitDepth",
|
|
||||||
Value: "10",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
SubtitleProfiles: [
|
SubtitleProfiles: [
|
||||||
{
|
{
|
||||||
Format: "vtt",
|
Format: "vtt",
|
||||||
Method: "Hls",
|
Method: "Encode",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Format: "vtt",
|
Format: "vtt",
|
||||||
Method: "External",
|
Method: "Encode",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user