-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
VideoPlayer: drop streamInfo #9238
Conversation
jenkins build this please |
I do use this overlay pretty much every day for debugging purposes. |
same here, absolutely required to debug decoder/buffer issues that occur time and time again.. |
feel free to implement it again, labels are still there |
The code just being removed here seems clean and non intrusive. What do you have in mind for a "new implementation"? |
the code I have removed was maximum nonsense. demux info collected from demuxer was polled from a window through application and application player object. This is what I call crap and no-go. The info queried by GetStreamInfo was redundant. For example bitrate is a member of DemuxStream and can be accessed without the removed method. EDIT:
Please don't get this wrong. I don't blame anyone. I know the code has grown over time. My judgement is only related to the current snapshot of the code, not to anybody who has written it. |
Thanks, I mainly talked about the skips / drops display, which is really useful information to see if render was late or if decoder needs / has dropped. It's obviously clear that there is a reason you remove it - no offense here. |
That section is still there. |
@FernetMenta I can link you a sample with 8 audio tracks (LPCM, TrueHD, AAC, FLAC, ...) all in one - used for testing ... |
I tested this PR and skips/drops was not visible for me. |
I will bring the important parameters back with utilizing the new ProcessInfo object. But first I want to finish InputStream addon that requires this change here. |
Thanks much! 2016-02-29 17:22 GMT+01:00 Rainer Hochecker notifications@github.com:
Fingerprint: 4606 DA19 EC2E 9A0B 0157 C81B DA07 CF63 1A99 5A9B |
@popcornmix I think about rendering the debug info as overlays by renderer and drop the controls of the skin. Can you think about any reason why this should not work? |
@FernetMenta are you suggesting the codec info is part of the current GL overlay, or a separate layer? |
@popcornmix I would render the debug info the same way as a text overlay. With regard on performance this should be better then rendering it by a skin. |
We don't have specific text overlays. You can create a bitmap and add it as an overlay, but kodi will need to handle writing fonts to the bitmap. Whether it will help performance or not is debatable. Drifting off topic a bit, it might be nice for the codec info, the debug info and the mouse pointer to rendered through an overridable method, which when overridden avoids setting the dirty flag if just that overlay has changed. I doubt all platforms can usefully support this, so I imagine a fallback to using GL/GLES would still be useful. |
Certainly we do. Some subtitles are text only and those type can be used for this case.
I think it will. The GUI handles this as generic text, that's all information it has. If I do this from player, I know that updating values every 20-40 makes no sense because this just results in some flickering numbers.
No, see above. Absolutely no reason to update every refresh. Maybe I update it every second. |
I was assuming you were talking about using an additional hardware overlay for the text, in which case the Pi, for example doesn't have support for a textual overlay (only general purpose bitrmaps). Yes, agree that simple subtitles are doing something very similar. |
To the same framebuffer. Most platforms only have a single one. Why do you ask? |
I came across GetStreamInfo a while ago when playing with smooth stream changes. I found a reasonable place where to look for codec Information (and where they are already displayed today: In the video / audio settings menu when playing an video. For the very deep analyse I go simply into kodis log file. @popcornmix Are drops / skips available in the meantime on your system? I never lost them... |
There's a lot of parallel work going on related to this part of the application and I don't want to deadlock here. If no objections, I would merge this and do the work on the debug info later. |
As long as codec info will come back, then I won't object to this now. |
I have no objections. |
VideoPlayer: drop streamInfo
fighting spaghetti code
too much dependencies just for displaying redundant info on a debugging screen. all this info is available to the GUI and most of the info is displayed by the OSD anyway.