Page 1 of 1

jpeg/mpeg problem

Posted: Fri Sep 01, 2017 2:04 pm
by bartekn86
Hi, nice to be here...

Please, if you can help me, i dont know where i make a mistake...

zm 1.30.4 debian9 install from https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way
cpu j3455, gpu gt630 (for future hwaccels) - ffmpeg compiled properly,

i want only to record/view rstp steam without any analyse...

rstp in vlc working properly, so i belive cam is ok
1.png
1.png (61.55 KiB) Viewed 4598 times
2.png
2.png (49.54 KiB) Viewed 4598 times
3.png
3.png (61.35 KiB) Viewed 4598 times

Re: jpeg/mpeg problem

Posted: Fri Sep 01, 2017 2:07 pm
by bartekn86
4.png
4.png (141.94 KiB) Viewed 4597 times
5.png
5.png (43.96 KiB) Viewed 4597 times
6.png
6.png (106.96 KiB) Viewed 4594 times
really, i must be stupid...... cam is a h264 1,3mp 25fps

Re: jpeg/mpeg problem

Posted: Fri Sep 01, 2017 2:24 pm
by bartekn86
7.png
7.png (138.7 KiB) Viewed 4590 times
nph-zms path is correctly IMO.... really dont have any idea why it is dont to work...

Re: jpeg/mpeg problem

Posted: Fri Sep 01, 2017 5:35 pm
by Baylink
My new advice on zms is:

Check your apache's access.log, and see what URL is being tried for nph-zms, and whether it's 200 or 404.

Re: jpeg/mpeg problem

Posted: Fri Sep 01, 2017 7:09 pm
by bartekn86
thanks for replay... i change zms_patch in /etc/zm/ from

#ZM_PATH_CGI=/usr/lib/zoneminder/cgi-bin/
ZM_PATH_CGI=/usr/lib/zoneminder/cgi-bin/nph-zms

acces log now show...

192.168.1.2 - - [01/Sep/2017:20:59:34 +0200] "GET /usr/lib/zoneminder/cgi-bin/nph-zms?mode=jpeg&scale=&maxfps=30&buffer=1000&monitor=1&connkey=224995 HTTP/1.1" 404 527 "http://192.168.1.250/zm/index.php?view=watch&mid=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
192.168.1.2 - - [01/Sep/2017:20:59:35 +0200] "GET /usr/lib/zoneminder/cgi-bin/nph-zms?mode=jpeg&scale=&maxfps=30&buffer=1000&monitor=1&connkey=224995 HTTP/1.1" 404 528 "http://192.168.1.250/zm/index.php?view=watch&mid=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
192.168.1.2 - - [01/Sep/2017:20:59:35 +0200] "POST /zm/index.php HTTP/1.1" 200 328 "http://192.168.1.250/zm/index.php?view=watch&mid=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
192.168.1.2 - - [01/Sep/2017:20:59:35 +0200] "POST /zm/index.php HTTP/1.1" 200 328 "http://192.168.1.250/zm/index.php?view=watch&mid=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
192.168.1.2 - - [01/Sep/2017:21:00:07 +0200] "GET /zm/index.php HTTP/1.1" 200 2733 "http://192.168.1.250/zm/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
192.168.1.2 - - [01/Sep/2017:21:01:08 +0200] "GET /zm/index.php HTTP/1.1" 200 2733 "http://192.168.1.250/zm/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
192.168.1.2 - - [01/Sep/2017:21:02:09 +0200] "GET /zm/index.php HTTP/1.1" 200 2735 "http://192.168.1.250/zm/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
192.168.1.2 - - [01/Sep/2017:21:03:11 +0200] "GET /zm/index.php HTTP/1.1" 200 2732 "http://192.168.1.250/zm/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
192.168.1.2 - - [01/Sep/2017:21:04:12 +0200] "GET /zm/index.php HTTP/1.1" 200 2732 "http://192.168.1.250/zm/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
192.168.1.2 - - [01/Sep/2017:21:05:13 +0200] "GET /zm/index.php HTTP/1.1" 200 2734 "http://192.168.1.250/zm/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"
192.168.1.2 - - [01/Sep/2017:21:06:14 +0200] "GET /zm/index.php HTTP/1.1" 200 2734 "http://192.168.1.250/zm/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0"

404... but why ?

Re: jpeg/mpeg problem

Posted: Sat Sep 02, 2017 1:36 am
by bbunge
You should not need to compile ffmpeg if you used the WIKI install instructions.

https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way

Camera resolution in Zoneminder does not match camera output. Use VLC (Tools, Media Information, Codec) to check camera Display Resolution.

Re: jpeg/mpeg problem

Posted: Sat Sep 02, 2017 2:07 am
by Baylink
If you're getting a 404 on nph-zms, it means that what ZM is telling the browser to retrieve is a URL that Apache doesn't convert into a path to your actual cgi directory; that means that either your apache config or, more likely, your PATHS->ZMS_PATH aren't what they're supposed to me.

Since your GET includes the "real" path of the zms file, I think you've misunderstood what's supposed to go in ZMS_PATH, which is a *URL* path -- what it looks like outside the webserver -- not the filesystem path -- what apache converts it to.

Re: jpeg/mpeg problem

Posted: Sat Sep 02, 2017 10:55 am
by bartekn86
thanks for replay
bbunge wrote: Sat Sep 02, 2017 1:36 am You should not need to compile ffmpeg if you used the WIKI install instructions.

ive compiled ffmpeg to use hwaccels

https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way

Camera resolution in Zoneminder does not match camera output. Use VLC (Tools, Media Information, Codec) to check camera Display Resolution.
resolution match, camera added by onwif function. Windows have tool caled onvif device menager, im sure that you know it, and, res is the same 1280x960

Re: jpeg/mpeg problem

Posted: Sat Sep 02, 2017 11:13 am
by bartekn86
Baylink wrote: Sat Sep 02, 2017 2:07 am If you're getting a 404 on nph-zms, it means that what ZM is telling the browser to retrieve is a URL that Apache doesn't convert into a path to your actual cgi directory; that means that either your apache config or, more likely, your PATHS->ZMS_PATH aren't what they're supposed to me.

Since your GET includes the "real" path of the zms file, I think you've misunderstood what's supposed to go in ZMS_PATH, which is a *URL* path -- what it looks like outside the webserver -- not the filesystem path -- what apache converts it to.
thanks for advice.. changed zms_patch to /cgi-bin/nph-zms ... in the end I have an image ;-)))))
10.png
10.png (110.1 KiB) Viewed 4560 times
are you able to help me with error /tmp/zm ? folder exist
11.png
11.png (56.54 KiB) Viewed 4560 times