<commit_before>#!/bin/zsh

nice ffmpeg -i ${1} -filter:v yadif,scale=768:576,crop=736:560:16:8,deshake -c:v libx264 -profile:v high -preset medium -crf 23 -c:a libfaac -ab 128k ${1}.mp4
mp4creator -hint=1 ${1}.mp4
mp4creator -hint=2 ${1}.mp4
mp4creator -optimize ${1}.mp4
<commit_msg>Tweak cropping to maintain 4:3 display aspect ratio.<commit_after>#!/bin/zsh

# for i in *.vob; do ~/bin/nosleep ../EncodeVob.sh $i; done

nice ffmpeg -i ${1} -filter:v yadif,scale=768:576,crop=736:552:16:12,deshake -c:v libx264 -profile:v high -preset medium -crf 23 -c:a libfaac -ab 128k ${1}.mp4
mp4creator -hint=1 ${1}.mp4
mp4creator -hint=2 ${1}.mp4
mp4creator -optimize ${1}.mp4

{'fraction_non_alphanumeric': 0.17787742899850523, 'fraction_numerical': 0.11509715994020926, 'mean_word_length': 4.537190082644628, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1155870', 'n_tokens_mistral': 339, 'n_tokens_neox': 302, 'n_words': 74}