video source with multiple source pads

Deepak Agasibagil deepak at relysys.co.in
Tue Dec 2 21:25:16 PST 2014


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141203/dc6977c8/attachment.html>


More information about the gstreamer-devel mailing list