Spherical Video PTZ: Performance - Jetson AGX Xavier

From RidgeRun Developer Wiki
Revision as of 15:15, 25 March 2024 by Jmora (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


  Index  





Using CPU

  • This pipeline generates a video test pattern, applies PTZ transformations, and resizes the output video to 1280x720 pixels for display.
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
  • This pipeline reads an image, applies a zoom transformation, and displays the result:
gst-launch-1.0 filesrc location=sample.jpg ! jpegdec ! imagefreeze ! videoconvert ! video/x-raw,format=RGBA ! rrpanoramaptz zoom=1.5 ! videoconvert ! autovideosink
  • This pipeline takes an input image, applies PTZ transformations, encodes the video using hardware, and records it to a file:
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

To decode the video:

gst-launch-1.0 filesrc location=./example.ts ! tsdemux ! h264parse ! nvv4l2decoder ! nvvidconv ! autovideosink

Using GPU

  • This pipeline uses GPU memory (NVMM) for processing, encodes the video in H.264 format, and directs the output to a fakesink.

gst-launch-1.0 videotestsrc ! nvvidconv ! "video/x-raw(memory:NVMM),format=RGBA,width=1920,height=1080" ! rrpanoramaptz ! fakesink 

#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



  Index