openframeworks / openframeworks/openFrameworks

Inconsistencies between various (GStreamer/AVFoundation) video player implementations

Open
#3,721 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug core prelim-analysis section-video
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

I've just cross compiled an application which is repeatedly loading videos. There were some smaller differences which caused some troubles for me. I'm not saying one implementation is right, the other one is wrong. But to know that all behave the same would be supercool.

For example:

  • Play Flag: setPaused(true) sets the isPlaying() flag to false in AVFoundationPlayer, but does not touch the isPlaying()flag in the gStreamer implementation.
  • Rewind: after loadAsync(), the currentFrame()is set to 0 in AVFoundation, but left untouched in the gStreamer implementation (i.e. where the clip before ended). Probably also for load(), but I didn't check.

Missing Callbacks:

With all players more and more loading clips async, I guess a simple event/callback system will be necessary. The only option right now is to check in the main loop if a clip is loaded or playing or paused, which is a little bit annoying and sometimes quite faulty.

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 by comparing the AVFoundationPlayer and GStreamer implementations around setPaused(true), isPlaying(), loadAsync(), load(), and currentFrame(). Define consistent playback and rewind behavior, then determine the scope of the proposed event/callback system; done means the players expose matching state behavior and a clear notification mechanism for loading, playing, and pausing.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.