Skip to main content

Module utils

Module utils 

Source

Functionsยง

count_pngs_in_zip
Count PNG files inside a ZIP archive
extract_frame_from_zip
Extract a specific PNG frame from a ZIP archive
ffmpeg_base_args
Arguments every ffmpeg call starts with: no banner, and only warnings unless verbose_ffmpeg is set.
open_output
Open the rendered output in the default system viewer
run_ffmpeg_for_output
Like run_ffmpeg_with_output, but removes a half-written output file if ffmpeg fails.
run_ffmpeg_with_output
Run ffmpeg and return its stderr. On failure the error includes the last lines ffmpeg printed, which usually say what went wrong.
scan_ffmpeg_stderr
unzip_frames
Extracts frame_*.png from a ZIP into a temporary folder and returns the folder path along with the temp directory guard.