falaw.local#
Local utilities: ffmpeg + PIL glue for stitching fal outputs.
The fal calls produce URLs. This module materializes them into local files and assembles them into watchable scenes (concat, transitions, thumbnails, etc.). Anything that’s cheap to do locally lives here so the cloud calls stay focused on generation.
ffmpeg is the one external dependency. The functions raise a clear
error if it’s missing.
Functions
|
Materialize each clip and concatenate into one mp4. |
|
Save a single frame from a clip as a PNG. |
|
|
|
Mix an audio track onto a video clip. |
- falaw.local.concatenate_clips(clip_urls, *, output_path, transition_s=0.0, audio=True)[source]#
Materialize each clip and concatenate into one mp4.
- Parameters:
- Return type:
- Returns:
The output path.