Skip to content
Snippets Groups Projects
Commit c497b8fb authored by dronus's avatar dronus
Browse files

Raspberry Pi delayed video stream for two raspberrys: One with the RaspiCam...

Raspberry Pi delayed video stream for two raspberrys: One with the RaspiCam attached, the other one with a screen.
parents
Branches master
No related tags found
No related merge requests found
##!/bin/bash
DELAY=300000
while true
do
echo Start streaming
raspivid -ex fixedfps -ss 20000 -fps 25 -n -l -t $DELAY -b 80000$
done
#!/bin/bash
# where to place the streams on disk. External USB drive recommended!
cd streams/
while true
do
FILE="stream"`date +%Y-%m-%d-%H-%M-%S`".mts"
echo "Start streaming..."
if nc -d 169.254.51.122 8888 >$FILE
then
echo "Received stream. Start player..."
pkill -f omxplayer
( time omxplayer --force-fps 25 $FILE ) &
else
echo "Streaming failed. Retry later..."
sleep 1
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment