Immutable solution version
run sv3d_u success but output mp4 can't play
Complete solution
Shows how to fix run sv3d_u success but output mp4 can't play. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
hi, I run the script success: python scripts/sampling/simplevideosample.py --inputpath assets/000.jpg --version sv3du Initialized embedder #0: FrozenOpenCLIPImagePredictionEmbedder with 683800065 params. Switch to cv2 (cv2.VideoWriter) for writing the output and the mp4 plays fine.
Steps
- hi, I run the script success: python scripts/sampling/simplevideosample.py --inputpath assets/000.jpg --version sv3du Initialized embedder #0: FrozenOpenCLIPImagePredictionEmbedder with 683800065 params. Trainable: False Initialized embedder #1: VideoPredictionEmbedderWithEncoder with 83653863 params. Trainable: False Initialized embedder #2: ConcatTimestepEmbedderND with 0 params.
- The sv3d_u output mp4 that would not play was caused by imageio's writer. Switch to cv2 (cv2.VideoWriter) for writing the output and the mp4 plays fine.
When to use
You are seeing this: Trainable: False Initialized embedder #1: VideoPredictionEmbedderWithEncoder with 83653863 params. Use this skill when you run into "run sv3d_u success but output mp4 can't play".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
In gh:Stability-AI/generative-models#326 (https://github.com/Stability-AI/generative-models/issues/326), the reporter ran into this: hi, I run the script success: python scripts/sampling/simplevideosample.py --inputpath assets/000.jpg --version sv3du Initialized embedder #0: FrozenOpenCLIPImagePredictionEmbedder with 683800065 params. Trainable: False Initialized embedder #1: VideoPredictionEmbedderWithEncoder with 83653863 params. Trainable: False Initialized embedder #2: ConcatTimestepEmbedderND with 0 params. The verified resolution: The sv3d_u output mp4 that would not play was caused by imageio's writer. Switch to cv2 (cv2.VideoWriter) for writing the output and the mp4 plays fine.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_v8IEFDXH4r3D9RyIQc7Rlg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">run sv3d_u success but output mp4 can't play <span>— Vectle</span></a>