Page 1 of 1
ZM ubuntu18 install patch and "Focal" question
Posted: Thu Dec 02, 2021 8:07 am
by rcnn
Deployed docker container with ZM.
Images:
Code: Select all
- mariadb
- zoneminderhq/zoneminder:latest-ubuntu18.04
Issues:
1. Had to take sql files from `/usr/share/zoneminder/db/` and make docker install em via `/docker-entrypoint-initdb.d/`
2. Famous fonts issue. Downloaded `/usr/share/zoneminder/www/skins/classic/css/base/skin.css` patched by replacing: `../fonts/` to `/zm/fonts/` and mounted via volumes to location mentioned above.
3. Granted dri access via volumes `/dev/dri:/drv/dri` mount. Permissions should be `ugo+rw`.
Questions
1. I found
Focal on
ZM build repository, which should mean that pretty much nothing stands between making latest-ubuntu20.04 image.
Can we have it
pleeeease in automated build? 20.04 was quite a bit faster than previous releases and even FreeBSD builds, so I guess ZM would benefit from it greatly.
2. Is there a way to pass `-hide_banner` flag to ffmpeg so it would not put all generic ffmpeg information to logs?
Thank you.
Re: ZM ubuntu18 install patch and "Focal" question
Posted: Thu Dec 02, 2021 1:02 pm
by rcnn
Ok, I made
Dockerfile for 20.04 with font patch.
It assembles ZM 1.37 on Ubuntu Focal.
From what I can see it's working a bit faster (and by the way, docker version of ZM works faster in general.
There are some notices:
1. I feel like 1.36 has better picture quality over 1.37. Latter version feels like it has some AI filters applied like on modern smartphones, with some cartoonish look.
2. 1.37 refuses to play 1.36 footage. Is it normal?
3. Will there be a button to clear log? I remember there was one.
Re: ZM ubuntu18 install patch and "Focal" question
Posted: Thu Dec 02, 2021 8:49 pm
by dougmccrary
2. Can it even find said footage?
3. You’re right, no button. Use the filter box and options log log database limit.
Re: ZM ubuntu18 install patch and "Focal" question
Posted: Fri Dec 03, 2021 5:58 pm
by rcnn
Yep, it finds footage, it opens player window but "The video could not be loaded, either because the server or network failed of because the format is not supported".
Is there a remedy for ffmpeg overhead written to logs?
Useful output is marked in bold, everything else is trimmed with -hide_banner, it's just where to put this option?
Can't create frame images from video for this event 10-video.mp4 Command was: /usr/bin/ffmpeg -ss 0.00 -i /var/cache/zoneminder/events/1/2021-11-30/10/10-video.mp4 -frames:v 1 /var/cache/zoneminder/events/1/2021-11-30/10/snapshot.jpg 2>&1 Output was: ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100/var/cache/zoneminder/events/1/2021-11-30/10/10-video.mp4: No such file or directory
Re: ZM ubuntu18 install patch and "Focal" question
Posted: Sat Dec 04, 2021 1:45 am
by dougmccrary
because the server or network failed
I've seen that when the db said it was there, but in fact it was not. So that's something to check.
And when it was there, in some cases changing the playback from auto to some other selection got it to work.
Can't help with the rest - don't think I've seen it.