Reputation: 21
I am new to GStreamer following is the issue I am facing
Pipeline 1
v4l2src device=/dev/video241 ! video/x-h264,height=720,width=1280,framerate=30/1 ! tvcameradmx name=demux demux.video_0 ! queue ! omx_h264dec ! xvimagesink
Pipeline 2
appsrc ! video/x-h264,height=720,width=1280,framerate=30/1 ! avimux ! filesink
I want to attach appsrc
to the queue of pipeline 1
For this I am using appsrc in push mode.
My question is how can I retrieve the buffers from the queue ????
Upvotes: 1
Views: 1307
Reputation: 3378
If you're trying to go from v4l2, to a file sink and X, you'll want to use a tee, as JPS indicates. The pipeline would become something along these lines:
v4l2src device=/dev/video241 ! video/x-h264,height=720,width=1280,framerate=30/1 ! tvcameradmx name=demux demux.video_0 ! tee name=t ! queue ! omx_h264dec ! xvimagesink t. ! queue ! avimux ! filesink location=...
After creating a tee and naming it ("t" in this case), you can reference it again in the pipeline by appending "." after it. It then becomes a sort of new source element.
Upvotes: 3