Skip to content

Instantly share code, notes, and snippets.

@stonly
stonly / movie_editing_commands.md
Created March 25, 2025 14:43
working with movie clips from the command line (Mac OSX)

Get info on an mp4 file

ffprobe -v quiet -print_format json -show_format -show_streams -print_format json "file.mp4"

convert a MP4 file to a format that MacOSX understands

ffmpeg -i file.mp4 -c:v libx264 -crf 23 -preset medium -c:a copy file_fixed.mp4

create transcript

Use MacWhisper

create ASS file based on SRT transcript

@stonly
stonly / hashex.py
Last active September 22, 2017 14:35
hash table demonstration code
#!/usr/bin/python
"""
Hash Tables
Usage :
'python -i hashex.py'
The goal of a hash table is to map a keyword to a placeholder that contains the value you stored.
We will define 3 functions :