fix(server): HEVC videos not playing on Apple devices (#6712)

* add hvc1 tag

* formatting
This commit is contained in:
Mert
2024-01-28 21:17:20 -05:00
committed by GitHub
parent 0770ad15e5
commit e5a70329c9
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -44,6 +44,7 @@ class BaseConfig implements VideoCodecSWConfig {
// explicitly selects the video stream instead of leaving it up to FFmpeg
`-map 0:${videoStream.index}`,
];
if (audioStream) {
options.push(`-map 0:${audioStream.index}`);
}
@@ -56,6 +57,11 @@ class BaseConfig implements VideoCodecSWConfig {
if (this.getGopSize() > 0) {
options.push(`-g ${this.getGopSize()}`);
}
if (this.config.targetVideoCodec === VideoCodec.HEVC) {
options.push('-tag:v hvc1');
}
return options;
}