Difference between revisions of "Gst-1.0 pipelines for DM816x and DM814x"
Crodriguez (talk | contribs) (Created page with "= '''DM8148''' = == V4l2 Capture and recording == <pre> gst-launch-1.0 v4l2src io-mode=3 device=/dev/video0 num-buffers=1000 ! 'video/x-raw,format=(string)NV12,width=1280,he...") |
Crodriguez (talk | contribs) |
||
Line 7: | Line 7: | ||
</pre> | </pre> | ||
− | == V4l2 Capture and | + | == V4l2 Capture and UDP streaming == |
You have to set HOST and PORT variables to your own | You have to set HOST and PORT variables to your own | ||
Line 13: | Line 13: | ||
<pre> | <pre> | ||
gst-launch-1.0 v4l2src io-mode=3 device=/dev/video0 ! 'video/x-raw,format =(string)NV12,width=1280,height=720,framerate=(fraction)60/1' ! perf print-arm-load=true ! omxbufferalloc num-buffers=12 ! omxh264enc i-period=30 idr-period=30 ! mpegtsmux ! udpsink host=$HOST port=$PORT sync=false async=false | gst-launch-1.0 v4l2src io-mode=3 device=/dev/video0 ! 'video/x-raw,format =(string)NV12,width=1280,height=720,framerate=(fraction)60/1' ! perf print-arm-load=true ! omxbufferalloc num-buffers=12 ! omxh264enc i-period=30 idr-period=30 ! mpegtsmux ! udpsink host=$HOST port=$PORT sync=false async=false | ||
+ | </pre> | ||
+ | |||
+ | Later you could get the stream in your host side | ||
+ | |||
+ | <pre> | ||
+ | gst-launch-1.0 udpsrc port=$PORT ! tsdemux ! fakesink -v | ||
</pre> | </pre> |
Revision as of 12:27, 3 March 2016
DM8148
V4l2 Capture and recording
gst-launch-1.0 v4l2src io-mode=3 device=/dev/video0 num-buffers=1000 ! 'video/x-raw,format=(string)NV12,width=1280,height=720,framerate=(fraction)60/1' ! perf print-arm-load=true ! omxbufferalloc num-buffers=12 -v ! omxh264enc i-period=30 idr-period=30 ! queue ! rrh264parser single-nalu=true ! mp4mux dts-method=0 ! filesink location=test_v4l2src_1.0.mp4
V4l2 Capture and UDP streaming
You have to set HOST and PORT variables to your own
gst-launch-1.0 v4l2src io-mode=3 device=/dev/video0 ! 'video/x-raw,format =(string)NV12,width=1280,height=720,framerate=(fraction)60/1' ! perf print-arm-load=true ! omxbufferalloc num-buffers=12 ! omxh264enc i-period=30 idr-period=30 ! mpegtsmux ! udpsink host=$HOST port=$PORT sync=false async=false
Later you could get the stream in your host side
gst-launch-1.0 udpsrc port=$PORT ! tsdemux ! fakesink -v