Jump to content

Jetson Nano/Gstreamer/Example Pipelines/Encoding: Difference between revisions

no edit summary
No edit summary
Line 2: Line 2:
{{JetsonNano/Head}}
{{JetsonNano/Head}}
</noinclude>
</noinclude>
{{DISPLAYTITLE:Jetson Nano- H.264 GStreamer Pipelines |noerror}}
{{DISPLAYTITLE:Jetson Nano- GStreamer Encoding Pipelines |noerror}}


== OMX ==
== OMX ==
Line 18: Line 18:
==V4L2==
==V4L2==


=== H264 Encoding ===
=== H264 Encoding from Camera ===


<pre style="background:#d6e4f1">
<pre style="background:#d6e4f1">
Line 25: Line 25:
</pre>
</pre>


=== Dual H264 Encoding ===
=== Dual H264 Encoding from Camera ===


<pre style="background:#d6e4f1">
<pre style="background:#d6e4f1">
Line 31: Line 31:
FILE_B=filenameB.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
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
</pre>
=== H264 Decoding ===
<pre style="background:#d6e4f1">
FILE=filename.mp4
gst-launch-1.0 filesrc location=$FILE ! qtdemux ! queue ! h264parse ! nvv4l2decoder ! nv3dsink -e
</pre>
=== H264 UDP Streaming ===
====Server:====
<pre style="background:#d6e4f1">
CLIENT_IP=<IP_ADDRESS>
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 ! rtph264pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false
</pre>
====PC Client====
<pre style="background:#d6e4f1">
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! queue ! avdec_h264 ! xvimagesink sync=false async=false -e
</pre>
</pre>


932

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.