Automiq

Tip Video Generation Rules (Locked Baseline)

Automiq mascot illustration

Tip Video Generation Rules (Locked Baseline)

This is the locked profile that matches the approved output style (footer subtitles, slower narration, smooth transitions). Use this as the default for future videos unless explicitly overridden.

1) Scope

  • Generate a single vertical lesson video per tip.
  • Keep final duration <= 45 seconds.
  • Use one canonical output file per tip.

2) Visual Rules (Sora)

  • Style: 2D cartoon illustration, vivid blue/purple neon palette.
  • Character: glossy cel-shaded blue robot mascot, same identity each time.
  • Background: dark gradient with subtle circuit-board texture.
  • Transitions: slower and smoother (avoid abrupt cuts).
  • On-screen text: disabled in generated visuals (visual storytelling only).
  • No logos or trademarked UI in generated scenes.

Visual source

Sora 2 can no longer be used. OpenAI shut down the Videos API and every Sora 2 model on 2026-09-24, and Microsoft retired sora-2 2025-12-08 on Foundry (scheduled for 2026-10-15). Neither lists a replacement model, and the sora-2 deployment in automiq-foundry now shows Disabled.

generate_all_tips_same_profile.py therefore defaults to --visual-source cover:

  • tools/video_preview/cover_source_video.py renders the 12 s, 1080x1920, 30 fps source clip from the post’s front matter image:.
  • Layout: the cover in a rounded window above the subtitle zone, over a blurred and darkened copy of itself, with a slow push-in that loops seamlessly.
  • Narration, subtitles, music, end card and YouTube upload work as before. No Azure variables or az login are needed.
  • --visual-source sora keeps the previous behavior for anyone with a working Sora deployment. The Sora rules above apply only to that mode.

3) Audio Rules

  • Narration voice: en-US-GuyNeural.
  • Narration pace target: around -6% (adjust if needed, but keep clear and calm).
  • Background music source: artifacts/sora/backsong.mp3.
  • Keep music ducked under narration.
  • CTA line: Visit Automiq for more Power Platform tips.
  • CTA timing: start when white end-card/logo appears.

4) Subtitle Rules

  • Burn subtitles into the final export.
  • Style: white text + black outline, bottom-centered.
  • Current preferred subtitle footprint:
    • FontSize=12
    • MarginV=45
    • Keep subtitles close to footer so they do not interfere with core visuals.

5) Export Compatibility Rules

  • Video codec: H.264 High, yuv420p.
  • Audio codec: AAC stereo, 48kHz.
  • MP4 with +faststart for broad playback compatibility.

6) Single Preset Generation Command

Current default, cover based (see Visual source, no Azure needed):

c:/Dev/DidYouKnow/.venv/Scripts/python.exe tools/video_preview/generate_all_tips_same_profile.py --only-post _posts/<post-file>.md --keep-source

Sora only (needs a working Sora deployment). Generate only the first tip file in this repo, _posts/2026-03-03-generative-answers-handle-unknown-questions.md:

$env:AZURE_OPENAI_ENDPOINT='https://automiq-ai-foundry.cognitiveservices.azure.com/'
$env:AZURE_OPENAI_DEPLOYMENT_NAME='sora-2'
c:/Dev/DidYouKnow/.venv/Scripts/python.exe tools/video_preview/generate_tip_video_sora.py --post-file _posts/2026-03-03-generative-answers-handle-unknown-questions.md --output-dir artifacts/sora/_tipsvideos --seconds 12 --timeout-seconds 1800

Note: API keys are blocked by tenant policy. The scripts auto-obtain an Azure AD token via az account get-access-token when AZURE_OPENAI_API_KEY is not set.

7) Artifact Cleanup Baseline

Keep only these in artifacts/sora for a clean working state:

  • backsong.mp3
  • mascot-as-is-reference-720x1280.png
  • canonical final video + its -audio-lock.json
  • teams-tip-slow-subtitles.srt
  • all generated tip videos and metadata inside artifacts/sora/_tipsvideos

Remove old temp files, scratch scripts, and extra test renders after each run.

8) Optional: Publish to YouTube and Delete Local MP4

If you want automatic publish after generation:

  1. Create YouTube OAuth Desktop credentials in Google Cloud Console.
  2. Save the downloaded client secret JSON to:
  • tools/video_preview/youtube_client_secret.json
  1. Install dependencies in your venv:
c:/Dev/DidYouKnow/.venv/Scripts/python.exe -m pip install google-auth google-auth-oauthlib google-api-python-client

Run with YouTube upload + local file deletion (only deletes local MP4 after successful upload). Add --visual-source sora and the Azure variables from section 6 only if you have a working Sora deployment:

c:/Dev/DidYouKnow/.venv/Scripts/python.exe tools/video_preview/generate_all_tips_same_profile.py --only-post _posts/2026-03-10-use-sharing-limits-to-prevent-accidental-oversharing.md --youtube-upload --youtube-privacy-status unlisted --youtube-delete-local-on-success