hailo-ai / hailo-rpi5-examples

MIT License
385 stars 59 forks source link

Added simple RTSP support and custom video sink option #40

Open chm10 opened 3 months ago

chm10 commented 3 months ago

New feature #39

Disclaimer: I am not the owner or maintainer of this project. This pull request is a suggested solution based on the information available in issue https://github.com/hailo-ai/hailo-rpi5-examples/issues/39. It is provided "as is", without warranty of any kind, express or implied. The project maintainers should review and test these changes thoroughly before considering implementation. I'm open to feedback and further modifications if needed.

giladnah commented 3 months ago

@chm10 Thanks for your input.

The current code is hardcoded to support only H.265 videos. Please convert it to use auto-pluggers like decodebin. It should look something like this: rtspsrc location=rtsp://your_rtsp_stream_url ! application/x-rtp,media=video ! decodebin ! videoconvert ! autovideosink

Once that's done, I'll be able to merge it.

Thanks a lot for your contributions; they are highly appreciated. I'd be happy to merge your code here.

chm10 commented 3 months ago

@chm10 Thanks for your input.

The current code is hardcoded to support only H.265 videos. Please convert it to use auto-pluggers like decodebin. It should look something like this: rtspsrc location=rtsp://your_rtsp_stream_url ! application/x-rtp,media=video ! decodebin ! videoconvert ! autovideosink

Once that's done, I'll be able to merge it.

Thanks a lot for your contributions; they are highly appreciated. I'd be happy to merge your code here.

I will change the code. I only have devices using H.265 rtsp for now. Thank you for the suggestions.