Skip to content

No way to control frame dropping #365

@sherpya

Description

@sherpya
Contributor

I need to process video frames so I add my subclass of QtAV::VideoRenderer to the player using video_player->addVideoRenderer(myclass)

I'm able to process frame in receiveFrame(), but it would be nice to avoid any kind of frame drop (especially if I increase playback rate)

A nice way could be a callback when a possible frame drop occurs so I can e.g. lower the playback rate (or once the first time)

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8320415-no-way-to-control-frame-dropping?utm_campaign=plugin&utm_content=tracker%2F307703&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F307703&utm_medium=issues&utm_source=github).

Activity

wang-bin

wang-bin commented on Feb 6, 2015

@wang-bin
Owner

try player->masterClock()->setClockType(AVClock::VideoClock)
Currently how to drop a frame is computed in VideoThread.run(). If sync to audio, frame drop may happen if video is too slow. The result is quite good for me when playing a high resolution and high fps video using sw decoder. If sync to video, no frame drop, but now audio is resampled to fit the video playback rate and a/v maybe out of sync.
A callback sounds nice. Callback is in video renderer or other place?

added this to the 1.5 milestone on Feb 6, 2015
self-assigned this
on Feb 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @sherpya@wang-bin

      Issue actions

        No way to control frame dropping · Issue #365 · wang-bin/QtAV