mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
fix fps info issue when the video is h264.
Fixed an issue that when the media source is in H264 format and the frame rate info is not displayed due to missing space characters in ffmpeg log.
This commit is contained in:
parent
8eced835c0
commit
7472ae5ca9
1 changed files with 9 additions and 0 deletions
|
@ -90,6 +90,15 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
framerate = val;
|
framerate = val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (part.Contains("fps=", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
var rate = part.Split(new[] { '=' }, 2).Last();
|
||||||
|
|
||||||
|
if (float.TryParse(rate, NumberStyles.Any, _usCulture, out var val))
|
||||||
|
{
|
||||||
|
framerate = val;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (state.RunTimeTicks.HasValue &&
|
else if (state.RunTimeTicks.HasValue &&
|
||||||
part.StartsWith("time=", StringComparison.OrdinalIgnoreCase))
|
part.StartsWith("time=", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue