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

no edit summary
No edit summary
No edit summary
Line 169: Line 169:
<pre style="background:#d6e4f1">
<pre style="background:#d6e4f1">
FILE=filename.mp4
FILE=filename.mp4
gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080,format=NV12, framerate=30/1' ! nvvidconv ! omxh265enc ! qtmux ! filesink location=$FILE -e  
gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080,format=NV12, framerate=30/1' ! omxh265enc ! qtmux ! filesink location=$FILE -e  
</pre>
</pre>


{| class="wikitable" style="color:black; background-color:#f6f6f6; margin: auto;"
|+ align="top" style="caption-side: top" | Table 1. Performance results
|-
! Resolution
! CPU%
! FPS
|-
| 3280x2464
| 9%
| 21
|-
| 3280x1884
| 9%
| 21
|-
| 1080p
| 10%
| 30
|-
| 720p
| 17%
| 58
|-
| 720p
| 33%
| 116
|}
=== Dual H265 Encoding from Camera ===
=== Dual H265 Encoding from Camera ===


Line 177: Line 204:
FILE_A=filenameA.mp4
FILE_A=filenameA.mp4
FILE_B=filenameB.mp4
FILE_B=filenameB.mp4
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! nvvidconv ! tee name=streams streams. ! queue ! omxh265enc bitrate=8000000 ! qtmux ! filesink location=$FILE_A streams. ! queue ! omxh265enc bitrate=8000000 ! qtmux ! filesink location=$FILE_B
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! tee name=streams streams. ! queue ! omxh265enc bitrate=8000000 ! qtmux ! filesink location=$FILE_A streams. ! queue ! omxh265enc bitrate=8000000 ! qtmux ! filesink location=$FILE_B
</pre>
</pre>
{| class="wikitable" style="color:black; background-color:#f6f6f6; margin: auto;"
|+ align="top" style="caption-side: top" | Table 1. Performance results
|-
! Resolution
! CPU%
! FPS
|-
| 3280x2464
| 9%
| 21
|-
| 3280x1884
| 9%
| 21
|-
| 1080p
| 10%
| 30
|-
| 720p
| 19%
| 58
|-
| 720p
| 33%
| 116
|}


==V4L2==
==V4L2==
Line 187: Line 242:
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! nvv4l2h265enc bitrate=8000000 ! h265parse ! qtmux ! filesink location=$FILE -e
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! nvv4l2h265enc bitrate=8000000 ! h265parse ! qtmux ! filesink location=$FILE -e
</pre>
</pre>
{| class="wikitable" style="color:black; background-color:#f6f6f6; margin: auto;"
|+ align="top" style="caption-side: top" | Table 1. Performance results
|-
! Resolution
! CPU%
! FPS
|-
| 3280x2464
| 9%
| 21
|-
| 3280x1884
| 9%
| 21
|-
| 1080p
| 10%
| 30
|-
| 720p
| 19%
| 58
|-
| 720p
| 34%
| 116
|}


=== Dual H265 Encoding from Camera ===
=== Dual H265 Encoding from Camera ===
866

edits