Jump to content

Spherical Video PTZ/Performance/Jetson AGX Xavier: Difference between revisions

no edit summary
(Created page with "<noinclude> {{Spherical Video PTZ/Head|previous=|next=|metakeywords=}} </noinclude> ==Using CPU== * This pipeline generates a video test pattern, applies PTZ transformations, and resizes the output video to 1280x720 pixels for display. <syntaxhighlight> gst-launch-1.0 videotestsrc pattern=0 ! "video/x-raw,width=1920,height=1080" ! rrpanoramaptz zoom=2.1 ! "video/x-raw,width=1920,height=1080" ! queue ! videoconvert ! autovideosink </syntaxhighlight> * This pipeline read...")
 
No edit summary
Line 3: Line 3:
</noinclude>
</noinclude>


==Using CPU==
* This pipeline generates a video test pattern, applies PTZ transformations, and resizes the output video to 1280x720 pixels for display.
<syntaxhighlight>
gst-launch-1.0 videotestsrc pattern=0 ! "video/x-raw,width=1920,height=1080" ! rrpanoramaptz zoom=2.1 ! "video/x-raw,width=1920,height=1080" ! queue ! videoconvert ! autovideosink
</syntaxhighlight>


* This pipeline reads an image, applies a zoom transformation, and displays the result:
== Benchmark environment ==
<syntaxhighlight>
gst-launch-1.0 filesrc location=sample.jpg ! jpegdec ! imagefreeze ! videoconvert ! video/x-raw,format=RGBA ! rrpanoramaptz zoom=1.5 ! videoconvert ! autovideosink
</syntaxhighlight>


* This pipeline takes an input image, applies PTZ transformations, encodes the video using hardware, and records it to a file:
The measurements are taken considering the following criteria:
<syntaxhighlight>
gst-launch-1.0 filesrc location=/home/nvidia/jmora/360sample2.jpg ! jpegdec ! imagefreeze ! videoconvert ! videoscale ! video/x-raw,format=RGBA ,width=1920,height=1080 ! rrpanoramaptz zoom=1.5 ! nvvidconv ! nvv4l2h264enc ! h264parse ! mpegtsmux ! filesink location=./example.ts
</syntaxhighlight>
To decode the video:
<syntaxhighlight>
gst-launch-1.0 filesrc location=./example.ts ! tsdemux ! h264parse ! nvv4l2decoder ! nvvidconv ! autovideosink
</syntaxhighlight>


==Using GPU==
* Average behaviour: measurements considering typical image processing pipelines.
* This pipeline uses GPU memory (NVMM) for processing, encodes the video in H.264 format, and directs the output to a fakesink.
<syntaxhighlight>


gst-launch-1.0 videotestsrc ! nvvidconv ! "video/x-raw(memory:NVMM),format=RGBA,width=1920,height=1080" ! rrpanoramaptz ! fakesink
== Benchmarking ==
 
'''Instruments:'''
 
* ''CPU'': RidgeRun Profiler
* ''RAM'': RidgeRun Profiler
* ''GPU'': Jtop
 
'''Pipelines:'''
 
''Average Behaviour: CPU and RAM (640x480):''
<pre>
# Without the element
gst-launch-1.0
 
# With the element
gst-launch-1.0
 
# Client pipeline
gst-launch-1.0 playbin
 
# RidgeRun Profiler
rr-profiler-headless -a -p [process_number] -T 100 > data.txt
 
</pre>
 
 
 
''Average Behaviour: CPU and RAM (1280x720):''
 
 
''Average Behaviour: CPU and RAM (1920x1080):''
 
 
''Average Behaviour: CPU and RAM (3840x2160/4K):''


#gst-launch-1.0 videotestsrc pattern=0 ! nvvidconv ! "video/x-raw(memory:NVMM),format=RGBA,width=1920,height=1080" ! rrpanoramaptz ! nvvidconv ! nvv4l2h264enc idrinterval=30 insert-aud=true insert-sps-pps=true insert-vui=true ! h264parse ! mpegtsmux ! udpsink port=1234 host=192.168.0.10
</syntaxhighlight>




264

edits

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