<commit_before>
# Install ffmpeg using brew correctly
$ brew install ffmpeg $(brew options ffmpeg --compact)

##################################################################################################
# Decode a folder of AAC bitstreams in parallel (5 cores) over a time 
# range (0,3000) seconds, downmixing to mono and sample-rate converting to 16kHz
$ ls *.m4a | xargs -P 5 -I % ffmpeg -ss 0 -to 3000  -i % -ac 1 -ar 16000 %.wav

# Decode AAC, but different time-ranges (900,1800) and rename file more descriptively
$ ls *.wav | xargs -P 5 -I % ffmpeg -ss 900 -to 1800  -i % -ac 1 %.trim.mono.wav


# Transcode nasty .wma audio from an ancient Dell
for file in *.wma; do ffmpeg -i "${file}"  -acodec libmp3lame -ab 192k "${file/.wma/.mp3}"; done


##################################################################################################

# Demux video from audio, with a weird/invalid name (so specifiy '--' to indicate end-of-options)
$ ffmpeg -i -5KQ66BBWC4.mkv -vn -- out.wav
<commit_msg>[ADD] crip for demuxing MOV and putting each audio stream into its own file<commit_after>
# Install ffmpeg using brew correctly
$ brew install ffmpeg $(brew options ffmpeg --compact)

##################################################################################################
# Decode a folder of AAC bitstreams in parallel (5 cores) over a time 
# range (0,3000) seconds, downmixing to mono and sample-rate converting to 16kHz
$ ls *.m4a | xargs -P 5 -I % ffmpeg -ss 0 -to 3000  -i % -ac 1 -ar 16000 %.wav

# Decode AAC, but different time-ranges (900,1800) and rename file more descriptively
$ ls *.wav | xargs -P 5 -I % ffmpeg -ss 900 -to 1800  -i % -ac 1 %.trim.mono.wav


# Transcode nasty .wma audio from an ancient Dell
for file in *.wma; do ffmpeg -i "${file}"  -acodec libmp3lame -ab 192k "${file/.wma/.mp3}"; done


##################################################################################################

# Demux video from audio, with a weird/invalid name (so specifiy '--' to indicate end-of-options)
$ ffmpeg -i -5KQ66BBWC4.mkv -vn -- out.wav

# Demux video from audio, splitting each audio stream into a separate file with map
$ ffmpeg -i input.mov -vn \
  -map 0:0 -c copy wav0.wav \
  -map 0:1 -c copy wav1.wav \
  -map 0:2 -c copy wav2.wav \
  -map 0:3 -c copy wav3.wav \
  -map 0:4 -c copy wav4.wav \
  -map 0:5 -c copy wav5.wav \
  -map 0:6 -c copy wav6.wav \
  -map 0:7 -c copy wav7.wav

{'fraction_non_alphanumeric': 0.260976610586787, 'fraction_numerical': 0.04759950759130078, 'mean_word_length': 3.6526717557251906, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '57499', 'n_tokens_mistral': 920, 'n_tokens_neox': 807, 'n_words': 311}