mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 21:20:39 +02:00
fix incorrect level on encoding command line
This commit is contained in:
parent
dd715fbcc7
commit
4fa90701fd
|
@ -484,7 +484,7 @@ namespace MediaBrowser.Controller.Entities
|
||||||
return new[] {
|
return new[] {
|
||||||
new FileSystemMetadata
|
new FileSystemMetadata
|
||||||
{
|
{
|
||||||
FullName = System.IO.Path.GetDirectoryName(Path),
|
FullName = ContainingFolderPath,
|
||||||
IsDirectory = true
|
IsDirectory = true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -719,8 +719,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// nvenc doesn't decode with param -level set ?!
|
// nvenc doesn't decode with param -level set ?!
|
||||||
if (string.Equals(videoEncoder, "h264_nvenc", StringComparison.OrdinalIgnoreCase)){
|
else if (string.Equals(videoEncoder, "h264_nvenc", StringComparison.OrdinalIgnoreCase)){
|
||||||
param += "";
|
//param += "";
|
||||||
}
|
}
|
||||||
else if (!string.Equals(videoEncoder, "h264_omx", StringComparison.OrdinalIgnoreCase))
|
else if (!string.Equals(videoEncoder, "h264_omx", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
@ -1606,6 +1606,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (state.MediaSource.RequiresLooping)
|
||||||
|
{
|
||||||
|
inputModifier += " -stream_loop -1";
|
||||||
|
}
|
||||||
|
|
||||||
return inputModifier;
|
return inputModifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue