API & FFmpeg
Automate creative testing across ad accounts. Pull unique-fingerprint 1080p hooks via REST or MCP and splice them ahead of product demos with FFmpeg.
Personal API key
Splice a 5-second hook ahead of product B-roll
Concatenate a fresh deduplicated RawHooks master with your own vertical product clip in one command.
# 1. Fetch a unique-fingerprint hook master
curl -L -H "Authorization: Bearer $RAWHOOKS_API_KEY" \
"https://api.rawhooks.com/api/v1/assets/char_us_f_29_maya__scene_tiktok_topad_7432085828065001479/download" \
-o hook_unique.mp4
# 2. Splice 5s hook + your product demo (1080x1920, 30fps)
ffmpeg -i hook_unique.mp4 -i product_demo.mp4 \
-filter_complex "[0:v]scale=1080:1920,fps=30[v0];[1:v]scale=1080:1920,fps=30[v1];[v0][v1]concat=n=2:v=1:a=0[v]" \
-map "[v]" -c:v libx264 -crf 19 -pix_fmt yuv420p ad_variant_01.mp4