Skip to content

Instantly share code, notes, and snippets.

@donaldparker
Last active June 2, 2024 03:51
Show Gist options
  • Save donaldparker/e7b9f86c57e8466212458b659ec68dcc to your computer and use it in GitHub Desktop.
Save donaldparker/e7b9f86c57e8466212458b659ec68dcc to your computer and use it in GitHub Desktop.
for f in ./**/VIDEO_TS; do
echo "Processing: " $f;
ffmpeg -f concat -safe 0 -i <(for f2 in $f/*.VOB; do echo "file '$PWD/$f2'"; done) -acodec aac -aq 100 -ac 2 -vcodec libx264 -preset veryslow -crf 24 -threads 0 "${PWD}/${f}/outputfile.mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment