mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-25 05:42:10 +00:00
Fix file extension based on container
This commit is contained in:
parent
7baa261b22
commit
9230472056
3 changed files with 23 additions and 5 deletions
|
|
@ -6541,13 +6541,14 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
return " -codec:s:0 " + codec + " -disposition:s:0 default";
|
||||
}
|
||||
|
||||
public string GetProgressiveVideoFullCommandLine(EncodingJobInfo state, EncodingOptions encodingOptions, string outputPath, string defaultPreset)
|
||||
public string GetProgressiveVideoFullCommandLine(EncodingJobInfo state, EncodingOptions encodingOptions, string defaultPreset)
|
||||
{
|
||||
// Get the output codec name
|
||||
var videoCodec = GetVideoEncoder(state, encodingOptions);
|
||||
|
||||
var format = string.Empty;
|
||||
var keyFrame = string.Empty;
|
||||
var outputPath = state.OutputFilePath;
|
||||
|
||||
if (Path.GetExtension(outputPath.AsSpan()).Equals(".mp4", StringComparison.OrdinalIgnoreCase)
|
||||
&& state.BaseRequest.Context == EncodingContext.Streaming)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue