Zoneminder and Odroid XU4 - needed a working setup! -> the last is 20.04 and ZM 1.36.19
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Zoneminder and Odroid XU4 - needed a working setup! -> the last is 20.04 and ZM 1.36.19
Any experience about Zoneminder install on Odroid XU4?
I tried 18.04 (4.14)/16.04 (4.14) provided by the hardkernel wiki and the last 18.04 Armbian for Odroid provided by a third part site. Many ZM versions. Finding issues with FFmpeg or MJpeg management. In any cases not possible to view the stream, in other cases not possible to view recorded images. No way to get a full working setup with ZM versions higher than 1.29 (i.e: 1.33 or 1.32 or 1.30.4)
The only working setup I found is ZM 1.29 and 16.04 (4.14 kernel) Ubuntu image provided by the hardkernel wiki.
I will appreciate if an XU4 owner can share his experience on ZM. I hope there will be.
thanks
Note: I'm already running Ubuntu 14.04 and ZM 1.30.4 on my old Radxa Pro. Odroid XU4 is more powerful and fast, but I'm finding issue to find a full working setup for ZM >=1.30.4
I tried 18.04 (4.14)/16.04 (4.14) provided by the hardkernel wiki and the last 18.04 Armbian for Odroid provided by a third part site. Many ZM versions. Finding issues with FFmpeg or MJpeg management. In any cases not possible to view the stream, in other cases not possible to view recorded images. No way to get a full working setup with ZM versions higher than 1.29 (i.e: 1.33 or 1.32 or 1.30.4)
The only working setup I found is ZM 1.29 and 16.04 (4.14 kernel) Ubuntu image provided by the hardkernel wiki.
I will appreciate if an XU4 owner can share his experience on ZM. I hope there will be.
thanks
Note: I'm already running Ubuntu 14.04 and ZM 1.30.4 on my old Radxa Pro. Odroid XU4 is more powerful and fast, but I'm finding issue to find a full working setup for ZM >=1.30.4
Last edited by pat2 on Tue Jun 14, 2022 9:08 pm, edited 4 times in total.
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
The problem is ffmpeg from HardKernel tries to use hardware decoding and it might fail. I think you can force install ffmpeg from ubuntu repos and mark hold it. Not sure what version that is though (
sudo apt-get install ffmpeg=x.y.z
)-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
hi Mad, thanks.
I thought something similar related to Odroid (first the image provided by Hardkernel,then something related to Odroid HW) since with the Armbian image i had less issue (but I have).
On ZM log I'm receiving error messages about difficulties of ZM when to viewing ffmpeg streams and using Hardkernel image:
Or with the Armbian image solved the above issue, but when i try too review recorded mjpeg stream (probably to review recorded stream ZM> 1.29 uses ffmpeg).
That's the reason, after some unsuccessful posts in zoneminder forum, I wrote in Odroid forum!
hoping that anyone before me faced the issue and solved.
Zoneminder is the most important surveillance tool in Linux environment. And Odroid XU4 is perfect in terms of power (cpu usage passed from 5 (Radxa) to 1(Odorid XU4) in ZM console). ZM became more responsive with Odroid !I have 7 (640x480) cameras.
And so, someone before me in this forum should have been experienced with ZM.
The strange is ZM 1.29 and Hardkernel 16.04 Ububntu image are fully working. Probably ZM 1.29 doesn't require HW decoding.
I already tried to reinstall but probably I used the Harkernel repo. I will do other tempatives. And let you know.
I thought something similar related to Odroid (first the image provided by Hardkernel,then something related to Odroid HW) since with the Armbian image i had less issue (but I have).
On ZM log I'm receiving error messages about difficulties of ZM when to viewing ffmpeg streams and using Hardkernel image:
Code: Select all
Unable to open codec for video stream from rtsp://admin:admin@192.168.1.200:554/1/h264minor
That's the reason, after some unsuccessful posts in zoneminder forum, I wrote in Odroid forum!

Zoneminder is the most important surveillance tool in Linux environment. And Odroid XU4 is perfect in terms of power (cpu usage passed from 5 (Radxa) to 1(Odorid XU4) in ZM console). ZM became more responsive with Odroid !I have 7 (640x480) cameras.
And so, someone before me in this forum should have been experienced with ZM.
The strange is ZM 1.29 and Hardkernel 16.04 Ububntu image are fully working. Probably ZM 1.29 doesn't require HW decoding.
I already tried to reinstall but probably I used the Harkernel repo. I will do other tempatives. And let you know.
Last edited by pat2 on Sun Feb 17, 2019 12:37 am, edited 2 times in total.
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
You can try Meveric's OGST image - it comes with an older kernel and an older ffmpeg I think and should not support hardware decoding in ffmpeg.
You can also try to run ffplay -i rtsp://... and see what it complains about.
There's also a zoneminder alternative you can try - can't remember the name, something japanese sounding - was featured in odroid magazine.
You can also try to run ffplay -i rtsp://... and see what it complains about.
There's also a zoneminder alternative you can try - can't remember the name, something japanese sounding - was featured in odroid magazine.
- odroid
- Site Admin
- Posts: 40545
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 3004 times
- Been thanked: 1668 times
- Contact:
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
thanks guys, for the insights about the Meveric image and Shinobi.
I will try Shinobi with hardkernel ubuntu images. And I will try ZM with Meveric image too.
Zoneminder is a strong tool: it exposes a web page (so accessible in LAN and in WAN too, through portforwarding and DDNS), with authentication and https protocol through which it is possible to see all cameras.
It's possible to record video on a NAS on motion detection (with a strong parameters flexibility to detect motion) and to move cameras.
There are no constraints on type of cameras. It's really a strong tool.
The issues are tool configuration difficulties (apache, mysql, php and zoneminder itself) and possible new releases regressions (due to not easy/changing configuration): since ZM free of charge and done by volunteers there could be bugs and not a valid support.
After weeks of trials I was able to get it fully working with my 7 cameras at home (ZM 1.30.4 with ubuntu 14.04 and Radxa Pro). And for charity in an hospital on an Ubuntu 18.04 running on a server and a lot of cameras.
Odroid XU4 is very powerful: with Odroid XU4 the ZM's CPU usage was reduced at 1/5 of the previous setup on Radxa. Odroid works at home. To be checked if possible to use Odroid in the hospital (i don't think, too many cameras).
Unfortunately with Odroid XU4 I'm having issues not related to Odroid, but related to the intregration/maturity of the tool on 16.04/18.04, ARM technology and ffmpeg. The only working setup I found is 16.04/ZM 1.29 (an old ZM version). And that's the reason I was curious to know if in the forum there is anyone experienced wtih Odroid and ZM and if able to run an higher ZM version (1.30.4 or greater) on Odroid XU4
thanks regards
I will try Shinobi with hardkernel ubuntu images. And I will try ZM with Meveric image too.
Zoneminder is a strong tool: it exposes a web page (so accessible in LAN and in WAN too, through portforwarding and DDNS), with authentication and https protocol through which it is possible to see all cameras.
It's possible to record video on a NAS on motion detection (with a strong parameters flexibility to detect motion) and to move cameras.
There are no constraints on type of cameras. It's really a strong tool.
The issues are tool configuration difficulties (apache, mysql, php and zoneminder itself) and possible new releases regressions (due to not easy/changing configuration): since ZM free of charge and done by volunteers there could be bugs and not a valid support.
After weeks of trials I was able to get it fully working with my 7 cameras at home (ZM 1.30.4 with ubuntu 14.04 and Radxa Pro). And for charity in an hospital on an Ubuntu 18.04 running on a server and a lot of cameras.
Odroid XU4 is very powerful: with Odroid XU4 the ZM's CPU usage was reduced at 1/5 of the previous setup on Radxa. Odroid works at home. To be checked if possible to use Odroid in the hospital (i don't think, too many cameras).
Unfortunately with Odroid XU4 I'm having issues not related to Odroid, but related to the intregration/maturity of the tool on 16.04/18.04, ARM technology and ffmpeg. The only working setup I found is 16.04/ZM 1.29 (an old ZM version). And that's the reason I was curious to know if in the forum there is anyone experienced wtih Odroid and ZM and if able to run an higher ZM version (1.30.4 or greater) on Odroid XU4

thanks regards
- odroid
- Site Admin
- Posts: 40545
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 3004 times
- Been thanked: 1668 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
I really hope someone will write an article with the latest ZM + XU4 for our Magazine. 

- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
I'd like to say "challenge accepted", since I've used both zone minder and ffmpeg before, but with so many ongoing personal projects... we'll have to see how I make more time 

-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
guys, thanks a lot. a ZM wiki on XU4 and ZM could be really helpful.
please Mad take in consideration that the most stable ZM release is 1.30.4. I read the ZM forum: there are many users claiming for issues on higher versions. Big changes have been made on ZM after 1.30.4 so that's the reason of not perfect stability of versions greater than 1.30.4.
To install use as reference documentation in the Zoneminder site https://zoneminder.readthedocs.io/en/la ... buntu.html# (they recently added instruction for ubuntu 18.04 too, the only difference should be the different php version to be modified for timezone (7.2 for 18.04, 7.0 for 16.04), not so important).
To install LAMP they are suggesting to use tasksel. You could also install manually php, mysql and and apache.
For the ZM package you could use the iconnor repo or use the harder way (= build from source): it's not so hard, it is only longer...
I'm not a big expert but If you want I could support you for testing.
In my next post I will write all the set of instructions I'm using to install ZM 1.29 on Hardkernel 16.04 image. It's fully working!!
The issues are on greater ZM versions: the install activity goes well, the only issue is on ffmpeg streams cameras.
thanks regards
please Mad take in consideration that the most stable ZM release is 1.30.4. I read the ZM forum: there are many users claiming for issues on higher versions. Big changes have been made on ZM after 1.30.4 so that's the reason of not perfect stability of versions greater than 1.30.4.
To install use as reference documentation in the Zoneminder site https://zoneminder.readthedocs.io/en/la ... buntu.html# (they recently added instruction for ubuntu 18.04 too, the only difference should be the different php version to be modified for timezone (7.2 for 18.04, 7.0 for 16.04), not so important).
To install LAMP they are suggesting to use tasksel. You could also install manually php, mysql and and apache.
For the ZM package you could use the iconnor repo or use the harder way (= build from source): it's not so hard, it is only longer...
I'm not a big expert but If you want I could support you for testing.
In my next post I will write all the set of instructions I'm using to install ZM 1.29 on Hardkernel 16.04 image. It's fully working!!
The issues are on greater ZM versions: the install activity goes well, the only issue is on ffmpeg streams cameras.
thanks regards
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Do you have any public webcam streams that don't work and can be tested?
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
on XU4, ZM 1.29 and 16.04 hardkernel image all is working fine.
I could prepare another enviroment (I have 2 Odroid XU4 boards) with 18.04 image and and ZM 1.32 in which ffmpeg cameras are not working. I will expose the board in WAN so you could reach the board and the cameras.
The issue is that I have to come back at home: currently I'm outside for work for 2 weeks...
I could prepare another enviroment (I have 2 Odroid XU4 boards) with 18.04 image and and ZM 1.32 in which ffmpeg cameras are not working. I will expose the board in WAN so you could reach the board and the cameras.
The issue is that I have to come back at home: currently I'm outside for work for 2 weeks...
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Install 16.04 Image (ZM 1.29 available on 16.04 repository) : https://wiki.odroid.com/odroid-xu4/os_i ... 4/20171213
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt autoremove
install LAMP
=================================================================================================================================
sudo apt install apache2
sudo apt install mysql-server
sudo apt install php libapache2-mod-php php-mysql
=================================================================================================================================
install ZM 1.29 (no need to install iconnor repo since ZM 1.29 already available on Ubuntu 16.04 (xenial) repo)
=================================================================================================================================
sudo -i
mandatory for ZM 1.29 (not needed for ZM >=1.32 )
=================================================================================================================================
rm /etc/mysql/my.cnf (this removes the current symbolic link)
cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf
nano /etc/mysql/my.cnf
in the [mysqld] section add the following
sql_mode = NO_ENGINE_SUBSTITUTION
systemctl restart mysql
=================================================================================================================================
apt-get install zoneminder
mandatory for ZM 1.29 (not needed for ZM >=1.32))
=================================================================================================================================
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant lock tables,alter,drop,select,insert,update,delete,create,index,alter routine,create routine, trigger,execute on zm.* to 'zmuser'@localhost identified by 'zmpass';"
=================================================================================================================================
chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
chown -R www-data:www-data /usr/share/zoneminder/
a2enmod cgi
a2enmod rewrite
a2enconf zoneminder
a2enmod expires
a2enmod headers
systemctl enable zoneminder
systemctl start zoneminder
nano /etc/php/7.0/apache2/php.ini
insert
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York (depending on your timezone)
systemctl reload apache2
you could find ZM web page on http://IP_of_the_board/zm and add cameras (all types working: ffmpeg and mjpeg cameras connected via wifi or via ethernet cable or through USB)
===================================================================================
The same procedure is valid for Ubuntu 18.04/ZM 1.32 avoiding not needed commands for ZM 1.32.
In this case before installing ZM you have to add the iconnor repo:
add-apt-repository ppa:iconnor/zoneminder-1.32
you will be able to install a working ZM except for ffmpeg cameras.
In my next post I could explain how to go in https mode (through letsencrypt or self made certificates), how to expose in WAN (through portforwarding and DDNS on router), how to force authentication (configuration in zoneminder), how to add a NAS or external network HD and record ZM events (through fstab and bind statement)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt autoremove
install LAMP
=================================================================================================================================
sudo apt install apache2
sudo apt install mysql-server
sudo apt install php libapache2-mod-php php-mysql
=================================================================================================================================
install ZM 1.29 (no need to install iconnor repo since ZM 1.29 already available on Ubuntu 16.04 (xenial) repo)
=================================================================================================================================
sudo -i
mandatory for ZM 1.29 (not needed for ZM >=1.32 )
=================================================================================================================================
rm /etc/mysql/my.cnf (this removes the current symbolic link)
cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf
nano /etc/mysql/my.cnf
in the [mysqld] section add the following
sql_mode = NO_ENGINE_SUBSTITUTION
systemctl restart mysql
=================================================================================================================================
apt-get install zoneminder
mandatory for ZM 1.29 (not needed for ZM >=1.32))
=================================================================================================================================
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p -e "grant lock tables,alter,drop,select,insert,update,delete,create,index,alter routine,create routine, trigger,execute on zm.* to 'zmuser'@localhost identified by 'zmpass';"
=================================================================================================================================
chmod 740 /etc/zm/zm.conf
chown root:www-data /etc/zm/zm.conf
chown -R www-data:www-data /usr/share/zoneminder/
a2enmod cgi
a2enmod rewrite
a2enconf zoneminder
a2enmod expires
a2enmod headers
systemctl enable zoneminder
systemctl start zoneminder
nano /etc/php/7.0/apache2/php.ini
insert
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York (depending on your timezone)
systemctl reload apache2
you could find ZM web page on http://IP_of_the_board/zm and add cameras (all types working: ffmpeg and mjpeg cameras connected via wifi or via ethernet cable or through USB)
===================================================================================
The same procedure is valid for Ubuntu 18.04/ZM 1.32 avoiding not needed commands for ZM 1.32.
In this case before installing ZM you have to add the iconnor repo:
add-apt-repository ppa:iconnor/zoneminder-1.32
you will be able to install a working ZM except for ffmpeg cameras.
In my next post I could explain how to go in https mode (through letsencrypt or self made certificates), how to expose in WAN (through portforwarding and DDNS on router), how to force authentication (configuration in zoneminder), how to add a NAS or external network HD and record ZM events (through fstab and bind statement)
Last edited by pat2 on Thu Feb 14, 2019 6:18 am, edited 7 times in total.
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
That's half an article already. 
I'll try to replicate your setup and see what the problem is.

I'll try to replicate your setup and see what the problem is.
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
thanks, Mad. 
For 16.04/ZM 1.29 everything is working fine: ffmpeg and mjpeg streaming, recording and record viewing.
There are issues with 18.04/1.32 (or greater) and odroid XU4 . in particular to view ffmpeg stream.
On my pc 18.04 VMware machine/ZM 1.32 (or greater) all works fine, ffmpeg too!!
thanks regards

For 16.04/ZM 1.29 everything is working fine: ffmpeg and mjpeg streaming, recording and record viewing.
There are issues with 18.04/1.32 (or greater) and odroid XU4 . in particular to view ffmpeg stream.
On my pc 18.04 VMware machine/ZM 1.32 (or greater) all works fine, ffmpeg too!!
thanks regards
- odroid
- Site Admin
- Posts: 40545
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 3004 times
- Been thanked: 1668 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
@mad_ady will find a root cause probably.
But I guess the pre-installed MFC hardware accelerated ffmpeg package in Ubuntu 18.04 image might cause the problem.
But I guess the pre-installed MFC hardware accelerated ffmpeg package in Ubuntu 18.04 image might cause the problem.
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
I managed to replicate your setup (only difference was that I needed to edit php.ini for php7.2, not 7.0).
I added a MJPEG camera (from mjpeg-streamer) that was configured as below and works correctly. Below are my settings. Can you give me yours?
https://imgur.com/a/9CKj31b
I can try with a RTSP/H264 camera as well and will post back some results.
Update:
RTSP fails to get the resource, needs more digging in the configuration:
I added a MJPEG camera (from mjpeg-streamer) that was configured as below and works correctly. Below are my settings. Can you give me yours?
https://imgur.com/a/9CKj31b
I can try with a RTSP/H264 camera as well and will post back some results.
Update:
RTSP fails to get the resource, needs more digging in the configuration:
Code: Select all
GET /camera-h264-stream.sdp HTTP/1.0
X-SessionCookie: 873177885
Accept: application/x-rtsp-tunnelled
HTTP/1.0 200 OK
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/x-rtsp-tunnelled
RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY
RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://192.168.1.52:554/camera-h264-stream.sdp/
Content-Type: application/sdp
Content-Length: 307
v=0
o=- 1 1 IN IP4 127.0.0.1
s=IPCam
c=IN IP4 0.0.0.0
t=0 0
a=type:broadcast
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=42001e;packetization-mode=1;sprop-parameter-sets=Z0IAHtoCgPRA,aM48gA==
a=control:track0
m=audio 0 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=control:track1
RTSP/1.0 404 Not Found
CSeq: 3
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Hi Mad,
you are right. For 18.04, php is 7.2. (the instruction I wrote are for 16.04, in 16.04 php is 7.0).
Also MJPEG camera is working for me, Able to see stream, record and to see what recorded.
For FFMpeg camera ( I have 2 types, both not working) you should have issue to see the stream.
My next post i will provide printscreen of all my camera configuration (mjpeg and ffmpeg).
thanks
you are right. For 18.04, php is 7.2. (the instruction I wrote are for 16.04, in 16.04 php is 7.0).
Also MJPEG camera is working for me, Able to see stream, record and to see what recorded.
For FFMpeg camera ( I have 2 types, both not working) you should have issue to see the stream.
My next post i will provide printscreen of all my camera configuration (mjpeg and ffmpeg).
thanks
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
The mjpeg camera was configured as ffmpeg. I'll try to get it working with the rtsp one, but so far it was configured as "remote" and it had issues registering to the stream.
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
type 1 FFMPEG camera
- Attachments
-
- FFMPEG2.PNG (19.55 KiB) Viewed 15362 times
-
- FFMPEG1.PNG (23.17 KiB) Viewed 15362 times
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
type 2 FFMPEG camera
- Attachments
-
- Cattura2.PNG (19.23 KiB) Viewed 15363 times
-
- Cattura1.PNG (22.6 KiB) Viewed 15363 times
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
type MJPEG camera
- Attachments
-
- MJPEG2.PNG (21.44 KiB) Viewed 15361 times
-
- MJPEG1.PNG (23.18 KiB) Viewed 15361 times
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
all those configurationa are working on Radxa, 14.04, ZM 1.30.4 and on Odroid XU4, 16.04, ZM 1.29.
FFMPEG not working on Odroid XU4, 18.04, ZM 1.32
FFMPEG not working on Odroid XU4, 18.04, ZM 1.32
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
The mjpeg camera configured as remote does work, right?
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
correct!
the issue is on FFMPEG cameras: even if well configured, not working on 18.04 - ZM1.32 on Odroid.
the issue is on FFMPEG cameras: even if well configured, not working on 18.04 - ZM1.32 on Odroid.
- memeka
- Posts: 4420
- Joined: Mon May 20, 2013 10:22 am
- languages_spoken: english
- ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART - Has thanked: 2 times
- Been thanked: 61 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
You should try installing the default ffmpeg packages from Ubuntu, not the ones from HK repository
Images: U2/U3 Trusty Dev Center | XU Trusty Dev Center | XU4 Hipster Stretchy Pants
Information: U2/U3 Dashboard | XU Dashboard
Say thank you with a beer
Information: U2/U3 Dashboard | XU Dashboard
Say thank you with a beer
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
I did. I un-installed the previous ffmpeg (it was from odroid repo since the reinstall was from odroid repo).
The I canceled the odroid repo and updated the repo list.
Then I installed the new one from ubuntu repo. I checked, during install, I was installing from Ubuntu repo.
Then installed ZM. For the last ZM version, ZM still continues to do not work for FFMPEG stream...
The I canceled the odroid repo and updated the repo list.
Then I installed the new one from ubuntu repo. I checked, during install, I was installing from Ubuntu repo.
Then installed ZM. For the last ZM version, ZM still continues to do not work for FFMPEG stream...

-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Hi Mad,
did you have chanche to understand why on Hardkernel Ubuntu images ZM is not working for ffmpeg streams?
Probably I already told you: I tried Odroid XU4 with an Armbian 18.04 image, https://www.armbian.com/odroid-xu4/ , the desktop one.
FFMpeg streams are working with ZM. There are 2 little issues for ZM on Armbian probably due to little bugs in ZM, but ffmpeg streams are working fine in ZM.
So the issue is something specific to HK images (16.04 and 18.04) and ZM higher versions (>1.29).
thanks regards
did you have chanche to understand why on Hardkernel Ubuntu images ZM is not working for ffmpeg streams?
Probably I already told you: I tried Odroid XU4 with an Armbian 18.04 image, https://www.armbian.com/odroid-xu4/ , the desktop one.
FFMpeg streams are working with ZM. There are 2 little issues for ZM on Armbian probably due to little bugs in ZM, but ffmpeg streams are working fine in ZM.
So the issue is something specific to HK images (16.04 and 18.04) and ZM higher versions (>1.29).
thanks regards
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
No, sorry - I didn't have time to play with it yet.
One thing is ZoneMinder isn't using the ffmpeg binary directly and is probably using the libraries.
One thing is ZoneMinder isn't using the ffmpeg binary directly and is probably using the libraries.
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
ok, only my curiosity. if you, odroid expert and ZM user, not able to understand, definitively not possible for me.
ZM is using ffmpeg binary: there is in Option/Images table a field named PATH_FFMPEG telling ZM where the ffmpeg binary is (normally /usr/bin/ffmpeg).
I think the issue could be related to other libraries used by ffmpeg.
Anyway thanks for everything.
Michele
ZM is using ffmpeg binary: there is in Option/Images table a field named PATH_FFMPEG telling ZM where the ffmpeg binary is (normally /usr/bin/ffmpeg).
I think the issue could be related to other libraries used by ffmpeg.
Anyway thanks for everything.

Michele
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
I'm not actually a ZM user. I've played with it once though.
Hardly an expert.
Can you try on a working system to run
I haven't given up yet, just busy

Can you try on a working system to run
ps -ef | grep ffmpeg
while streaming a ffmpeg stream? For me I got nothing, but it may be due to errors causing ffmpeg to quit.I haven't given up yet, just busy

-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
hi Mad,
I thought differently. Sure you were a ZM user!! Excuse my mistake! In this case pls take in consideration that ZM is a difficult tool to configure and make it working. Pls, don't spend too much tine...
Anyway I tried on the 4 setup I have ZM.
The results are:
1 - on Radxa Rock/Ubuntu 14.04/ZM 1.30.4:
rock 16801 16790 0 08:02 pts/1 00:00:00 grep --color=auto ffmpeg
rock 16871 16790 0 08:03 pts/1 00:00:00 grep --color=auto ffmpeg (while ZM viewing FFMPEG stream)
2 - on Odroid XU4 n.1 / Ubuntu 18.04 HK image/ZM 1.32.3: with this setup FFMPEG not working on ZM!
odroid 29057 29047 0 07:11 pts/0 00:00:00 grep --color=auto ffmpeg
3 - on Odroid XU4 n.2 / Ubuntu 18.04 Armbian image/ZM 1.32.3:
odroid 7809 7730 0 07:09 pts/0 00:00:00 grep --color=auto ffmpeg
odroid 7819 7730 0 07:10 pts/0 00:00:00 grep --color=auto ffmpeg (while ZM viewing FFMPEG stream)
4 - on my PC Intel core 5 / Ubuntu 18.04 on VMware/ZM 1.32.3 :
michele 3141 2262 0 23:24 pts/0 00:00:00 grep --color=auto ffmpeg
michele 3859 2262 0 23:26 pts/0 00:00:00 grep --color=auto ffmpeg (while ZM viewing FFMPEG stream)
I thought differently. Sure you were a ZM user!! Excuse my mistake! In this case pls take in consideration that ZM is a difficult tool to configure and make it working. Pls, don't spend too much tine...

