video source with multiple source pads

Ian Davidson id012c3076 at blueyonder.co.uk
Wed Dec 3 00:38:17 PST 2014


You should be able to take the feed from your video source element (at 
whatever rate it is working) and split it with a tee.  In each branch of 
the tee I would put a videorate (and, perhaps, a videoconvert) and then 
your desired CAPS.  You don't really care what the camera is doing - 
what you want to control is what comes out of your pipes.

On 03/12/2014 05:25, Deepak Agasibagil wrote:
> Hello,
>
> I am using single video source to stream and capture the video with 
> the same frame rate.
>
> pipeline structure:
>
> gst-launch-0.10 -v -e --gst-debug-level=0 \
> v4l2src num-buffers=500 ! \
> video/x-raw-yuv,width=640,height=480,format='(fourcc)'I420,framerate=30/1 
> ! \
> ffmpegcolorspace ! \
> tee name="separator1" separator1.src0 ! queue ! \
> video/x-raw-yuv,width=640,height=480,format='(fourcc)'I420,framerate=30/1 
> ! \
> x264enc ! h264parse ! mp4mux ! filesink location=./E111_StreamedData.mp4 \
> separator1.src1 ! queue ! \
> video/x-raw-yuv,width=640,height=480,format='(fourcc)'I420,framerate=30/1 
> ! \
> x264enc ! queue ! rtph264pay ! udpsink host=127.0.0.1 port=5001
>
>
> If i want stream the same video source with low frame rate and capture 
> with high frame rate.
> then the following pipeline which i have created is giving link error.
>
> gst-launch-0.10 -v -e --gst-debug-level=0 \
> v4l2src num-buffers=500 ! \
> video/x-raw-yuv,width=640,height=480,format='(fourcc)'I420,framerate=30/1 
> ! \
> ffmpegcolorspace ! \
> tee name="separator1" separator1.src0 ! queue ! \
> video/x-raw-yuv,width=640,height=480,format='(fourcc)'I420,framerate=30/1 
> ! \
> x264enc ! h264parse ! mp4mux ! filesink location=./E111_StreamedData.mp4 \
> separator1.src1 ! queue ! \
> video/x-raw-yuv,width=640,height=480,format='(fourcc)'I420,framerate=5/1 
> ! \
> x264enc ! queue ! rtph264pay ! udpsink host=127.0.0.1 port=5001
>
>
> I know that i have to use the 'videorate' element, in above pipeline,
> I just want confirm that is there any way that i can create two 'src' pads
> on the same  video source element with different frame rate.
>
> Thanks.
>



More information about the gstreamer-devel mailing list