|
@@ -161,7 +161,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|
|
public int? OutputAudioBitrate;
|
|
|
public int? OutputAudioChannels;
|
|
|
|
|
|
- public bool DeInterlace(string videoCodec)
|
|
|
+ public bool DeInterlace(string videoCodec, bool forceDeinterlaceIfSourceIsInterlaced)
|
|
|
{
|
|
|
// Support general param
|
|
|
if (BaseRequest.DeInterlace)
|
|
@@ -177,6 +177,15 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (forceDeinterlaceIfSourceIsInterlaced)
|
|
|
+ {
|
|
|
+ var videoStream = VideoStream;
|
|
|
+ if (videoStream != null && videoStream.IsInterlaced)
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -559,7 +568,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|
|
return VideoStream == null ? (bool?)null : VideoStream.IsInterlaced;
|
|
|
}
|
|
|
|
|
|
- if (DeInterlace(ActualOutputVideoCodec))
|
|
|
+ if (DeInterlace(ActualOutputVideoCodec, true))
|
|
|
{
|
|
|
return false;
|
|
|
}
|