mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Fix the disordered color in Dolby Vision remuxing on Safari
This commit is contained in:
parent
8d1d973438
commit
c69e79f64d
@ -1773,14 +1773,24 @@ namespace Jellyfin.Api.Controllers
|
|||||||
|
|
||||||
var args = "-codec:v:0 " + codec;
|
var args = "-codec:v:0 " + codec;
|
||||||
|
|
||||||
// Prefer hvc1 to hev1.
|
|
||||||
if (string.Equals(state.ActualOutputVideoCodec, "h265", StringComparison.OrdinalIgnoreCase)
|
if (string.Equals(state.ActualOutputVideoCodec, "h265", StringComparison.OrdinalIgnoreCase)
|
||||||
|| string.Equals(state.ActualOutputVideoCodec, "hevc", StringComparison.OrdinalIgnoreCase)
|
|| string.Equals(state.ActualOutputVideoCodec, "hevc", StringComparison.OrdinalIgnoreCase)
|
||||||
|| string.Equals(codec, "h265", StringComparison.OrdinalIgnoreCase)
|
|| string.Equals(codec, "h265", StringComparison.OrdinalIgnoreCase)
|
||||||
|| string.Equals(codec, "hevc", StringComparison.OrdinalIgnoreCase))
|
|| string.Equals(codec, "hevc", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
if (EncodingHelper.IsCopyCodec(codec)
|
||||||
|
&& (string.Equals(state.VideoStream.CodecTag, "dvh1", StringComparison.OrdinalIgnoreCase)
|
||||||
|
|| string.Equals(state.VideoStream.CodecTag, "dvhe", StringComparison.OrdinalIgnoreCase)))
|
||||||
|
{
|
||||||
|
// Prefer dvh1 to dvhe
|
||||||
|
args += " -tag:v:0 dvh1";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Prefer hvc1 to hev1
|
||||||
args += " -tag:v:0 hvc1";
|
args += " -tag:v:0 hvc1";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// if (state.EnableMpegtsM2TsMode)
|
// if (state.EnableMpegtsM2TsMode)
|
||||||
// {
|
// {
|
||||||
|
Loading…
Reference in New Issue
Block a user