livepeer / livepeer/lpms

Count pixels in segment without decoding video data

Open
#149 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
283
Forks
72
Avg merge
27m
Merged PRs (30d)
1

Description

**Is your feature request related to a problem? Please describe.**
Current API for counting pixels in segments does actual video stream decoding. This API is used by broadcaster, and will make it to be CPU constrained instead of being memory constrained.

**Describe the solution you'd like**
Each video frame could potentially have a different resolution, so we can't just multiply video length by frame rate. But we could potentially parse bitstream, extracting needed information but not decoding video itself. Looks like FFmpeg has an internal API for this but it isn't exposed for library consumers, so FFmpeg should be forked to expose this API.

**Describe alternatives you've considered**
Write own bitstream parser, but this is not a good option.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the current API for counting pixels in segments and reviewing how it triggers video stream decoding. Then investigate the FFmpeg internal API mentioned in the issue and determine how it could be exposed to library consumers; done means counting pixels across varying frame resolutions without decoding video data.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
audio-video-rtc
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.