jackz

jackz / Bulk Steam Clip Extract

Last active 1 month ago

Like 0

Requires https://github.com/darkwater/steam-clip-exporter - Build & run in Steam/clips folder, outputs files in Steam/exports

bulk_steam_extract.sh Raw
1#!/bin/bash
2
3#build this: https://github.com/darkwater/steam-clip-exporter
4EXTRACT_PATH=~/git/steam-clip-exporter/target/debug/steam-clip-exporter
5set -e
6
7for dir in clip_*; do
8 file="$dir/output.mp4"
9 if [[ ! -f "$file" ]]; then
10 echo Extracting "$dir"
11 "$EXTRACT_PATH" "$dir"
12 fi
13
14 if [[ -f "$file" ]]; then
15 echo Moving "$dir/output.mp4"
16 mv "$dir/output.mp4" "../exports/$dir.mp4" \
17 && rm -r "$dir" \
18 || echo "$dir: error"
19 fi
20done
21