mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-11-20 04:52:51 +00:00
Fix file extension based on container
This commit is contained in:
1 parent
7baa261b22
commit
9230472056
3 files changed
+23
-5
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user