iEvgeny / cctv-viewer

CCTV Viewer - viewer and mounter video streams.
GNU General Public License v3.0
135 stars 19 forks source link

RTSP stream error #60

Closed dcung closed 1 year ago

dcung commented 1 year ago

Hi, Thank you for the software.

I installed cctv-viewer on Debian 11 (Bullseye).

The demo stream works okay. I tried to configure video stream from an IP camera (RTSP). rtsp://user:password@x.x.x.x:554/ch1/1

The video was displayed for a few seconds. It then displays 'End Media' and after that 'Invalid Media'

I can use VLC to display the video stream to confirm the video is received.

Any suggestions what I should look for and change?

Thank you.

iEvgeny commented 1 year ago

Hi! First, try adding the -rtsp_transport tcp option to the AVFormat options field for this RTSP stream. Also you can use ffplay as reference instead of VLC. Because CCTV Viewer is based on ffmpeg and this utility has extensive diagnostic output to the console.

dcung commented 1 year ago

Adding rtsp_transport tcp to cctv-viewer option made no difference.

I am able to display the stream with

ffplay -rtsp_transport tcp rtsp://user:password@x.x.x.x:554/ch1/1 -x 640 -y 480

Edit: It turned out, when I restarted cctv-viewer, then the option becomes effective. So, it seems to be okay now. I'm trying to find the config files now.

EDIT: I found it. Thank you for your help and the software 👍 .

iEvgeny commented 1 year ago

For others who are looking for information on the configuration file location for a Snap package: ~/snap/cctv-viewer/current/.config/CCTV Viewer/CCTV Viewer.conf