video source with multiple source pads

Deepak Agasibagil deepak at relysys.co.in
Wed Dec 3 05:12:10 PST 2014


hello Ian Davidson,

I has created  pipeline using videorate as follows and it is working fine.

gst-launch-0.10 -v -e --gst-debug-level=0 \
v4l2src num-buffers=500 ! \
tee name="separator1" separator1.src0 ! queue ! \
videorate !
video/x-raw-yuv,width=640,height=480,format='(fourcc)'I420,framerate=20/1 !
\
x264enc ! h264parse ! mp4mux ! filesink location=./E111_StreamedData.mp4 \
separator1.src1 ! queue ! \
videorate !
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


Thank you.



On Wed, Dec 3, 2014 at 2:08 PM, Ian Davidson <id012c3076 at blueyonder.co.uk>
wrote:

> 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.
>>
>>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141203/de4372bf/attachment-0001.html>


More information about the gstreamer-devel mailing list