Anyway I tried
Code: Select all
ps -ef | grep ffmpeg
The results are:
1 - on Radxa Rock/Ubuntu 14.04/ZM 1.30.4:
rock 16801 16790 0 08:02 pts/1 00:00:00 grep --color=auto ffmpeg
rock 16871 16790 0 08:03 pts/1 00:00:00 grep --color=auto ffmpeg (while ZM viewing FFMPEG stream)
2 - on Odroid XU4 n.1 / Ubuntu 18.04 HK image/ZM 1.32.3: with this setup FFMPEG not working on ZM!
odroid 29057 29047 0 07:11 pts/0 00:00:00 grep --color=auto ffmpeg
3 - on Odroid XU4 n.2 / Ubuntu 18.04 Armbian image/ZM 1.32.3:
odroid 7809 7730 0 07:09 pts/0 00:00:00 grep --color=auto ffmpeg
odroid 7819 7730 0 07:10 pts/0 00:00:00 grep --color=auto ffmpeg (while ZM viewing FFMPEG stream)
4 - on my PC Intel core 5 / Ubuntu 18.04 on VMware/ZM 1.32.3 :
michele 3141 2262 0 23:24 pts/0 00:00:00 grep --color=auto ffmpeg
michele 3859 2262 0 23:26 pts/0 00:00:00 grep --color=auto ffmpeg (while ZM viewing FFMPEG stream)
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Ok, so no ffmpeg process... I'll try some things hopefully today...
Edit: Sorry, no time today
Edit: Sorry, no time today

- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Ok, so I tried to install the standard ffmpeg package from the ubuntu repo, but it still has hardware accelerated decoding:
When I try to play back the camera I get decoding errors:
I can force the decoder to be h264 instead of h264_v4l2m2m and it works from the command line:
I've added Option -> Images -> FFMPEG_INPUT_OPTIONS = -vcodec h264 and restarted zoneminder, but I still get errors:
Can you try the same on your end? You shouldn't need to downgrade ffmpeg.
Code: Select all
root@odroid:~# apt-cache madison ffmpeg
ffmpeg | 8:3.4.2-2ubuntu4 | http://deb.odroid.in/5422-s bionic/main armhf Packages
ffmpeg | 7:3.4.4-0ubuntu0.18.04.1 | http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe armhf Packages
ffmpeg | 7:3.4.4-0ubuntu0.18.04.1 | http://ports.ubuntu.com/ubuntu-ports bionic-security/universe armhf Packages
ffmpeg | 7:3.4.2-2 | http://ports.ubuntu.com/ubuntu-ports bionic/universe armhf Packages
ffmpeg | 7:3.4.2-2 | http://ports.ubuntu.com/ubuntu-ports bionic/universe Sources
ffmpeg | 7:3.4.4-0ubuntu0.18.04.1 | http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe Sources
ffmpeg | 7:3.4.4-0ubuntu0.18.04.1 | http://ports.ubuntu.com/ubuntu-ports bionic-security/universe Sources
root@odroid:~# apt-get install ffmpeg=7:3.4.4-0ubuntu0.18.04.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
ffmpeg-doc
The following packages will be DOWNGRADED:
ffmpeg
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 10 not upgraded.
Need to get 1574 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe armhf ffmpeg armhf 7:3.4.4-0ubuntu0.18.04.1 [1574 kB]
Fetched 1574 kB in 1s (3034 kB/s)
dpkg: warning: downgrading ffmpeg from 8:3.4.2-2ubuntu4 to 7:3.4.4-0ubuntu0.18.04.1
(Reading database ... 169226 files and directories currently installed.)
Preparing to unpack .../ffmpeg_7%3a3.4.4-0ubuntu0.18.04.1_armhf.deb ...
Unpacking ffmpeg (7:3.4.4-0ubuntu0.18.04.1) over (8:3.4.2-2ubuntu4) ...
Setting up ffmpeg (7:3.4.4-0ubuntu0.18.04.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Code: Select all
root@odroid:~# ffmpeg -i rtsp://192.168.1.52/camera-h264-stream.sdp test.mp4
...
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://192.168.1.52/camera-h264-stream.sdp':
Metadata:
title : IPCam
Duration: N/A, start: 0.015625, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 640x480, 15.83 tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
[h264_v4l2m2m @ 0x537a00] driver 'exynos-gsc' on card 'exynos-gsc gscaler'
Last message repeated 1 times
[h264_v4l2m2m @ 0x537a00] driver 's5p-mfc' on card 's5p-mfc-enc'
[h264_v4l2m2m @ 0x537a00] driver 's5p-mfc' on card 's5p-mfc-dec'
[h264_v4l2m2m @ 0x537a00] Using device /dev/video10
[h264_v4l2m2m @ 0x537a00] driver 's5p-mfc' on card 's5p-mfc-dec'
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_alaw (native) -> aac (native))
Press [q] to stop, [?] for help
[aac @ 0x5c67f0] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
Error while decoding stream #0:0: Input/output error
Last message repeated 35 times
Error while decoding stream #0:0: Input/output error14:32:22.77 bitrate= -0.0kbits/s speed=N/A
Last message repeated 5 times
Error while decoding stream #0:0: Input/output error14:32:22.77 bitrate= -0.0kbits/s speed=N/A
Last message repeated 4 times
Error while decoding stream #0:0: Input/output error14:32:22.77 bitrate= -0.0kbits/s speed=N/A
Last message repeated 5 times
Code: Select all
root@odroid:~# ffmpeg -vcodec x264 -i rtsp://192.168.1.52/camera-h264-stream.sdp test.mp4
...
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://192.168.1.52/camera-h264-stream.sdp':
Metadata:
title : IPCam
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 640x480, 15.83 tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
File 'test.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_alaw (native) -> aac (native))
Press [q] to stop, [?] for help
[aac @ 0x61b7c0] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
[libx264 @ 0x55a2b0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x55a2b0] profile High, level 2.2
[libx264 @ 0x55a2b0] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
Metadata:
title : IPCam
encoder : Lavf57.83.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 640x480, q=-1--1, 15.83 fps, 12160 tbn, 15.83 tbc
Metadata:
encoder : Lavc57.107.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 48 kb/s
Metadata:
encoder : Lavc57.107.100 aac
[aac @ 0x61b7c0] Queue input is backward in time0:00:02.68 bitrate= 0.0kbits/s dup=17 drop=0 speed=5.06x
[mp4 @ 0x533f10] Non-monotonous DTS in output stream 0:1; previous: 22528, current: 19747; changing to 22529. This may result in incorrect timestamps in the output file.
[mp4 @ 0x533f10] Non-monotonous DTS in output stream 0:1; previous: 22529, current: 20771; changing to 22530. This may result in incorrect timestamps in the output file.
[mp4 @ 0x533f10] Non-monotonous DTS in output stream 0:1; previous: 22530, current: 21795; changing to 22531. This may result in incorrect timestamps in the output file.
[rtsp @ 0x4e17b0] max delay reached. need to consume packet
[rtsp @ 0x4e17b0] RTP: missed 1 packets
[rtsp @ 0x4e17b0] max delay reached. need to consume packet
[rtsp @ 0x4e17b0] RTP: missed 160 packets
[h264 @ 0x5a0520] left block unavailable for requested intra mode
[h264 @ 0x5a0520] error while decoding MB 0 18
[h264 @ 0x5a0520] concealing 529 DC, 529 AC, 529 MV errors in P frame
frame= 203 fps= 22 q=-1.0 Lsize= 896kB time=00:00:13.60 bitrate= 539.5kbits/s dup=94 drop=3 speed=1.49x
Code: Select all
Feb 25 14:36:57 odroid zmc_m2[9099]: ERR [zmc_m2] [Unable to open codec for video stream from rtsp://192.168.1.52/camera-h264-stream.sdp]
Feb 25 14:36:57 odroid zmc_m2[9099]: ERR [zmc_m2] [Failed to prime capture of initial monitor]
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Tried something else - I made a wrapper for the ffmpeg binary and added some logging to syslog to capture what parameters it tries to call. Unfortunately, zoneminder doesn't call ffmpeg directly, and uses the libraries to do it's work, so it's harder to inject that option.
One more thing I can think of is removing the firmware files for the decoder/encoder so that (hopefully) the /dev/video* nodes won't be created anymore. Or disabling some nodes in the dtb (but I couldn't find the relevant ones)...
Update: nope, the /dev/video* nodes still get created, but ffmpeg can't use them and doesn't know how to fall back to software decoding:
One more thing I can think of is removing the firmware files for the decoder/encoder so that (hopefully) the /dev/video* nodes won't be created anymore. Or disabling some nodes in the dtb (but I couldn't find the relevant ones)...
Code: Select all
root@odroid:/usr/bin# mv /lib/firmware/s5p*.fw /root/
root@odroid:/usr/bin# reboot
Code: Select all
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://192.168.1.52/camera-h264-stream.sdp':
Metadata:
title : IPCam
Duration: N/A, start: 0.031250, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 640x480, 15.83 tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
[h264_v4l2m2m @ 0x6a60d0] driver 'exynos-gsc' on card 'exynos-gsc gscaler'
Last message repeated 1 times
[h264_v4l2m2m @ 0x6a60d0] driver 's5p-jpeg' on card 's5p-jpeg decoder'
[h264_v4l2m2m @ 0x6a60d0] driver 's5p-jpeg' on card 's5p-jpeg encoder'
[h264_v4l2m2m @ 0x6a60d0] driver 's5p-jpeg' on card 's5p-jpeg decoder'
[h264_v4l2m2m @ 0x6a60d0] driver 's5p-jpeg' on card 's5p-jpeg encoder'
[h264_v4l2m2m @ 0x6a60d0] Could not find a valid device
[h264_v4l2m2m @ 0x6a60d0] can't configure decoder
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_alaw (native) -> aac (native))
Error while opening decoder for input stream #0:0 : Invalid argument
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
That's ok, Mad.
Zoneminder is an hard beast!
And since the support is based on volunteers it cannot be asked them too much. I will use the 18.04 Armbian distro on which ZM 1.32 is working except 2 issues that according to me are bugs in zoneminder 1.32. If lucky they will fix.
Or the 16.09 Hardkernel distro with ZM 1.29 that is fully working.
For who interested the installation procedure is in a post I wrote previously.
Since I'm not an expert I asked you support.
Thanks a lot: you are very kind and in general the forum is an effective forum in which it could be found support.
Thanks Michele

Zoneminder is an hard beast!

And since the support is based on volunteers it cannot be asked them too much. I will use the 18.04 Armbian distro on which ZM 1.32 is working except 2 issues that according to me are bugs in zoneminder 1.32. If lucky they will fix.
Or the 16.09 Hardkernel distro with ZM 1.29 that is fully working.
For who interested the installation procedure is in a post I wrote previously.
Since I'm not an expert I asked you support.

