Jetson Nano/Gstreamer/Example Pipelines/Encoding: Difference between revisions
No edit summary |
(→OMX) |
||
Line 3: | Line 3: | ||
</noinclude> | </noinclude> | ||
{{DISPLAYTITLE:Jetson Nano- GStreamer Encoding Pipelines |noerror}} | {{DISPLAYTITLE:Jetson Nano- GStreamer Encoding Pipelines |noerror}} | ||
=H.264= | |||
== OMX == | == OMX == |
Revision as of 00:10, 28 June 2019
NVIDIA®Jetson Nano™ | |||
---|---|---|---|
Introduction | |||
|
|||
Development | |||
|
|||
GStreamer | |||
|
|||
Contact Us |
H.264
OMX
From videotestsrc
gst-launch-1.0 videotestsrc is-live=true ! video/x-raw, format=I420, width=1920, height=1080 ! omxh264enc ! qtmux ! perf ! filesink location=test.mp4
From camera
gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080,format=NV12, framerate=30/1' ! nvvidconv ! omxh264enc ! qtmux ! filesink location=test.mp4 -e
V4L2
H264 Encoding from Camera
FILE=filename.mp4 gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1' ! nvv4l2h264enc bitrate=8000000 ! h264parse ! qtmux ! filesink location=$FILE
Dual H264 Encoding from Camera
FILE_A=filenameA.mp4 FILE_B=filenameB.mp4 gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1' ! nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)I420' ! tee name=streams streams. ! omxh264enc bitrate=8000000 ! 'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! qtmux ! filesink location=$FILE_A streams. ! omxh264enc bitrate=8000000 ! 'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! qtmux ! filesink location=$FILE_B