mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Revert "Fix frame rate probing for interlaced MKV files"
This reverts commit 84fd5a09532bd1e854ec3745609f845aa7098da2.
This commit is contained in:
parent
84fd5a0953
commit
812300ad33
@ -666,16 +666,6 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
stream.AverageFrameRate = GetFrameRate(streamInfo.AverageFrameRate);
|
stream.AverageFrameRate = GetFrameRate(streamInfo.AverageFrameRate);
|
||||||
stream.RealFrameRate = GetFrameRate(streamInfo.RFrameRate);
|
stream.RealFrameRate = GetFrameRate(streamInfo.RFrameRate);
|
||||||
|
|
||||||
// Interlaced video streams in Matroska containers return the field rate instead of the frame rate
|
|
||||||
// as both the average and real frame rate, so we half the returned frame rates to get the correct values
|
|
||||||
//
|
|
||||||
// https://gitlab.com/mbunkus/mkvtoolnix/-/wikis/Wrong-frame-rate-displayed
|
|
||||||
if (stream.IsInterlaced && formatInfo.FormatName.Contains("matroska", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
stream.AverageFrameRate /= 2;
|
|
||||||
stream.RealFrameRate /= 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isAudio || string.Equals(stream.Codec, "gif", StringComparison.OrdinalIgnoreCase) ||
|
if (isAudio || string.Equals(stream.Codec, "gif", StringComparison.OrdinalIgnoreCase) ||
|
||||||
string.Equals(stream.Codec, "png", StringComparison.OrdinalIgnoreCase))
|
string.Equals(stream.Codec, "png", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user