Created
December 6, 2018 18:58
-
-
Save nurettin/775e330872397f2c636c148517e142d9 to your computer and use it in GitHub Desktop.
multiplex raspivid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/usr/bin/raspivid --brightness 65 --saturation 25 -ex auto -n -ih -t 0 -rot 75 -w 1480 -h 1200 -fps 15 -b 1000000 -o - | /usr/bin/ncat -lkv4 5001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ffmpeg -i tcp://192.168.1.44:5001 -c:v h264 -c:a copy vid_$(date +%Y%m%d%H%M%S).mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ffplay tcp://192.168.1.44:5001 2> /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
these tiny scripts help you utilize your raspivid camera,
The service will start a multiplexing video server that many clients can connect to at the same time.
Recorder and watcher can convert the stream into video.