Last active
June 7, 2018 14:13
-
-
Save jadedgnome/97c3a69c655adf72c7427185b8dd1dac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read line ; | |
do newname=$(echo "$line" | cut -d '/' -f2 | sed 's|\ |_|g') ; | |
parentdir=$(echo "$line" | cut -d '/' -f2) ; | |
VIDEOTS=$(echo "$line" | cut -d '/' -f-3 | sed 's|\./||g') ; | |
echo "cat "$line/VTS_01_*.VOB" | ffmpeg -i - -vcodec libx264 -acodec libmp3lame -threads 12 $newname.mp4" ; | |
cat "$VIDEOTS"/VTS_01_*.VOB | ffmpeg -i - -vcodec libx264 -acodec libmp3lame -threads 12 "$newname.mp4" ; | |
done < <(find . -type d -name VIDEO_TS | grep -v "tape w SternWWOR 58 2of3 baked\|tape w SternZE 12 3of3\|tape w SternWWOR 48_49 1of3\|tape w SternWWOR 41_42 1of3\|tape w SternZE 02 1of3\|tape w SternWWOR 53_54 1of3 baked\|z_Remnants 1\|tape w SternWWOR 44 2of3 baked\|tape w SternWWOR 51_52 2of3\|z_Remnants 2\|tape w SternWWOR 55 3of3 baked\|tape w SternWWOR 59 1of2 baked") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment