Streaming pi camera to multiple clients?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Streaming pi camera to multiple clients?

tiger
Hi there, I'm having lots of trouble finding a good answer to my question
around so I hope I can get answer here!

I need to stream a video feed and occasionally snap a photo of the camera
feed at the same time. The camera is a single USB camera connected to a
raspberry pi, and I am streaming it to a computer. The video and image are
needed in different applications on the same computer and I really don't
want to implement sharing the video across the applications.

My current stream uses this command "gst-rtsp-server/examples/test-launch '(
v4l2src device=/dev/front_camera ! x264enc pass=pass1 threads=5 bitrate=300
tune=zerolatency ! video/x-h264, width=320, height=240, framerate=20/1 !
h264parse ! rtph264pay name=pay0 pt=98 )' '8554'"". But it seems to only
allow one connection to it at a time. So I want to know how could I allow
both application to access the single camera feed? Also I cannot rely on
knowing the ip address of the client ahead of time.

Thanks for reading this.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Streaming pi camera to multiple clients?

tiger
Nvm, turns out multicast does exactly that.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Streaming pi camera to multiple clients?

Nicolas Dufresne-5
In reply to this post by tiger
Le jeudi 19 décembre 2019 à 01:12 -0600, tiger a écrit :

> Hi there, I'm having lots of trouble finding a good answer to my question
> around so I hope I can get answer here!
>
> I need to stream a video feed and occasionally snap a photo of the camera
> feed at the same time. The camera is a single USB camera connected to a
> raspberry pi, and I am streaming it to a computer. The video and image are
> needed in different applications on the same computer and I really don't
> want to implement sharing the video across the applications.
>
> My current stream uses this command "gst-rtsp-server/examples/test-launch '(
> v4l2src device=/dev/front_camera ! x264enc pass=pass1 threads=5 bitrate=300
> tune=zerolatency ! video/x-h264, width=320, height=240, framerate=20/1 !
> h264parse ! rtph264pay name=pay0 pt=98 )' '8554'"". But it seems to only
> allow one connection to it at a time. So I want to know how could I allow
> both application to access the single camera feed? Also I cannot rely on
> knowing the ip address of the client ahead of time.
See gst_rtsp_media_set_shared() or the equivalent "shared" property.

>
> Thanks for reading this.
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment