-
Notifications
You must be signed in to change notification settings - Fork 20
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
[REQ] Image/text overlays #57
Comments
Hi! |
That is an interesting suggestion @forart, Tell me more. |
Thanks for reply @apple-fritter ! Well, our non-profit organization choosed cctv-viewer (which guarantees the best latencies) to preview PTZ cams' shots in live shows that we stream, so it would be useful for operators to have overlayed so-called "Safe Zones"/center reference (check out the top-left Preview screen on Atem switchers): Since this usage is outside the scope of @iEvgeny's project, we can't ask him to implement it as we'd need, but we believe that a text/image overlay feature would be useful for all users. Last but not least, we're collecting/doxing/sorting all RTSP-viewers related gits (yours too, of course) we found hoping that could stimulate collaboration between their devs. [ dirty-draft here ] Hope that inspires ! |
I appreciate being included in this discussion, @forart . I'll take a look at what solutions I can come up with! |
Update: Here's an ffplay commandline written by (driven) ChatGPT that draws "resolution-aware" EBU safe areas and a simple viewfinder:
Hope that inspires. |
Bump. Here's what getonboard.dev (a ChatGPT-based git analyzer/modifyer) suggest to add such "ffmpeg viewfinder" in cctv:
And, asking 'Are you able to modify the code to draw an overlayed cross on the center of each video displayed by cctv ?' the output is:
...does @iEvgeny agree with it ? |
Only QML is sufficient to implement an overlay. It is not difficult. It is more difficult to implement a quality UI for this functionality. |
Well, I don't know if it's a good idea to embed a QML drawing tool in cctv-viewer, however I would avoid "reinvent the wheel"...
Last but not least, I would suggest you to consider @eralban's Custom QML Video Player approach wich overlay controls on top of video content too. Hope that inspires ! |
Just found this very interesting (PySide/PyQT/QML/Python/Qt) overlay camera controls GUI by @makerinchina-iot:
Git: https://github.com/makerinchina-iot/raspberry_pyside_notes#v-6-camera-viewer-gui |
Refactoring the viewport layout engine and overlays is a priority. I hope for some result by the end of this year. |
Cool. May more resources (such as the above one) help ? |
I basically already have a finished idea of what it should look like. I just need to find the time. |
Cool, we'll have to just wait then. |
Bump. As suggested, I finally putted my fingers on QML code (Player.qml), so here's the 1st working test of a (basic/rude but proportional) viewfinder + EBU safe areas + dotted diagonals overlayed in all cctv-viewer streams-areas: ...of course you need to build it. I'll play more with. Suggestions are welcome. (screenshots soon) EDIT |
Bump2 Player.qml updated again: viewfinder is empty now. |
Unfortunately, I don't have time to review other people's code right now. |
Hi there, thanks for reply.
Don't worry, it's a "very-alpha" customization for a pretty specific use (so, as you can notice, I've forked the git but didn't request any pull, actually). However, I would like to make both safe areas and the viewfinder overlays de/activateable on certain-keys pressing. So the question is: is better to implement those overlays code inside Player.qml or ViewportsLayout.qml ? Thanks in advance fo any suggestion you can provide. |
Ofcourse, inside Player.qml. But handling possible shortcuts for de/activate viewfinder overlay should be implemented in ViewportsLayout.qml. See handling "F" shortcut as example: cctv-viewer/src/ViewportsLayout.qml Line 254 in 8bd8571
|
Since I've almost finished the viewfinder/guides overlays (my updated Player.qml), I'm going to modify ViewportsLayout.qml to trying make those de/activable by key pressing. ChatGPT generates this code for, but I honestly don't know how to integrate it into ViewportsLayout.qml...
...and of course Player.qml needs to be modded too:
I'm pretty confused now... |
Hi there,
as already asked here it would be useful to implement stream labeling and if can help - since your software relays on ffmpeg too, we found this nice script by @apple-fritter that may help:
https://github.com/apple-fritter/RTSP.downmix.4-to-1_2x2/blob/main/downmix.sh
And what about overlay images too ?
This would be extremely useful for those who needs, for example, safety areas like this:
Hope that inspires !
The text was updated successfully, but these errors were encountered: