mirror of https://bitbucket.org/ausocean/av.git
Show IP addresses.
This commit is contained in:
parent
75235f3d82
commit
48aa73be9c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue