wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.93k stars 1.5k forks source link

Seamless loop #321

Open brothermechanic opened 9 years ago

brothermechanic commented 9 years ago

Hello Thank you for developing a new great player I have a question How i can to smooth seamles loop my video screensaver on your player?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/5658755-seamless-loop?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).
wang-bin commented 9 years ago

not implemented

t4ggno commented 6 years ago

Hello,

how is the status of this enhancement? Will you ever include that feature? Want to use QtAV for my project, but sadly I really need that feature :(

Regards, t4ggno

kelteseth commented 6 years ago

Same here! @wang-bin any update on this?

kelteseth commented 6 years ago

@wang-bin I'm working on implementing the seamless loop feature. What do you think is a better way to create a seamless loop:

  1. Rewinding if EOF is reached
  2. Restarting the video without reloading the file
wang-bin commented 6 years ago

@kelteseth the first one would be better

xj42 commented 5 years ago

This would be a huge help

Tarik-B commented 5 years ago

Hi @wang-bin,

Could you please explain what you meant by:

Rewinding if EOF is reached Restarting the video without reloading the file

@kelteseth the first one would be better

From what I can see, this all takes place in AVPlayer and AVDemuxThread (+AudioThread/VideoThread) classes. Repeat parameters are currently stored in the player but they would need to be passed over to the demux thread (or audio/video thread?) so that it could rewind upon reading EOF, right?

I'd like to implement this very soon, any help would be appreciated.

Thanks :)