wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
197 stars 31 forks source link

Drop frames problem fps is very bad #134

Open isnzenauz opened 3 months ago

isnzenauz commented 3 months ago

hi dear, i have problem with fvp drop frames on android (mobile, tv) im trying to use AMediaCodec and FFmpeg but his give me same results frame drops i test it in: XIAOMI MI BOX S2 (Android), And mobile RED MAGIC 6, Poco x3 Pro, Tecno Spark 8 tecno spark 10 pro, give me same results, drop frames in LIVE M3u8, and Movies MP4, MKV

I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 and the pakage is com.poppycorn.rax.poppycorn I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 and the pakage is com.poppycorn.rax.poppycorn I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 and the pakage is com.poppycorn.rax.poppycorn I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 and the pakage is com.poppycorn.rax.poppycorn I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 and the pakage is com.poppycorn.rax.poppycorn I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 and the pakage is com.poppycorn.rax.poppycorn I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 and the pakage is com.poppycorn.rax.poppycorn I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 and the pakage is com.poppycorn.rax.poppycorn I/AudioTrack(21381): AudioTrack::setVolume L:1.000000 R:1.000000 I/AudioTrack(21381): AudioTrack::setVolume L:1.0

The log note give me anything about dropframes

azukaar commented 4 weeks ago

https://github.com/user-attachments/assets/1f3b3406-5233-40bd-a944-c2534652a3ec

Here's a sample, you can see there is 2 significant frame drops in this short 5sec clip (slow motioned 50%) I don't think it's a direct performance issue with the decoding thought, because it's a "simple" 2gb FULL HD video Also don't have a UI issue, I can reproduce it with the simple VideoPlayer + RegisterWith setup and nothing else on the page