how to setup to recieve stream from raspberry pi

Forum for questions and support relating to the 1.30.x releases only.
Locked
4bf9gSBj
Posts: 15
Joined: Fri Jan 25, 2019 4:50 pm

how to setup to recieve stream from raspberry pi

Post by 4bf9gSBj »

i have version 1.3.4 installed from the stretch packages on a pc running amd64 kernel. i am using a raspberry pi zero w with the noir camera to send a stream with "raspivid -v -t 0 -n -b 2000000 -g 30 -ih -pf high -w 960 -h 720 -fps 30 -l -o tcp://192.168.2.70:8554". i can play the stream with "mplayer -fps 300 -demuxer h264es ffmpeg://tcp://192.168.2.70:8554". i have not found documentation for setting this up in zoneminder. any suggestions are appreciated.
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: how to setup to recieve stream from raspberry pi

Post by bbunge »

If you can stream the camera with VLC use the same string and resolution in ZM with ffmpeg. It will work but you may have to play with the settings.
4bf9gSBj
Posts: 15
Joined: Fri Jan 25, 2019 4:50 pm

Re: how to setup to recieve stream from raspberry pi

Post by 4bf9gSBj »

cvlc tcp/h264://192.168.2.70:8554 is able to play the stream. if i use tcp/h264://192.168.2.70:8554 as source path in zoneminder the log shows "Unable to open input tcp/h264://192.168.2.70:8554 due to: No such file or directory". if i use h264://192.168.2.70:8554 as source path the log shows "Unable to open input h264://192.168.2.70:8554 due to: Success". in both instances there is no connection to the pi zero.
4bf9gSBj
Posts: 15
Joined: Fri Jan 25, 2019 4:50 pm

Re: how to setup to recieve stream from raspberry pi

Post by 4bf9gSBj »

i got it to work using tcp://192.168.2.70:8554 as source path but i can not get more than about 5 frames per second. i set raspivid to 30 fps and zoneminder to 300 fps. in the monitor it shows 30 fps but it appears to be about 5 fps
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: how to setup to recieve stream from raspberry pi

Post by bbunge »

ZM is a security camera system not HD movie maker! 5 FPS should be sufficient. Max FPS in Zoneminder settings is for local cameras and that setting should be blank.
fatboy
Posts: 47
Joined: Wed Jul 02, 2008 11:42 am
Location: Country of Texas

Re: how to setup to recieve stream from raspberry pi

Post by fatboy »

For 10 years I've been running 15fps.
Locked