-
-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live Media info details #528
Comments
这些信息目前通过MediaPlayerTrack 和KSMEPlayer.metadata 都是可以得到的。 |
There are 3 values I could not find: 1- live bitrate (not the average value. So when this info is displayed, the value will constantly change) 2- live FPS value (you would be able to understand if the stream is dropping frames) 3- file size how to display those 3 info? MPV can do it (I already sent you some screenahots), the VLC desktop app can display it, the open source Qmplay2 app (it uses ffmpeg lib) can reveal it |
Of course adding those values directly into the test app would be a great use for everyone! :) |
我增加了filesize这个属性了。 2- live FPS value (you would be able to understand if the stream is dropping frames) |
Yes for sure the live bitrate will consume a lot of resources, but the usage/display of the live bitrate would only be triggered if a user opens the player media details UI via the settings. So the CPU usage would only increase if someone looks at this value via player settings -> media details |
@kingslay Indeed, even if it's not a feature that will interest the general public, it will be very useful for us as beta testers. Being able to display this information will enable us to better understand and analyze the data as we develop the application. It's a feature that will make our work easier and help us in our testing and fine-tuning. I don't think it requires too much work on the development side to retrieve the corresponding data, so it seems a pertinent proposition to me. |
The actual code displays the file size, but what us missing in my opinion are: 1- add a progressive/interlaced tag under the file size info 2- live bitrate info: as you mentioned before, this would increase CPU usage, a button below the live bitrate could be placed, and the button might be named / Live Stream Bitrate thank you again @kingslay |
I agree with my colleagues that this is a very important feature. They've already detailed everything very well, so I don't have anything to add, I support the request if it's possible, that would be great. |
好的,我看下要怎么样才能低成本的增加live bitrate |
2b35e6bf-10fa-4d89-b5a1-7d404b107a21.mp4Here is an example: you see the video and audio bitrate constantly updating The “estimated FPS” value is 50 because the stream is 50i. |
This is exactly what is needed ! |
you can also check this website: https://www.1em0n.com/blog/2020/2020-02-28.html under "help说明" |
不知道这篇文章是否能帮助低成本的增加live bitrate |
我增加了videoBitrate。你们可以试下 |
是没有提交commit吗,没有看到新的变更呢 |
可以看 6c24a94 这个commit |
@kingslay is it possible that you update the live bitrate every second? at the moment Tracy Player displays the average value of the stream bitrate? thank you |
其实这个值是会一直变的。只是我的demo里面没有做定时更新。我只是做一个简单的示例。 |
@kingslay It would be very useful to add a overlay which shows dropped frames, this is crucial when we test different media for stability. Is it possible to add this also? |
@chillout23 可以的,其实目前的日志就会有记录是否有丢帧了。我可以加一个变量进行统计下。这个dropped frames 是要记录每秒的平均值,还是要记录从开始播放到现在为止的累积值呢? |
The ideal would be to display both: 1- cumulative dropped frames count during the playback of the same stream |
mpv是展示那个信息呢?是累积值还是每秒的平均值呢? |
It displays the total count of dropped frames. also in the image below, the "A/V Sync Diff" field displays if the video and sound is in sync. This would be beneficial for the user and the dev in 2 ways: 1- the user would see in seconds is the audio is behind, and add an audio delay to fix the issue. For instance, as audiorenderer library still has an "audio out of sync", this can be a good starting point to identify if the audio and video "out of sync" value is constant or increases for longer playback |
@kingslay it would be nice to have this information directly in TracyPlayer GUI. As this app is built for testing purposes it would make sense. In MPV the info is updated every 5 seconds I think, which I believe should be easier on CPU. |
Talking to Skrew, the LillyPlayer developer, about the live media info detail so that he could integrate it into his app, he advised me to pass this on to you: Ideally, you'll need to send data as you get it, some of which will be refreshed the same number of times as the video's FPS, while others will need to be refreshed manually by the app (lillyplayer), every second for example. For this, you can create a protocol with events, for example. That's how MPV sends its data, and it's thanks to this "dynamic" format that you can see weird things like FPS going from 25 to 50 fps. I hope this will help you or give you an idea of how to integrate more options or improve what you've already done. I'm only a user and don't have the necessary code skills to help you or go into detail about this, so I'm sorry, but you've done a remarkable job since the beginning, and I wish you all the best. |
since you last commits, can you please update tracy player testflight app? @JeremTM93 would love to try the live media details Thank you |
live media details 是可以显示出来了。但是我还没在demo里面做每秒显示一次的功能。但是开发者可以先用了 |
@kingslay can you please add the option to see if the content is SDR/HDR/HDR10+/DV |
* 'develop' of github.com:kingslay/KSPlayer: add videoBitrate and audioBitrate add Stream Type kingslay#528 解决AirPods 的问题 fix kingslay#609 fix kingslay#602 AudioUnitPlayer add mute add AudioUnitPlayer kingslay#607
* 'develop' of github.com:kingslay/KSPlayer: 解决本地依赖问题 解决字幕无法显示的问题 fix kingslay#624 fix kingslay#528 add log fix kingslay#618 fix kingslay#618 fix build fix kingslay#627 add sponsor fix build fix kingslay#528 # Conflicts: # Sources/KSPlayer/MEPlayer/FFmpegAssetTrack.swift # Sources/KSPlayer/MEPlayer/FFmpegDecode.swift # Sources/KSPlayer/MEPlayer/MEPlayerItem.swift
* 'develop' of github.com:kingslay/KSPlayer: (22 commits) 优化同步 add AudioEngineDynamicsPlayer kingslay#584 fix kingslay#619 fix kingslay#634 Update issue templates Update issue templates 不使用deprecated api add video type kingslay#528 udpate swiftui demo update update fix fix fix 解决依赖问题 解决依赖问题 解决spm的问题 解决spm依赖的问题 去除packeage.resolved 更新ffmpeg ... # Conflicts: # FFmpegKit
@kingslay since a few commits, “Audio Bitrate” and “Video Bitrate” fields display wrong values. Sometimes the audio bitrate value is displayed as “0” however the content has audio thanks! |
Since you use some MPV player libraries in Ksplayer https://github.com/kingslay/FFmpegKit I would like to know if you could implement live media info into the swiftUI Demo App?
(I will share additional screenshots via e-mail.)
The text was updated successfully, but these errors were encountered: