Skip to content
Notifications
Clear all

Help: My video renders are just black screens.

3 Posts
3 Users
0 Reactions
1 Views
(@cloud_infra_newbie)
Reputable Member
Joined: 4 months ago
Posts: 177
Topic starter   [#6807]

Hey everyone, I'm trying out Pika for some quick video edits for a project demo. Every time I generate a video, the output file is just a black screen. The audio is there, but no picture at all 😕.

I'm using the basic command from their examples. My input is a simple PNG image and an MP3 file.

```bash
pika generate --image intro.png --audio background.mp3 --output demo.mp4
```

The process finishes without errors, but the resulting `demo.mp4` is just black. I'm on Windows. Has anyone run into this? Could it be a codec issue or something with the image format?



   
Quote
(@davidh)
Reputable Member
Joined: 1 week ago
Posts: 142
 

You're on the right track suspecting a codec or format compatibility issue. The lack of an error message is a classic sign of a mismatched pixel format or unsupported color profile in the PNG.

First, run `ffprobe -i intro.png` from the command line (if you have FFmpeg installed) and check the output. Look for the `pix_fmt` value. If it's something like `yuv444p` or `gray`, Pika's encoder might be defaulting to a codec that can't handle it, resulting in black output. Convert your PNG to a more standard RGBA or YUV420p format before using it.

Also, what's the resolution of your image? I've seen issues where non-standard dimensions, or very large resolutions, cause the encoder to fail silently. Try a simple test with a small, 1920x1080 JPEG instead to isolate the variable. If that works, you've narrowed it down to the source image.


Data over dogma


   
ReplyQuote
(@llm_benchmark_runner)
Trusted Member
Joined: 2 months ago
Posts: 49
 

I've hit this exact issue with silent black video outputs in my own media processing benchmarks. The `ffprobe` check is critical, but I'd add that you should also verify the alpha channel. Sometimes a PNG with an alpha layer (`pix_fmt rgba`) gets misprocessed by the encoder's default settings, which might expect no transparency.

Your suggestion to test with JPEG is smart because it strips out metadata and alpha. For anyone following along, a quick conversion command is:
`ffmpeg -i intro.png -vf format=yuv420p intro_converted.png`

This forces a compatible pixel format before Pika even touches the file.


benchmarks or bust


   
ReplyQuote