<commit_before># # # # # #
#
# Simple script to encode framegrabber output to mp4
# by T-101 / Darklite
#
#
#!/bin/sh

# Change this to your liking. Smaller value, smaller file.
VIDEOQUALITY=6000k

# Here be dragons
FFMPEG_STATUS=0
AVCONV_STATUS=0

if [ ! -f audio.wav ]; then
	echo "Fatal! audio.wav does not exist"
	exit 255
fi

which ffmpeg > /dev/null
if [ $? -eq 0 ]; then FFMPEG_STATUS=1
fi

which avconv > /dev/null
if [ $? -eq 0 ]; then AVCONV_STATUS=1
fi

if [ $FFMPEG_STATUS -eq 1 ]; then
	echo "Using ffmpeg"
	# Settings tested with FFmpeg version 0.6.5
	ffmpeg -r 60 -i 'frames/frame_%06d.png' -i audio.wav -vcodec libx264 -vpre medium -b $VIDEOQUALITY -acodec aac -strict experimental -ab 192k demo.mp4
	exit $?<commit_msg>script to encode png to mp4 with audio<commit_after># # # # # #
#
# Simple script to encode framegrabber output to mp4
# by T-101 / Darklite
#
#!/bin/sh

# Change this to your liking. Smaller value, smaller file.
VIDEOQUALITY=6000k

# Here be dragons
FFMPEG_STATUS=0
AVCONV_STATUS=0

if [ ! -f audio.wav ]; then
	echo "Fatal! audio.wav does not exist"
	exit 255
fi

which ffmpeg > /dev/null
if [ $? -eq 0 ]; then FFMPEG_STATUS=1
fi

which avconv > /dev/null
if [ $? -eq 0 ]; then AVCONV_STATUS=1
fi

if [ $FFMPEG_STATUS -eq 1 ]; then
	echo "Using ffmpeg"
	# Settings tested with FFmpeg version 0.6.5
	ffmpeg -r 60 -i 'frames/frame_%06d.png' -i audio.wav -vcodec libx264 -vpre medium -b $VIDEOQUALITY -acodec aac -strict experimental -ab 192k demo.mp4
	exit $?
{'fraction_non_alphanumeric': 0.1157190635451505, 'fraction_numerical': 0.043478260869565216, 'mean_word_length': 3.4656716417910447, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2668652', 'n_tokens_mistral': 644, 'n_tokens_neox': 590, 'n_words': 195}