In your OpenARK VINE Desktop (aka. MobileX Station
),
# Initialize (Install dependencies)
make init
# Build gstreamer plugin
make build
# Configure environment variables
export GST_PLUGIN_PATH="$(pwd)/target/release"
# Configure your test model
MY_VIDEO_MODEL='image'
# Test the video upstreaming (in the background)
gst-launch-1.0 videotestsrc \
! jpegenc \
! arksink model="${MY_VIDEO_MODEL}" &
# Test the video downstreaming
gst-launch-1.0 arksrc model="${MY_VIDEO_MODEL}" \
! jpegdec \
! autovideosink
# Configure environment variables
export GST_PLUGIN_PATH="$(pwd)/target/release"
# Configure your test model
MY_VIDEO_MODEL='image'
# Test the video upstreaming (in the background)
## [nvvideoconvert]: load image into NVMM (NVIDIA GPU Memory Map)
## [nvjpegenc]: same as `jpegenc`, with NVIDIA GPU acceleration
gst-launch-1.0 videotestsrc \
! nvvideoconvert \
! nvjpegenc \
! arksink model="${MY_VIDEO_MODEL}" &
# Test the video downstreaming
## [nvjpegdec]: same as `jpegdec`, with NVIDIA GPU acceleration
gst-launch-1.0 arksrc model="${MY_VIDEO_MODEL}" \
! nvjpegdec \
! autovideosink