obsproject / obsproject/obs-studio

Videos render as grey blobs for first few frames

Open
#5,252 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

macOS 11.5

Other OS

No response

OBS Studio Version

27.0.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/iMtIcCPaUcbCFDtI

OBS Studio Crash Log URL

No response

Expected Behavior

Videos should be rendered correctly from the first frame.

Current Behavior

Observed in portrait videos from phones (mov/mp4 containing h.264/AVC and h.265/HEVC), mostly in VLC Video Source. Unsure if it applies to other videos or Media Source.

Looks like it's somehow missing the first keyframe and starting instead from a blank grey frame, and then rendering frame diffs until the next keyframe at which point it sorts itself out.

image

Steps to Reproduce
  1. Add VLC Video Source to a scene.
  2. Select the attached video as source.
  3. Observe incorrect rendering.

https://user-images.githubusercontent.com/18594548/132258725-4ef35599-fab2-44c3-8262-60d5914ea876.MOV

Anything else we should know?

This is possibly related to #5250 but after a glance at the code I think they're separate issues, hence the split.

VLC itself renders the videos correctly.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the VLC Video Source path and reproduce the issue using the attached MOV on macOS 11.5, then inspect the provided OBS log. Compare the first rendered frames with VLC's output and verify the result across the stated H.264/HEVC cases; done means portrait videos render correctly from the first frame.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.