So I came across another post where they used a plugin (zmodopipe) and that looked promising. So tried to set that up but think I missed something somewhere and hoping you guys can tell me where I went wrong.
zoneMinder is up and running...The setup went smooth. I downloaded and unzip the zmodopipe and set that up. I created the file ffserver2.conf and added the information below. Then I added the bash script. This is where I got stuck. I can't figure out how to call this script. When I try to run "./dvr_connect" I get "./dvr_connect.sh: line 1: spark@ManCave:~$: command not found"
During my setup, I don't recall creating anything that mentioned "dvr_connect" so maybe something there is what I am missing. The post I was trying to follow is mentioned is viewtopic.php?f=12&t=27142&p=105374&hilit=swann#p105374. Can you guys help me out here?
Code: Select all
Port 8090
#RTSPPort 8554
#HTTPPort 8554
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 9000
CustomLog -
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 200K
ACL allow 127.0.0.1
</Feed>
<Stream test.mjpg>
Feed feed1.ffm
Format mpjpeg
VideoFrameRate 10
VideoSize 320x240
VideoBufferSize 40
VideoGopSize 12
VideoBitRate 1200
AVOptionVideo flags +global_header
NoAudio
</Stream>
Code: Select all
spark@ManCave:~$ cat ./dvr_connect
#!/bin/bash
CODEC_OPTS=''
./zmodopipe -s 192.168.86.4 -p 18004 -c 1 -u TESTER-a 1234-m 1 > /dev/null 2>&1 &
ffserver -f /etc/ffserver2.conf > /tmp/ffserver.log 2>&1 &
ffmpeg -i /tmp/zmodo0 $CODEC_OPTS http://localhost:8090/feed1.ffm > /tmp/zmodoffmpeg1 2>&1 &