diff --git a/init/rc.local b/init/rc.local index eb53e67c..00e306d7 100644 --- a/init/rc.local +++ b/init/rc.local @@ -4,6 +4,7 @@ REVIDPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/revid-cli +@echo Set kernel parameters: # kernel settings to improve performance on Raspberry Pi # tell Linux to fork optimistically sudo sysctl -w vm.overcommit_memory=1 @@ -20,12 +21,16 @@ if [ ! -d /var/netsender ]; then chmod guo+rwx /var/netsender fi +# show IP addresses +@echo Our IP addresses: +sudo ip addr show | grep inet + # capture stdout and stderr to a secondary log file (just in case) exec 2> /var/log/netsender/stream.log exec 1>&2 # set working dir and run revid-cli cd $REVIDPATH -sudo "PATH=$PATH:$REVIDPATH" ./revid-cli -Verbosity=Yes -Input=Raspivid -Output=NativeRtmp -QuantizationMode=QuantizationOff -Bitrate=500000 -Packetization=Flv -NetSender & +sudo "PATH=$PATH:$REVIDPATH" ./revid-cli -Verbosity=Yes -Input=Raspivid -Output=NativeRtmp -QuantizationMode=QuantizationOff -Bitrate=250000 -Packetization=Flv -NetSender & exit 0