19 lines
645 B
Markdown
19 lines
645 B
Markdown
```
|
|
Kalturadl
|
|
=========
|
|
|
|
Download and compress lecture videos from Kaltura on Canvas
|
|
|
|
Right-click the video and select "Inspect" or press Ctrl + Shift + I. Go to
|
|
the "Network" tab. Play the video for 1-2 seconds, then pause it. Copy the
|
|
"index.m3u8" URL from the Network tab.
|
|
|
|
Download the video: `bash dlm3u8.sh <m3u8_url> <output.mkv>`
|
|
|
|
Compress the video to 480p: `ffmpeg -i <input.mkv> -vf "scale=-1:480" -c:v
|
|
libvpx-vp9 -crf 30 -b:v 0 -cpu-used 4 -c:a aac -b:a 128k <output.mkv>`
|
|
|
|
Archive all videos and course materials into a single file: `tar -cvpf -
|
|
<course_folder>/ | zstd -3 -o "<course_name>_$(date +'%Y%m%d_%H%M%S').tar.
|
|
zst"`
|
|
```
|