Skip to content

Instantly share code, notes, and snippets.

@jadedgnome jadedgnome/alpha.sh
Last active Jun 7, 2018

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.