Two pipelines with the same video source
tim at centricular.com
Sun Apr 13 04:35:25 PDT 2014
On Fri, 2014-04-11 at 03:29 -0700, Kenairod wrote:
> If I launch only one of them it works great, but when I try to launch both I
> get this error :
> mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
> mmal: camera component couldn’t be enabled
> It seems there is some kind of lock on the camera when it is streaming,
> maybe is there a way to remove it.
Yes, only one application/source element can use the camera at any time.
> Otherwise, I also tried to use only one
> pipeline which streams on both methods, but it doesn't work either :
> ip=$(hostname -I)
> http-launch matroskamux streamable=true name=stream\
> rpicamsrc bitrate=1000000 !\
> video/x-h264,width=320,height=240,framerate=25/1 !\
> h264parse name=parse
> parse. !\
> queue !\
> parse. !\
> queue !\
> rtph264pay config-interval=1 pt=96 !\
> gdppay !\
> tcpserversink host=$ip port=5000
You can use a 'tee' element to split a stream into two branches (you
will need queues after that in each branch). h264parse only has one
single source pad, so you can link only one single element to it
downstream. You need a 'tee' to duplicate the output in a pipeline.
> The HTTP servers launch well but when I try to connect the pipeline launchs
> and gives me this error :
> pi at raspberrypi ~ $ ./script.sh
> Listening on http://127.0.0.1:8001/
> New connection 172.23.200.60:59378
> Starting to stream to 172.23.200.60:59378
> Starting pipeline
> Error Internal data flow error.
> Removing connection 172.23.200.60:59378
> ./final.sh: line 10: parse.: command not found
> ./final.sh: line 13: parse.: command not found
> And the program stops running.
> So I'm not sure if it's possible do to what I want, but I'd be really happy
> ! =D
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Two-pipelines-with-the-same-video-source-tp4666430.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel