[gst-devel] Grab video

Andrey Nechypurenko andreynech at googlemail.com
Fri Oct 8 11:04:05 CEST 2010


> v4l2src do-timestamp=true !
> video/x-raw-yuv,width=320,height=240,framerate=30/1 ! videoscale
> name=qos-scaler ! capsfilter name=qos-caps
> caps=video/x-raw-yuv,width=320,height=240 ! x264enc name=encoder
> byte-stream=true bitrate=300 speed-preset=superfast subme=6 !
> rtph264pay pt=96 ! appsink
>
> v4l2src always-copy=FALSE !
> video/x-raw-yuv,width=320,height=240,framerate=30/1 ! videoscale
> name=qos-scaler ! capsfilter name=qos-caps
> caps=video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace !
> video/x-raw-yuv,format=(fourcc)UYVY ! TIVidenc1 codecName=h264enc
> engineName=codecServer bitRate=30000 genTimeStamps=TRUE
> byteStream=TRUE ! rtph264pay pt=96 ! appsink

Just want to add, that using caps filter right after v4l2src you can
instruct the camera to capture in different (supported) resolutions.
So if your camera supports the resolution you are interested in, then
it might not be necessary to use videoscale at all.

In addition, in my examples above, the width and height before and
after videoscale element are the same. This is because I am adjusting
these values dynamically from my application. Of course, they should
be different in "static" pipeline, otherwise it would not make a lot
of sense :-) .

Regards,
Andrey.




More information about the gstreamer-devel mailing list