| 1 | #!/bin/bash |
| 2 | |
| 3 | #build this: https://github.com/darkwater/steam-clip-exporter |
| 4 | EXTRACT_PATH=~/git/steam-clip-exporter/target/debug/steam-clip-exporter |
| 5 | set -e |
| 6 | |
| 7 | for 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 |
| 20 | done |
| 21 |
jackz / Bulk Steam Clip Extract
Last active 1 month ago
Requires https://github.com/darkwater/steam-clip-exporter - Build & run in Steam/clips folder, outputs files in Steam/exports