[Solved]ffmpeg and vlc work. Zoneminder does not...

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

[Solved]ffmpeg and vlc work. Zoneminder does not...

Post by Lee Sharp » Sun Jul 01, 2018 11:14 pm

I am trying to get the amazingly cheap GeoVision/USAvision cameras to work. I have the main channel set up for H.264 and the sub for mjpeg with RTSP. It works fine on vlc with

Code: Select all

rtsp://user:password@192.168.64.70/media/video1
and

Code: Select all

rtsp://user:password@192.168.64.70/media/video2
. It also captures fine with

Code: Select all

ffmpeg -rtsp_transport tcp -i rtsp://user:password@192.168.64.70/media/video1 -f image2 -vf fps=fps=1 hello/img%03d.png
If I drop out the fps limitation, it captures at about 15 FPS...

But in Zoneminder, I get nothing. My Source is

Code: Select all

rtsp://user:password@192.168.64.70/media/video1
and for options I have tried

Code: Select all

-rtsp_transport
and

Code: Select all

-rtsp_transport -f image2 -vf fps=fps=1
but no love. Logs are green, but I get no pictures saved. And mjpeg does not work either on video2.

Any ideas?
Last edited by Lee Sharp on Sun Jul 01, 2018 11:55 pm, edited 1 time in total.

User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Re: ffmpeg and vlc work. Zoneminder does not...

Post by Lee Sharp » Sun Jul 01, 2018 11:39 pm

More details... Ubuntu 16.04.4 using the Wiki instructions and the PPA.

Logs...

Code: Select all

2018-07-01 18:37:52.837877	zmc_m2		19363	INF	Priming capture from rtsp://admin:admin@192.168.64.70/media/video2	zm_ffmpeg_camera.cpp	104
2018-07-01 18:37:52.821862	zmc_m2		19363	INF	Starting Capture version 1.30.4	zmc.cpp	247
2018-07-01 18:37:52.763070	zmdc		17898	WAR	Can't find process with command of 'zma -m 2'	zmdc.pl	
2018-07-01 18:37:52.650030	zmdc		19363	INF	'zmc -m 2' started at 18/07/01 18:37:52	zmdc.pl	
2018-07-01 18:37:52.648200	zmdc		17898	INF	'zmc -m 2' starting at 18/07/01 18:37:52, pid = 19363	zmdc.pl	
2018-07-01 18:37:52.639010	zmdc		17898	INF	Starting pending process, zmc -m 2	zmdc.pl	
2018-07-01 18:37:52.633530	zmdc		17898	ERR	'zmc -m 2' exited abnormally, exit status 255	zmdc.pl	
2018-07-01 18:37:52.591870	zmdc		19360	INF	'zmc -m 2' started at 18/07/01 18:37:52	zmdc.pl	
2018-07-01 18:37:52.591850	zmdc		17898	INF	'zmc -m 2' starting at 18/07/01 18:37:52, pid = 19360	zmdc.pl	
2018-07-01 18:37:52.441510	zmdc		17898	WAR	Can't find process with command of 'zmc -m 2'	zmdc.pl	
2018-07-01 18:37:52.297500	zmdc		17898	WAR	Can't find process with command of 'zma -m 2'	zmdc.pl	
2018-07-01 18:37:51.178536	zmc_m1		19329	INF	Broke: 2000 - Capturing at 29.41 fps	zm_monitor.cpp	3125
2018-07-01 18:37:17.554471	zmc_m1		19329	INF	Broke: 1000 - Capturing at 28.57 fps	zm_monitor.cpp	3125
2018-07-01 18:36:42.875813	zmc_m1		19329	INF	Priming capture from rtsp://admin:admin@192.168.64.60/media/video1	zm_ffmpeg_camera.cpp	104
2018-07-01 18:36:42.871287	zmc_m1		19329	INF	Starting Capture version 1.30.4	zmc.cpp	247
2018-07-01 18:36:42.776500	zmdc		17898	WAR	Can't find process with command of 'zma -m 1'	zmdc.pl	
2018-07-01 18:36:42.693880	zmdc		19329	INF	'zmc -m 1' started at 18/07/01 18:36:42	zmdc.pl	
2018-07-01 18:36:42.692380	zmdc		17898	INF	'zmc -m 1' starting at 18/07/01 18:36:42, pid = 19329	zmdc.pl	
2018-07-01 18:36:42.683090	zmdc		17898	INF	Starting pending process, zmc -m 1	zmdc.pl	
2018-07-01 18:36:42.677280	zmdc		17898	ERR	'zmc -m 1' exited abnormally, exit status 255	zmdc.pl	
2018-07-01 18:36:42.630760	zmdc		19326	INF	'zmc -m 1' started at 18/07/01 18:36:42	zmdc.pl	
2018-07-01 18:36:42.630300	zmdc		17898	INF	'zmc -m 1' starting at 18/07/01 18:36:42, pid = 19326	zmdc.pl	
2018-07-01 18:36:42.490730	zmdc		17898	INF	'zmc -m 1' exited normally	zmdc.pl	
2018-07-01 18:36:42.419269	zmc_m1		19297	INF	Got signal 15 (Terminated), exiting	zm_signal.cpp	40
2018-07-01 18:36:42.405480	zmdc		17898	INF	'zmc -m 1' sending stop to pid 19297 at 18/07/01 18:36:42	zmdc.pl	
2018-07-01 18:36:42.247260	zmdc		17898	WAR	Can't find process with command of 'zma -m 1'	zmdc.pl	
2018-07-01 18:36:38.500678	zmc_m1		19297	INF	Driveway: 2000 - Capturing at 29.41 fps	zm_monitor.cpp	3125
2018-07-01 18:36:04.877085	zmc_m1		19297	INF	Driveway: 1000 - Capturing at 27.03 fps	zm_monitor.cpp	3125

User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Re: ffmpeg and vlc work. Zoneminder does not...

Post by Lee Sharp » Sun Jul 01, 2018 11:54 pm

Sigh... Never mind... Missed this in the instructions. Need to bring back the flash tag from the 80s.
PATH_ZMS is not set to /zm/cgi-bin/nph-zms
Also, the images directory does not hold the images... :)

TLDR: User error, but the instructions could be more clear. :)

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests