-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
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).Metadata
Metadata
Assignees
Labels
Projects
Relationships
Development
Select code repository
Activity
wang-bin commentedon Feb 6, 2015
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?