How to add elements to running pipeline

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

How to add elements to running pipeline

Avinash
Hello,
I need to test preview+capture use case using omx_camera. I am able to run preview with omx_camera->fillter->v4l2sink pipeline, For img capturing, I need to use 'imgsrc' pad of omx_camera with queue->filesink. How to add queue & filesink to already running preview pipeline.? Please help..
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to add elements to running pipeline

ak.ashwini
Hi,
 
 You need to set the pipeline to READY state before adding elements into it, and then reset the state to playing.
 
-Ashwini

On Tue, Jun 14, 2011 at 3:32 PM, Avinash Magdum <[hidden email]> wrote:
Hello,
I need to test preview+capture use case using omx_camera. I am able to run preview with omx_camera->fillter->v4l2sink pipeline, For img capturing, I need to use 'imgsrc' pad of omx_camera with queue->filesink. How to add queue & filesink to already running preview pipeline.? Please help..
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



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

Re: How to add elements to running pipeline

Avinash
This post was updated on .
Now I am able to add elements to running gstreamer preview pipeline.  I just paused the pipeline before adding elements to it.
Now I am facing with another problem in putting EOS on this branched pipeline. My pipeline is like this:

Pipeline: CapturePipeline
------------------------------------------------------------------
omx_camera(src pad) ->flter->v4l2sink
omx_camera(imgsrc pad)->queue->filesink (Image bin)  
------------------------------------------------------------------
I am tring to put EOS on this CapturePipeline, but the message callback doesn't receive any eos message.
[ gst_element_send_event(CapturePipeline, gst_event_new_eos());]

I tried couple of approaches like putting eos on a mux,filesink,etc but didn't get through it.


Help!!
Reply | Threaded
Open this post in threaded view
|

Re: How to add elements to running pipeline

Avinash
In reply to this post by Avinash
Now I am able to add elements to running gstreamer preview pipeline.  I just
paused the pipeline before adding elements to it.
Now I am facing with another problem in putting EOS on this branched
pipeline. My pipeline is like this:

Pipeline: CapturePipeline
------------------------------------------------------------------
omx_camera(src pad) ->flter->v4l2sink
omx_camera(imgsrc pad)->queue->filesink (Image bin)
------------------------------------------------------------------
I am tring to put EOS on this CapturePipeline, but the message callback
doesn't receive any eos message.
[ gst_element_send_event(CapturePipeline, gst_event_new_eos());]

Help!!
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to add elements to running pipeline

nidhi
In reply to this post by Avinash
Absolutely right. Changing to READY STATE did the trick.
Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: How to add elements to running pipeline

Kapil Agrawal
You can just block the two pads between which you want to add new elements, create new element, link, change state and unblock the previously blocked  pads.

On Thu, Sep 8, 2011 at 6:40 PM, nidhi <[hidden email]> wrote:
Absolutely right. Changing to READY STATE did the trick.
Thank you.

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-add-elements-to-running-pipeline-tp3596139p3798758.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal

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