steveseguin / raspberry_ninja

Publish or capture VDO.Ninja streams with Python (Raspberry Pi, Linux, Mac, Windows WSL)
https://raspberry.ninja
144 stars 28 forks source link

Showing input on display #22

Open baticag opened 2 years ago

baticag commented 2 years ago

It would be great to have an option to show input on RPi hdmi out. Like a loopback so we can connect it to monitor :)

steveseguin commented 2 years ago

Thank you for the request

Are you using a USB input? or CSI port?

baticag commented 2 years ago

USB capture card (cheap mjpeg one) and streaming is working fabolous, thank you!

baticag commented 2 years ago

I searched and founded ximagesink (https://gstreamer.freedesktop.org/documentation/ximagesink/index.html), but didn't know how to combine it to current pipeline well so it works

steveseguin commented 2 years ago

Awesome. I asked about USB as I think if using a CSI camera, it already does what you want. I'll need to add this support for USB devices though. It will probably need to be an opt-in CLI flag to enable, as moving the video from the pipeline to the frame buffer might increase the load on the Raspberry Pi, hurting video quality. I'm not sure yet though.

It might be time for me to cycle around again and work more on the Raspberry Ninja project anyways-- I want to take another stab at getting the audio-sync issues worked out.

If you figure it out before I do, feel free to make a pull request with the changes and I'll merge them.