Hook Asset Verifier
Use When
- The short opens with a dedicated hook image or hook overlay asset.
- Hook generation is separate from the main render.
- The pipeline should fail early if the hook asset is missing or
obviously broken.
Core Rule
- Verify the hook asset itself, not just the final video.
- A broken first-beat asset should stop the run before assembly.
Inputs
- generated hook asset path
- expected dimensions or target width
- optional readability expectations
Outputs
- pass or fail result for the hook asset
- basic diagnostics:
file exists, non-empty, dimensions readable, generation step succeeded
Workflow
- Check that the hook asset file exists.
- Check that it is non-empty and loadable.
- Check that the generated dimensions make sense for the target video.
- Fail fast if generation threw an error or produced junk.
- Only pass the asset into assembly once the direct check succeeds.
Good Pattern
- hook card is tested right after generation
- failure happens before edit or render work continues
- verifier is small and direct
- readable dimensions are checked alongside mere file existence
Bad Pattern
- discovering a broken hook card only in the final MP4
- passing empty or zero-byte assets downstream
- treating “file exists” as enough proof that the hook is usable
- overcomplicating a simple asset smoke test