linux:owncast_videoiden_tallennus
Owncast, videoiden tallennus
#!/bin/bash
mkdir owncast_recording
cd owncast_recording
mkdir recording
while :
do
output_filename=recording/$(date '+%d-%m-%Y_%H-%M-%S').mp4
ffmpeg -i IP:8080/hls/stream.m3u8 -vsync 0 -acodec copy -vcodec copy $output_filename
sleep 5
find . -type f -size -10M -exec rm -v {} \;
sleep 5
done
linux/owncast_videoiden_tallennus.txt · Viimeksi muutettu: 2024/09/02 09:08 / riku