Page 1 of 1

Unable to open input rtsp

Posted: Mon Oct 24, 2022 4:46 am
by Statler
Hello,

I have just installed ZoneMinder 1.34.23 on a Raspberry Pi IV with Bullseye. I have tried to add one or several RTSP streams, confirmed that the stream and streaming link work in VLC, tried with and without user/password, changed from TCP to UDP and back, checked the resolution setting is correct 1280x960 but it is not capturing.

Code: Select all

2022-10-24 06:37:04.428356 zmc_m4[10868].ERR-zm_ffmpeg_camera.cpp/569 [Unable to open codec for video stream from rtsp://192.168.0.15:554/11]
Any ideas can be done? Thanks in advance.

Re: Unable to open input rtsp

Posted: Mon Oct 24, 2022 9:02 am
by dougmccrary
[Unable to open codec for video stream from rtsp://192.168.0.15:554/11]
Is ffmpeg installed? Enabled in options?

Re: Unable to open input rtsp

Posted: Mon Oct 24, 2022 1:48 pm
by Statler
Thanks for the fast reply. I have checked:

Code: Select all

 sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ffmpeg is already the newest version (7:4.3.4-0+deb11u1+rpt3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
so it was installed but had nothing marked in "options - images" but have now checked "OPT_FFMPEG" and added in PATH_FFMPEG "/usr/share/ffmpeg".

unfortunately, there is still no image available

Re: Unable to open input rtsp

Posted: Mon Oct 24, 2022 3:05 pm
by Magic919
/usr/bin/ffmpeg is a more common path. Have you checked where it is?

Re: Unable to open input rtsp

Posted: Tue Oct 25, 2022 2:51 am
by Statler
Magic919 wrote: Mon Oct 24, 2022 3:05 pm /usr/bin/ffmpeg is a more common path. Have you checked where it is?
Thanks for the hint but I did make a search before and got this reply:

Code: Select all

sudo find / -type d -name "ffmpeg*"
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/share/ffmpeg
/usr/share/doc/ffmpeg
It is still not running and I am out of options. Seriously considering going back to Motioneye if I can't get this to work. Any further ideas?

Re: Unable to open input rtsp

Posted: Tue Oct 25, 2022 4:04 pm
by iconnor
ffmpeg will be at /usr/bin/ffmpeg. If it isn't there, do apt-get install --reinstall ffmpeg.

Further, forget 1.34, go to zmrepo.zoneminder.com and follow the directions to get 1.36.31.

Next, the ffmpeg binary isn't used for capture. So that's a red herring.

Re: Unable to open input rtsp

Posted: Tue Oct 25, 2022 5:18 pm
by Statler
iconnor wrote: Tue Oct 25, 2022 4:04 pm ffmpeg will be at /usr/bin/ffmpeg. If it isn't there, do apt-get install --reinstall ffmpeg.
I did that. It was still in the /usr/share/ directory after that.
iconnor wrote: Tue Oct 25, 2022 4:04 pmFurther, forget 1.34, go to zmrepo.zoneminder.com and follow the directions to get 1.36.31.
I have found a few instructions for a fresh install but no way to upgrade to 1.36.31.
iconnor wrote: Tue Oct 25, 2022 4:04 pmNext, the ffmpeg binary isn't used for capture. So that's a red herring.
Thanks for your well-intented post to help me. But I am afraid that my skills won't be enough to pull this through.

Re: Unable to open input rtsp

Posted: Tue Oct 25, 2022 6:37 pm
by iconnor
/usr/share/ffmpeg is a directory, containing things pertaining to ffmpeg, but not the executable file itself.

The instructions are at https://zmrepo.zoneminder.com

There is always paid support, we are happy to do a remote session and guide you through it.

Re: Unable to open input rtsp

Posted: Wed Oct 26, 2022 4:10 am
by Statler
iconnor wrote: Tue Oct 25, 2022 6:37 pm /usr/share/ffmpeg is a directory, containing things pertaining to ffmpeg, but not the executable file itself.
I have no idea. I thought I had found ffmpeg
iconnor wrote: Tue Oct 25, 2022 6:37 pm There is always paid support, we are happy to do a remote session and guide you through it.
I will sure get back to your offer if I re-install zoneminder. For right now, I have setup Raspbian from scratch and trying to get Motioneye running again.