<commit_before>#!/usr/bin/env bash

impd=${1:-/tmp}  # provision
tmp3=$impd/a.mp3 # compiled audio
omp4=${2:-o.mp4} # combined movie out

ls $impd/0.jpeg || exit
type avconv || exit
type lame
TYPE_LAME=$?

if [ -f "$impd/video" ]
then p=$(cat $impd/video)
else p=
fi

g=" -loop 1 -shortest"
a=" -i $tmp3 -c:a aac -strict experimental"
w=/tmp/soundtrack.wav
if [ -f $tmp3 ]
then echo will use existing $tmp3
elif [ -f $w -a $TYPE_LAME -eq 0 ]
then lame -r -s 44.1 --signed --bitwidth 16 --big-endian $w $tmp3
else g=;a=;echo silent
fi
c="avconv -y$g $p -f image2 -i $impd/%d.jpeg$a -b 128k -qscale 1 $omp4"
echo $c
$c
<commit_msg>Bandwidth parameter for video commented-out<commit_after>#!/usr/bin/env bash

impd=${1:-/tmp}  # provision
tmp3=$impd/a.mp3 # compiled audio
omp4=${2:-o.mp4} # combined movie out

ls $impd/0.jpeg || exit
type avconv || exit
type lame
TYPE_LAME=$?

if [ -f "$impd/video" ]
then p=$(cat $impd/video)
else p=
fi

g=" -loop 1 -shortest"
a=" -i $tmp3 -c:a aac -strict experimental"
w=/tmp/soundtrack.wav
if [ -f $tmp3 ]
then echo will use existing $tmp3
elif [ -f $w -a $TYPE_LAME -eq 0 ]
then lame -r -s 44.1 --signed --bitwidth 16 --big-endian $w $tmp3
else g=;a=;echo silent
fi

p="-qscale 1" # " -b 128k"
c="avconv -y$g $p -f image2 -i $impd/%d.jpeg$a $p $omp4"
echo $c
$c

{'fraction_non_alphanumeric': 0.18447348193697155, 'fraction_numerical': 0.03689469638739431, 'mean_word_length': 3.3112582781456954, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1625594', 'n_tokens_mistral': 601, 'n_tokens_neox': 566, 'n_words': 179}