Schedule to record video stream in VLC
You can use two cron
lines like this to make a ~10 minute recording from 0755.
55 7 * * 1-5 cvlc --run-time=5 --sout file/ts:stream.mp4 htsp://@ip:9982/211
5 8 * * 1-5 sh -c "killall cvlc; cp stream.mp4 /path/to/upload"
I've added 1-5
in the fifth field so it only runs Monday to Friday.
VLC is hard to stop recording without actual controls. The easiest way it to just tell it to die. That's what the second line does... And then does something (up to you) with the saved file.
There is a small problem in that the teacher is going to have to skip to the right moment... What if the video is longer than 10 minutes one day? The best possible solution is going to involve somebody making the video having manual control.