# Change RTSP streaming paramters via SD Card

## **1. Overview**

* This is a menthod to allow user can change the parameter of RTSP streaming from the Vio payload
* Software App version: v1.0.3.1 to v1.0.4.1[ download link](https://github.com/Gremsy/Vio-Software/releases/latest)
* This function is no longer support from VIO Software v1.0.4.2 or higher. Please configure the RTSP stream via Web App Settings

## **2. How to use**

* Create a "rtsp\_stream.txt" file to the top folder on the microSD card then plug into the Vio payload
* With App [version 1.0.3.6](https://github.com/Gremsy/Vio-Software/releases/tag/v1.1.0), Create a "[rtsp\_stream.json](https://github.com/Gremsy/Vio-Software/releases/download/v1.1.0/rtsp_stream.json)" file to the top folder on the microSD card then plug into the Vio payload
* Reboot to apply the settings.
* The parameter will be default if the Vio payload can not detect the config file on the microSD card.
* The default settings is: 1080p / 4M.

## **3. The content of rtsp\_stream.txt file**

```
/*-----RTSP stream config-----*/
// Change the setting below to change the rtsp stream info

// streaming resolution
// 1: 1920x1080
// 2: 1280x720
// 3: 640x480
RESOLUTION 3

// streaming bitrate, in bits
BITRATE 4000000

/*-----End--------------------*/
```

## **4. Test command with gstreamer**

```
gst-launch-1.0 rtspsrc latency=0 location=rtsp://<vio_ip>:8554/vio ! rtph264depay ! decodebin ! videoconvert ! autovideosink sync=false
```

* Change the latency to 100 / 500/ 1000 then see the difference.

## **5. Convert dos2unix**

* If you create a rtsp\_stream.txt on a Windows machine, it must be convert to unix system file style.
* Please use below tools to convert the file before putting it onto the microSD card.

[`https://toolslick.com/conversion/text/dos-to-unix`](https://toolslick.com/conversion/text/dos-to-unix)<br>
