| @@ -1,12 +1,20 @@ | |||
| 1 | 1 | #!/bin/bash | |
| 2 | 2 | ||
| 3 | - | #https://github.com/darkwater/steam-clip-exporter | |
| 4 | - | EXTRACT_PATH=~/git/steam-clip-exporter/ | |
| 3 | + | #build this: https://github.com/darkwater/steam-clip-exporter | |
| 4 | + | EXTRACT_PATH=~/git/steam-clip-exporter/target/debug/steam-clip-exporter | |
| 5 | 5 | set -e | |
| 6 | 6 | ||
| 7 | - | mkdir _output | |
| 8 | 7 | for dir in clip_*; do | |
| 9 | - | $EXTRACT_PATH "$dir" | |
| 10 | - | mv "$dir/output.mp4" "_output/$dir.mp4" | |
| 11 | - | rm -r "$dir" | |
| 12 | - | done | |
| 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 | |
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
| @@ -7,6 +7,6 @@ set -e | |||
| 7 | 7 | mkdir _output | |
| 8 | 8 | for dir in clip_*; do | |
| 9 | 9 | $EXTRACT_PATH "$dir" | |
| 10 | - | cp "$dir/output.mp4" "_output/$dir.mp4" | |
| 10 | + | mv "$dir/output.mp4" "_output/$dir.mp4" | |
| 11 | 11 | rm -r "$dir" | |
| 12 | 12 | done | |
| @@ -0,0 +1,12 @@ | |||
| 1 | + | #!/bin/bash | |
| 2 | + | ||
| 3 | + | #https://github.com/darkwater/steam-clip-exporter | |
| 4 | + | EXTRACT_PATH=~/git/steam-clip-exporter/ | |
| 5 | + | set -e | |
| 6 | + | ||
| 7 | + | mkdir _output | |
| 8 | + | for dir in clip_*; do | |
| 9 | + | $EXTRACT_PATH "$dir" | |
| 10 | + | cp "$dir/output.mp4" "_output/$dir.mp4" | |
| 11 | + | rm -r "$dir" | |
| 12 | + | done | |