mirror of https://github.com/jellyfin/jellyfin.git
fix: unset qmin and qmax for vt (#11246)
Co-authored-by: Nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
46d559a0a1
commit
a8f1668540
|
@ -1333,7 +1333,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
return ".ts";
|
return ".ts";
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetVideoBitrateParam(EncodingJobInfo state, string videoCodec)
|
private string GetVideoBitrateParam(EncodingJobInfo state, string videoCodec)
|
||||||
{
|
{
|
||||||
if (state.OutputVideoBitrate is null)
|
if (state.OutputVideoBitrate is null)
|
||||||
{
|
{
|
||||||
|
@ -1402,7 +1402,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
{
|
{
|
||||||
// The `maxrate` and `bufsize` options can potentially lead to performance regression
|
// The `maxrate` and `bufsize` options can potentially lead to performance regression
|
||||||
// and even encoder hangs, especially when the value is very high.
|
// and even encoder hangs, especially when the value is very high.
|
||||||
return FormattableString.Invariant($" -b:v {bitrate}");
|
return FormattableString.Invariant($" -b:v {bitrate} -qmin -1 -qmax -1");
|
||||||
}
|
}
|
||||||
|
|
||||||
return FormattableString.Invariant($" -b:v {bitrate} -maxrate {bitrate} -bufsize {bufsize}");
|
return FormattableString.Invariant($" -b:v {bitrate} -maxrate {bitrate} -bufsize {bufsize}");
|
||||||
|
|
Loading…
Reference in New Issue