Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/d1c668e23064bf417117dff8c9cc787866aeb33b
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
32 additions and
2 deletions
@ -1844,7 +1844,11 @@ namespace Jellyfin.Api.Controllers
// args += " -mixed-refs 0 -refs 3 -x264opts b_pyramid=0:weightb=0:weightp=0";
// video processing filters.
args + = _encodingHelper . GetVideoProcessingFilterParam ( state , _encodingOptions , codec ) ;
var videoProcessParam = _encodingHelper . GetVideoProcessingFilterParam ( state , _encodingOptions , codec ) ;
var negativeMapArgs = _encodingHelper . GetNegativeMapArgsByFilters ( state , videoProcessParam ) ;
args = negativeMapArgs + args + videoProcessParam ;
// -start_at_zero is necessary to use with -ss when seeking,
// otherwise the target position cannot be determined.
@ -2397,6 +2397,30 @@ namespace MediaBrowser.Controller.MediaEncoding
return args ;
}
/// <summary>
/// Gets the negative map args by filters.
/// </summary>
/// <param name="state">The state.</param>
/// <param name="videoProcessFilters">The videoProcessFilters.</param>
/// <returns>System.String.</returns>
public string GetNegativeMapArgsByFilters ( EncodingJobInfo state , string videoProcessFilters )
{
string args = string . Empty ;
// http://ffmpeg.org/ffmpeg-all.html#toc-Complex-filtergraphs-1
if ( state . VideoStream ! = null & & videoProcessFilters . Contains ( "-filter_complex" , StringComparison . Ordinal ) )
{
int videoStreamIndex = FindIndex ( state . MediaSource . MediaStreams , state . VideoStream ) ;
args + = string . Format (
CultureInfo . InvariantCulture ,
"-map -0:{0} " ,
videoStreamIndex ) ;
}
return args ;
}
/// <summary>
/// Determines which stream will be used for playback.
/// </summary>
@ -5428,7 +5452,9 @@ namespace MediaBrowser.Controller.MediaEncoding
// video processing filters.
var videoProcessParam = GetVideoProcessingFilterParam ( state , encodingOptions , videoCodec ) ;
args + = videoProcessParam ;
var negativeMapArgs = GetNegativeMapArgsByFilters ( state , videoProcessParam ) ;
args = negativeMapArgs + args + videoProcessParam ;
hasCopyTs = videoProcessParam . Contains ( "copyts" , StringComparison . OrdinalIgnoreCase ) ;