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.
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=12MarginV=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
+faststartfor broad playback compatibility.
6) Single Preset Generation Command
- First tip file in this repo:
_posts/2026-03-03-generative-answers-handle-unknown-questions.md - Generate only this tip:
$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-tokenwhenAZURE_OPENAI_API_KEYis not set.
7) Artifact Cleanup Baseline
Keep only these in artifacts/sora for a clean working state:
backsong.mp3mascot-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:
- Create YouTube OAuth Desktop credentials in Google Cloud Console.
- Save the downloaded client secret JSON to:
tools/video_preview/youtube_client_secret.json
- 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):
$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_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