Skip to content
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

Feature Request: Display Battery and Timestamp Information in RTSP Stream #133

Open
C0sm0cats opened this issue Sep 21, 2024 · 4 comments
Open

Comments

@C0sm0cats
Copy link

Dear Pedro,

I hope this message finds you well. I am currently using the RTSP server from your repository for streaming video from Android devices, and I would like to suggest a feature enhancement.

Would it be possible to implement a feature that allows the display of battery status and the current date and time directly in the RTSP stream? This functionality would be incredibly useful for applications that require real-time monitoring and context alongside the video feed.

Thank you for considering this request. I appreciate the hard work you put into maintaining this project and look forward to any updates.

Best regards

@pedroSG94
Copy link
Owner

Hello,

This is already possible using filters.
In rootencoder app example you have an Android view filter that allows you to create an XML and send it to stream.

You can use it for this case

@C0sm0cats
Copy link
Author

C0sm0cats commented Sep 21, 2024

Hello,

I'm currently using the app from this repository CamStreamAndroidToPython to stream video, which utilizes your RTSP server and encoder. However, I have no idea how to implement the feature of adding battery status and timestamp directly into the RTSP stream.

Could you please provide guidance or examples on how to achieve this? Your help would be greatly appreciated!

Thank you!

@pedroSG94
Copy link
Owner

You have multiple changes to do in that project. Currently that project is using a texture view in the XML layout and you need to use openglview.

After that, you can set filters like this:
https://github.com/pedroSG94/RootEncoder/blob/master/app/src/main/java/com/pedro/streamer/utils/FilterMenu.kt#L309

This filter allows you to set text to stream. This filter is easier to use than the Android view filter and maybe is enough for you.

If you don't know anything about Android programming then you should learn about it or ask the owner for this implementation.

@C0sm0cats
Copy link
Author

Thank you so much for your detailed explanation and the references! This definitely puts me on the right track. I’ll try to understand more about the implementation and see how I can make the necessary changes.

Thanks again for your help, I really appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants