823
edits
No edit summary |
No edit summary |
||
Line 187: | Line 187: | ||
{{Review|Maybe just a short paragraph mentioning that for this pipelines to work an RB board with a MIPI camera connected is needed.}} | {{Review|Maybe just a short paragraph mentioning that for this pipelines to work an RB board with a MIPI camera connected is needed.}} | ||
The following GStreamer pipelines demonstrate how to capture video from a camera attached to the board. Please note that these pipelines require a MIPI CSI camera to function properly. | |||
'''1080p@30 xvimagesink''' | |||
''' | <pre> | ||
gst-launch-1.0 qtiqmmfsrc camera=0 ! "video/x-raw(memory:GBM),format=NV12,width=1920,height=1080,framerate=30/1" ! autovideoconvert ! xvimagesink sync=true | |||
</pre> | |||
'''720p@60 xvimagesink''' | |||
<pre> | |||
gst-launch-1.0 qtiqmmfsrc camera=0 ! "video/x-raw(memory:GBM),format=NV12,width=1280,height=720,framerate=60/1" ! autovideoconvert ! xvimagesink sync=true | |||
</pre> | |||
'''1080p@30 h264''' | |||
<pre> | <pre> | ||
gst-launch-1.0 qtiqmmfsrc camera=0 ! "video/x-raw(memory:GBM),format=NV12,width=1920,height=1080,framerate=30/1" ! | gst-launch-1.0 -e -v qtiqmmfsrc camera=0 ! "video/x-raw(memory:GBM),format=NV12,width=1920,height=1080,framerate=30/1,profile=high,level=(string)5.1" ! qtic2venc target-bitrate=8000000 ! h264parse ! queue ! mp4mux ! filesink location="video_capture_test_1080p.mp4" | ||
</pre> | </pre> | ||
''' | '''720p@60 h264''' | ||
<pre> | <pre> | ||
gst-launch-1.0 qtiqmmfsrc camera=0 ! "video/x-raw(memory:GBM),format=NV12,width=1280,height=720,framerate=60/1" ! | gst-launch-1.0 -e -v qtiqmmfsrc camera=0 ! "video/x-raw(memory:GBM),format=NV12,width=1280,height=720,framerate=60/1,profile=high,level=(string)5.1" ! qtic2venc target-bitrate=8000000 ! h264parse ! queue ! mp4mux ! filesink location="video_capture_test_720p.mp4" | ||
</pre> | </pre> | ||
edits