Skip to content

Gstreamer plugin for Jetson Nano for stabilizing video input.

Notifications You must be signed in to change notification settings

ahtabrizi/gstnvstabilize

Repository files navigation

GstNvStabilize

This is gstreamer plugin to stabilize video input on nvidia devices. Tested on jetson nano.

Steps to compile the gst-nvstabilize sources natively:

  1. Install gstreamer related packages on target using the command:

     sudo apt-get install libgstreamer1.0-dev \
             gstreamer1.0-plugins-base \
             gstreamer1.0-plugins-good \
             libgstreamer-plugins-base1.0-dev
    
  2. Run the following commands to build and install libgstnvstabilize.so:

     cd "gst-nvstabilize"
     make
     make install
     or
     DEST_DIR=<dir> make install
    

Note: make install will copy library libgstnvstabilize.so into /usr/lib/aarch64-linux-gnu/gstreamer-1.0 directory.

How to run

  • Video file
gst-launch-1.0 filesrc location=/home/autoro/openpilot/video/video_tehran2_1280x720.mp4 ! qtdemux ! h264parse ! omxh264dec ! queue ! videoconvert ! 'video/x-raw,width=1280,height=720,format=RGBA' ! nvstabilize ! nvvidconv ! 'video/x-raw(memory:NVMM)' ! nvvidconv ! xvimagesink
  • csi camera (nvcamera)
gst-launch-1.0 nvarguscamerasrc sensor_id=0 sensor_mode=4  ! nvvidconv ! videoconvert ! 'video/x-raw,width=1280,height=720,format=RGBA, framerate=30/1' ! nvstabilize ! 'video/x-raw,width=1280,height=720' ! nvvidconv ! 'video/x-raw(memory:NVMM)' ! nvvidconv ! xvimagesink

Useful links:

About

Gstreamer plugin for Jetson Nano for stabilizing video input.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published