mirror of
https://github.com/Radarr/Radarr
synced 2026-05-07 12:42:07 +02:00
Merge 0a7cd26eeb into 0134fdedca
This commit is contained in:
commit
eb6066d188
1 changed files with 2 additions and 1 deletions
|
|
@ -117,7 +117,8 @@ public MediaInfoModel GetMediaInfo(string filename)
|
|||
// if it looks like PQ10 or similar HDR, do a frame analysis to figure out which type it is
|
||||
if (PqTransferFunctions.Contains(mediaInfoModel.VideoTransferCharacteristics))
|
||||
{
|
||||
var frameOutput = FFProbe.GetFrameJson(filename, ffOptions: new () { ExtraArguments = $"-read_intervals \"%+#1\" -select_streams v:{primaryVideoStream?.Index ?? 0}" });
|
||||
var videoStreamIndex = analysis.VideoStreams.FindIndex(stream => stream.Index == primaryVideoStream?.Index);
|
||||
var frameOutput = FFProbe.GetFrameJson(filename, ffOptions: new () { ExtraArguments = $"-read_intervals \"%+#1\" -select_streams v:{(videoStreamIndex == -1 ? 0 : videoStreamIndex)}" });
|
||||
mediaInfoModel.RawFrameData = frameOutput;
|
||||
|
||||
frames = FFProbe.AnalyseFrameJson(frameOutput);
|
||||
|
|
|
|||
Loading…
Reference in a new issue