How to disable hwaccel from CLI

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
mhamel
Posts: 17
Joined: Thu Aug 10, 2006 8:37 am
Location: New Zealand

How to disable hwaccel from CLI

Post by mhamel »

Hi,
I have a ZoneMinder install running on an Ubuntu 22.04.5 LTS on a NUC5i3 with DecoderHwAccelName set to 'vaapi' in the settings. Recently I updated and now the ZoneMinder web interface is unavailable. If I check 'systemctl status zoneminder' I see:

Nov 18 10:10:17 fluffy systemd[1]: Started ZoneMinder CCTV recording and surveillance system.
Nov 18 10:10:18 fluffy zmc_m4[16548]: ERR [zmc_m4] [Failed to create hwaccel device. Generic error in an exte>
Nov 18 10:10:19 fluffy zmtelemetry[16573]: WAR [Telemetry server returned HTTP POST error code: 301]

I presume I need to turn off hwaccel, how can I do this without the Web interface?

Thanks,
Michael
User avatar
burger
Posts: 442
Joined: Mon May 11, 2020 4:32 pm

Re: How to disable hwaccel from CLI

Post by burger »

I don't think your problem is related to the hw device. There have been some errors with the web interface and 1.36.35 that relate to a missing letter in the source files. Search the 1.36 forum for more details.

But in case you want to do what you asked, the command would be:

Code: Select all

mysql -u root  zm -e "update Monitors set DecoderHWAccelName = 'NULL' where DecoderHWAccelName = 'vaapi';"
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
mhamel
Posts: 17
Joined: Thu Aug 10, 2006 8:37 am
Location: New Zealand

Re: How to disable hwaccel from CLI

Post by mhamel »

You are right; switching off hwaccel has no useful effect, still no web interface. I am running 1.36.35.

Searching the forum for "missing letter/character" doesn't turn up anything obviously relevant, can you suggest other keywords?
User avatar
burger
Posts: 442
Joined: Mon May 11, 2020 4:32 pm

Re: How to disable hwaccel from CLI

Post by burger »

In this case, just looking at recent posts in the forum is the right answer, not searching for a keyword. This comes right up:
viewtopic.php?t=33691
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Post Reply