Skip to content

Instantly share code, notes, and snippets.

@nurettin
Created December 6, 2018 18:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nurettin/775e330872397f2c636c148517e142d9 to your computer and use it in GitHub Desktop.
Save nurettin/775e330872397f2c636c148517e142d9 to your computer and use it in GitHub Desktop.
multiplex raspivid
#!/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
#!/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
#!/bin/sh
ffplay tcp://192.168.1.44:5001 2> /dev/null
@nurettin
Copy link
Author

nurettin commented Dec 6, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment