File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 14
14
15
15
printf "Recording %s to %s\n" "${ duration } " "$mkv_file"
16
16
${ ffmpeg } -headers "Referer: https://tuwel.tuwien.ac.at\r\n" \
17
- -t "${ duration } " \
18
- -i "https://live-cdn-2.video.tuwien.ac.at/lecturetube-live/${ channel } /playlist.m3u8" \
19
- -c:v libx265 -preset slow -crf 28 \
20
- -c:a copy "$mkv_file"
17
+ -t "${ duration } " \
18
+ -i "https://live-cdn-2.video.tuwien.ac.at/lecturetube-live/${ channel } /playlist.m3u8" \
19
+ -c:a copy "$mkv_file"
21
20
printf "Finished recording at %s\n" "$(date)"
22
21
23
22
echo "Moving to nextcloud"
24
- out_dir="${ config . services . nextcloud . datadir } /data/root/files/Lectures/$year/$month/$day/$channel"
23
+
24
+ out_dir="${ config . services . nextcloud . datadir } /data/root/files/Lectures/$year/$month/$day/${ channel } "
25
25
mkdir -p "$out_dir"
26
- mv "$mkv_file" "$out_dir/$hour-$minute.mkv"
27
26
28
- /run/current-system/sw/bin/nextcloud-occ files:scan root
27
+ out_file="$out_dir/$hour-$minute.mkv"
28
+ mv "$mkv_file" "$out_file"
29
+
30
+ /run/current-system/sw/bin/nextcloud-occ files:scan root --path "/root/files/Lectures/$year/$month/$day/${ channel } /$hour-$minute.mkv"
29
31
'' ;
30
32
# TODO: don't use /run/current-system, ideally use nix syntax
31
33
55
57
informatik-1h = service "deu116-informatikhoersaal" "3600" ;
56
58
informatik-2h = service "deu116-informatikhoersaal" "7200" ;
57
59
informatik-3h = service "deu116-informatikhoersaal" "10800" ;
60
+
61
+ tmp-recording = service "bau178a-gm-1-audi-max" "5" ;
58
62
} ;
59
63
60
64
systemd . timers = {
You can’t perform that action at this time.
0 commit comments