Difference between revisions of "JetsonTX2/GStreamer/Jetpack4.2+/Streaming"

From RidgeRun Developer Connection
Jump to: navigation, search
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{JetsonTX2/Head|next=|previous=|keywords=}}
+
{{JetsonTX2/Head|next=|previous=|keywords=H.264,H.265,OMX Sender,V4L2 Sender,PC Client}}
 
</noinclude>
 
</noinclude>
  
 +
{{DISPLAYTITLE: Jetson TX2 Jetpack4.2+ GStreamer streaming pipelines|noerror}}
  
=RTP Streaming=
+
<table>
 +
<tr>
 +
<td><div class="clear; float:right">__TOC__</div></td>
 +
<td valign=top>
 +
{{GStreamer debug}}
 +
</td>
 +
</table>
  
== H.264 ==
+
==RTP Streaming==
  
=== OMX Sender ===
+
=== H.264 ===
 +
 
 +
==== OMX Sender ====
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
 
CLIENT_IP=<IP_ADDRESS>
 
CLIENT_IP=<IP_ADDRESS>
Line 16: Line 25:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== V4L2 Sender ===
+
==== V4L2 Sender ====
  
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
Line 24: Line 33:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
+
==== PC Client ====
=== PC Client ===
 
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
 
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
 
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
 
</syntaxhighlight>
 
</syntaxhighlight>
  
==H.265==
+
===H.265===
  
===OMX Sender ===
+
====OMX Sender ====
  
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
Line 41: Line 49:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
===V4L2 Sender===
+
====V4L2 Sender====
  
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
Line 49: Line 57:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
===PC Client===
+
====PC Client====
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
 
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H265,payload=96 ! rtph265depay ! h265parse ! queue ! avdec_h265 ! xvimagesink sync=false async=false -e
 
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H265,payload=96 ! rtph265depay ! h265parse ! queue ! avdec_h265 ! xvimagesink sync=false async=false -e

Latest revision as of 14:46, 25 November 2022



  Index  






Error something wrong.jpg Problems running the pipelines shown on this page?
Please see our GStreamer Debugging guide for help.

RTP Streaming

H.264

OMX Sender

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' \
! nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)I420' ! omxh264enc control-rate=2 bitrate=4000000 ! 'video/x-h264, stream-format=(string)byte-stream' \
! h264parse ! rtph264pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false

V4L2 Sender

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

PC Client

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

H.265

OMX Sender

CLIENT_IP=127.0.0.1
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' ! omxh265enc control-rate=2 bitrate=4000000 ! 'video/x-h265, stream-format=(string)byte-stream' \
! h265parse ! rtph265pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false

V4L2 Sender

CLIENT_IP=127.0.0.1
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1' \
! nvv4l2h265enc bitrate=8000000 ! h265parse ! rtph265pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false

PC Client

gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H265,payload=96 ! rtph265depay ! h265parse ! queue ! avdec_h265 ! xvimagesink sync=false async=false -e


  Index