kingslay / KSPlayer

A video player for iOS、macOS、tvOS、visionOS , based on AVPlayer and FFmpeg, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, support subtitles.
GNU General Public License v3.0
868 stars 182 forks source link

FPS Variability #769

Open neostck opened 2 months ago

neostck commented 2 months ago

On the same live channel, 50 FPS is issued when operated with VLC player and 24 FPS when operated with KSPlayer.

VLC Player: image

KSPlayer: image

Device: Apple TV 4K OS: tvOS 17.4 (21L227) APP: Snappier 3.0.4 Player: KSPlayer 2.2.4

kingslay commented 2 months ago

可以提供下url吗?

neostck commented 2 months ago

A link to the publication source?

kingslay commented 2 months ago

是的

neostck commented 2 months ago

image https://github.com/kingslay/KSPlayer/assets/157086758/9a6e7eb6-44d4-4902-a376-52a87ccc9972

I only have a personal connection, I can't provide a connection.

kingslay commented 2 months ago

你可以看下实时的Display FPS的显示的是多少。或是你在mac上用vlc保存一小段视频片段发给我。

neostck commented 2 months ago

I provided video with KSPlayer above. Now I provide video from the same channel as VLC.

https://github.com/kingslay/KSPlayer/assets/157086758/758adc2f-3d5e-4c0b-9f1d-00797804ae0f

kingslay commented 2 months ago

@UnknownCoder807 在Snappier上是否可以看到Display FPS 的值。对应的代码是
LabeledContent("Display FPS", value: dynamicInfo.displayFPS, format: .number)

UnknownCoder807 commented 2 months ago

@UnknownCoder807 在Snappier上是否可以看到Display FPS 的值。对应的代码是 LabeledContent("Display FPS", value: dynamicInfo.displayFPS, format: .number)

Yes, I use this code and it appears to work correctly.

kingslay commented 2 months ago

@UnknownCoder807 你的意思是FFmpegAssetTrack 中的nominalFrameRate返回的是24 然后 dynamicInfo.displayFPS 返回的是50吗?

UnknownCoder807 commented 2 months ago

@UnknownCoder807 你的意思是FFmpegAssetTrack 中的nominalFrameRate返回的是24 然后 dynamicInfo.displayFPS 返回的是50吗?

No, both show 50FPS.

1st screenshot is nominalFrameRate

Simulator Screenshot - Apple TV 4K (3rd generation) - 2024-04-15 at 10 35 38

2nd screenshot is dynamic

Simulator Screenshot - Apple TV 4K (3rd generation) - 2024-04-15 at 10 35 48

kingslay commented 2 months ago

那问题点是:这个视频流在vlc那边显示的fps是24,但是在ksplayer这边显示的fps是50 吗?不知道那个是对的吗

UnknownCoder807 commented 2 months ago

那问题点是:这个视频流在vlc那边显示的fps是24,但是在ksplayer这边显示的fps是50 吗?不知道那个是对的吗

In the case of my stream, it is displayed as 50fps in vlc too.

kingslay commented 2 months ago

@neostck 那你看下Display FPS 显示的值是什么? Display FPS的值是最准的。

neostck commented 2 months ago

The FPS value is 50 in feed broadcasts given with Windows, and the FPS value is 24 in feed broadcasts given with Macbook. We couldn't understand why.

image

As can be seen in the image, all broadcasts are sent as 50 FPS, but on our devices they have only 24 FPS with KSPlayer.

cdguy commented 2 months ago

The FPS value is 50 in feed broadcasts given with Windows, and the FPS value is 24 in feed broadcasts given with Macbook. We couldn't understand why.

image

As can be seen in the image, all broadcasts are sent as 50 FPS, but on our devices they have only 24 FPS with KSPlayer.

Why don’t you try with TracyPlayer? Lilly Player tvos app does not have the latest ksplayer libraries

neostck commented 2 months ago

It plays in slow motion.

image

kingslay commented 2 months ago

@neostck 你是否可以用Mac上用vlc录制有问题的直播流,然后发给我呢?只要录制一分钟时长就可以了 录制教程如下: https://juejin.cn/s/vlc录制视频流