#!/bin/bash
set -e

# Источник можно переопределить: file:///..., rtsp://..., rtmp://... и т.п.
URI="${DS_SOURCE:-file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264}"

echo "Running deepstream-test1-app with source: ${URI}"

cd /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-test1
exec ./deepstream-test1-app "${URI}"