Thanks a lot: you are very kind and in general the forum is an effective forum in which it could be found support.
Thanks Michele
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Hmm, a challenge is still a challenge...
I deleted the nodes in /dev/video* but ffmpeg still tries to use h264_v4l2m2m:
This wiki page confirms my suspicions that ffmpeg libraries are used: https://wiki.zoneminder.com/Ffmpeg
Now, why doesn't FFMPEG_INPUT_OPTIONS work? I had a look in the sources and the FFMPEG_OUTPUT_OPTIONS line is passed to "zmvideo.pl - ZoneMinder Video Creation Script", and in the generateEvent function which calls command-line ffmpeg to do a recording in case motion is detected.
So, it doesn't help this case.
Now - what options are left? It can't be fixed from zoneminder (unless you dig in the ffmpeg library code), so it should be fixable from ffmpeg. Sadly, this requires recompiling ffmpeg...
I'll give it a go and see how it goes...
I deleted the nodes in /dev/video* but ffmpeg still tries to use h264_v4l2m2m:
Code: Select all
Input #0, rtsp, from 'rtsp://192.168.1.52/camera-h264-stream.sdp':
Metadata:
title : IPCam
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 640x480, 15.83 tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
File 'test.mp4' already exists. Overwrite ? [y/N] y
[h264_v4l2m2m @ 0x5d6c70] Could not find a valid device
[h264_v4l2m2m @ 0x5d6c70] can't configure decoder
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_alaw (native) -> aac (native))
Error while opening decoder for input stream #0:0 : Invalid argument
Now, why doesn't FFMPEG_INPUT_OPTIONS work? I had a look in the sources and the FFMPEG_OUTPUT_OPTIONS line is passed to "zmvideo.pl - ZoneMinder Video Creation Script", and in the generateEvent function which calls command-line ffmpeg to do a recording in case motion is detected.
So, it doesn't help this case.
Now - what options are left? It can't be fixed from zoneminder (unless you dig in the ffmpeg library code), so it should be fixable from ffmpeg. Sadly, this requires recompiling ffmpeg...
I'll give it a go and see how it goes...
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Success!
I've recompiled ffmpeg with --disable-v4l2_m2m and installed it and now zoneminder works correctly (with software decoding/encoding).
TL;DR version:
You can get the precompiled debs from here: https://oph.mdrjr.net/madady/xu4/deb/ff ... t-v4l2m2m/. They are tested with Ubuntu 18.04
You can install them with:
Once you restart zoneminder, it should work.
The longer version:
You can compile your own ffmpeg build (you shouldn't trust some unsigned packages on the internet anyway):
You should polish up this guide and send it to @RobRoy and have it published in the magazine. Maybe add some tips for ZoneMinder usage as well/external clients. The interface is polished a bit better than the last time I saw it. 
I've recompiled ffmpeg with --disable-v4l2_m2m and installed it and now zoneminder works correctly (with software decoding/encoding).
TL;DR version:
You can get the precompiled debs from here: https://oph.mdrjr.net/madady/xu4/deb/ff ... t-v4l2m2m/. They are tested with Ubuntu 18.04
You can install them with:
Code: Select all
# dpkg -i ffmpeg_3.4.4-0ubuntu0.18.04.1_armhf.deb libavcodec57_3.4.4-0ubuntu0.18.04.1_armhf.deb libavdevice57_3.4.4-0ubuntu0.18.04.1_armhf.deb libavfilter6_3.4.4-0ubuntu0.18.04.1_armhf.deb libavformat57_3.4.4-0ubuntu0.18.04.1_armhf.deb libavresample3_3.4.4-0ubuntu0.18.04.1_armhf.deb libavutil55_3.4.4-0ubuntu0.18.04.1_armhf.deb libpostproc54_3.4.4-0ubuntu0.18.04.1_armhf.deb libswresample2_3.4.4-0ubuntu0.18.04.1_armhf.deb libswscale4_3.4.4-0ubuntu0.18.04.1_armhf.deb
# apt-mark hold ffmpeg-doc ffmpeg libavcodec-dev libavcodec-extra57 libavcodec-extra libavcodec57 libavdevice-dev libavdevice57 libavfilter-dev libavfilter-extra6 libavfilter-extra libavfilter6 libavformat-dev libavformat57 libavresample-dev libavresample3 libavutil-dev libavutil55 libpostproc-dev libpostproc54 libswresample-dev libswresample2 libswscale-dev libswscale4
The longer version:
You can compile your own ffmpeg build (you shouldn't trust some unsigned packages on the internet anyway):
Code: Select all
# sudo apt-get install build-essential fakeroot devscripts libchromaprint-dev librubberband-dev libjs-bootstrap
# sudo apt-get build-dep ffmpeg
# sudo apt-get source ffmpeg
# cd ffmpeg-3.4.4/
# vi debian/rules
### add --disable-v4l2_m2m under CONFIG_extra = section
# DEB_BUILD_OPTIONS="nocheck" debuild -b -uc -us
# cd ..
# dpkg -i ffmpeg_3.4.4-0ubuntu0.18.04.1_armhf.deb libavcodec57_3.4.4-0ubuntu0.18.04.1_armhf.deb libavdevice57_3.4.4-0ubuntu0.18.04.1_armhf.deb libavfilter6_3.4.4-0ubuntu0.18.04.1_armhf.deb libavformat57_3.4.4-0ubuntu0.18.04.1_armhf.deb libavresample3_3.4.4-0ubuntu0.18.04.1_armhf.deb libavutil55_3.4.4-0ubuntu0.18.04.1_armhf.deb libpostproc54_3.4.4-0ubuntu0.18.04.1_armhf.deb libswresample2_3.4.4-0ubuntu0.18.04.1_armhf.deb libswscale4_3.4.4-0ubuntu0.18.04.1_armhf.deb
# apt-mark hold ffmpeg-doc ffmpeg libavcodec-dev libavcodec-extra57 libavcodec-extra libavcodec57 libavdevice-dev libavdevice57 libavfilter-dev libavfilter-extra6 libavfilter-extra libavfilter6 libavformat-dev libavformat57 libavresample-dev libavresample3 libavutil-dev libavutil55 libpostproc-dev libpostproc54 libswresample-dev libswresample2 libswscale-dev libswscale4
# service zoneminder restart

- odroid
- Site Admin
- Posts: 40545
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 3004 times
- Been thanked: 1668 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Finally, you made it. 
I'm also waiting for an article for easier setup because I'm building a tiny cabin on my small weekend farm land.
There are some wild pigs and foreigners steal my important vegetables and fruits.
So I have to prepare a couple of smart cameras as well as loud siren system with XU4/HC2 in a few months.

I'm also waiting for an article for easier setup because I'm building a tiny cabin on my small weekend farm land.

There are some wild pigs and foreigners steal my important vegetables and fruits.
So I have to prepare a couple of smart cameras as well as loud siren system with XU4/HC2 in a few months.
- memeka
- Posts: 4420
- Joined: Mon May 20, 2013 10:22 am
- languages_spoken: english
- ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART - Has thanked: 2 times
- Been thanked: 61 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
@odroid - after setting up zoneminrr you can have a xu4 checking the rtsp stream and let you know when a human or when pigs come to your crops
https://magazine.odroid.com/article/obj ... gstreamer/
https://magazine.odroid.com/article/obj ... gstreamer/
Images: U2/U3 Trusty Dev Center | XU Trusty Dev Center | XU4 Hipster Stretchy Pants
Information: U2/U3 Dashboard | XU Dashboard
Say thank you with a beer
Information: U2/U3 Dashboard | XU Dashboard
Say thank you with a beer
- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Well, zoneminder can do motion detection and alerting by itself. Too bad I had to turn off hardware decoding 

- memeka
- Posts: 4420
- Joined: Mon May 20, 2013 10:22 am
- languages_spoken: english
- ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART - Has thanked: 2 times
- Been thanked: 61 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
Motion detection but not recognition of the object moving 

Images: U2/U3 Trusty Dev Center | XU Trusty Dev Center | XU4 Hipster Stretchy Pants
Information: U2/U3 Dashboard | XU Dashboard
Say thank you with a beer
Information: U2/U3 Dashboard | XU Dashboard
Say thank you with a beer
- odroid
- Site Admin
- Posts: 40545
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 3004 times
- Been thanked: 1668 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
I just want to have simple motion detection, video storage(or streaming) and a very loud siren speakers.
Artificial intelligence for wild boar recognition seems to be too much.
I'm not sure if OpenCV with artificial intelligence can distinguish between pig face and chicken hips.
Artificial intelligence for wild boar recognition seems to be too much.
I'm not sure if OpenCV with artificial intelligence can distinguish between pig face and chicken hips.

- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
That is true, indeed. But if you're after object recognition, you can probably skip zoneminder and do it as you suggest, or have your script trigger zoneminder to start recording.
Note - the ffmpeg downgrade above should be done only if zoneminder can't work with your camera with hardware decoding. I expect streams from better cameras to work with hardware decoding. A lot of cheaper cameras are cutting corners.
Note - the ffmpeg downgrade above should be done only if zoneminder can't work with your camera with hardware decoding. I expect streams from better cameras to work with hardware decoding. A lot of cheaper cameras are cutting corners.
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
hahahhahahaha
nice conversation.
odroid, to install ZM 1.29 on 16.04 Hardkernel image please follow exactly instruction of
viewtopic.php?f=95&t=33745#p245965
ZM 1.29 is fully working in this case.
In my next post i will add other info like: howto record on motion detection, how to record on an HDD or a network HDD, how to expose in WAN (if you need), how to access it only through userid/pwd, how to encrypt all, ....
At home and in the hospital i installed ZM it's used exactly to catch images of foreigners trying to take important things ....hahhahahahahahah
If the cameras have the possibility to move: you could configure too scripts to give them PTZ commands. There are already available scripts for famous camera. It's possible to build scripts dedicated to a specific camera if not yet available in the tool.
ZM is a little bit hard tool to install and configure, but really strong and full of functionalities.

odroid, to install ZM 1.29 on 16.04 Hardkernel image please follow exactly instruction of
viewtopic.php?f=95&t=33745#p245965
ZM 1.29 is fully working in this case.

In my next post i will add other info like: howto record on motion detection, how to record on an HDD or a network HDD, how to expose in WAN (if you need), how to access it only through userid/pwd, how to encrypt all, ....
At home and in the hospital i installed ZM it's used exactly to catch images of foreigners trying to take important things ....hahhahahahahahah

If the cameras have the possibility to move: you could configure too scripts to give them PTZ commands. There are already available scripts for famous camera. It's possible to build scripts dedicated to a specific camera if not yet available in the tool.
ZM is a little bit hard tool to install and configure, but really strong and full of functionalities.

- mad_ady
- Posts: 11200
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 647 times
- Been thanked: 1056 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
@pat2: when you look into it, try several recording methods - saving as jpeg frames, software encoding to h264 - both in terms of disk usage and load/heat.
You wouldn't want your xu4 to overheat and shut down while an army of ninjas invades your house and triggers all your cameras.
You wouldn't want your xu4 to overheat and shut down while an army of ninjas invades your house and triggers all your cameras.
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
hahahhahah 
with the odroid xu4 i'm sure! it's enough my old Radxa Pro, imagine with Odorid!
More seriously, I did! In ZM there is load indicator. With Odroid -same setup- it decreases 1/4 or 1/5!!
Odroid XU4 is really a strong board!

with the odroid xu4 i'm sure! it's enough my old Radxa Pro, imagine with Odorid!
More seriously, I did! In ZM there is load indicator. With Odroid -same setup- it decreases 1/4 or 1/5!!
Odroid XU4 is really a strong board!
-
- Posts: 112
- Joined: Sun Jan 06, 2019 2:22 am
- languages_spoken: english
- ODROIDs: XU4Q
- Has thanked: 10 times
- Been thanked: 16 times
- Contact:
Re: Zoneminder and Odroid XU4 - needed a working setup!
UPDATE!
I found an hardkernel 14.04 image. it's valid for XU4 too. Even if marked XU3!
I installed ZM 1.30.4. The procedure is a little bit different from the previosly posted one. I will post it!
It works fully! The same setup I have with Radxa! I could dismiss my Radxa! Great!
EDIT: trying to mount SSD on USB3 with 14.04 HK. I'm able to do on whatever other image (16,04 HK, 18.04HK and other).
For 14.04 HK the system doesn't see the SSD when connected. I tried
ls -l /dev/disk/by-uuid/*
sudo blkid
so i'm not able to insert in /etc/fstab something like:
UUID=BE28A67028A626FD /home/odroid/Documents/STORAGE auto nosuid,nodev,nofail 0 0
Any reccomendation? Is it an issue of 14.04 with SSD or with USB3?
thanks
I found an hardkernel 14.04 image. it's valid for XU4 too. Even if marked XU3!
I installed ZM 1.30.4. The procedure is a little bit different from the previosly posted one. I will post it!
It works fully! The same setup I have with Radxa! I could dismiss my Radxa! Great!

EDIT: trying to mount SSD on USB3 with 14.04 HK. I'm able to do on whatever other image (16,04 HK, 18.04HK and other).
For 14.04 HK the system doesn't see the SSD when connected. I tried
ls -l /dev/disk/by-uuid/*
sudo blkid
so i'm not able to insert in /etc/fstab something like:
UUID=BE28A67028A626FD /home/odroid/Documents/STORAGE auto nosuid,nodev,nofail 0 0
Any reccomendation? Is it an issue of 14.04 with SSD or with USB3?
thanks
Last edited by pat2 on Thu Feb 28, 2019 4:28 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 4 guests