fvp icon indicating copy to clipboard operation
fvp copied to clipboard

android audio crack on seek (then it plays normally)

Open abdelaziz-mahdy opened this issue 1 year ago • 6 comments

Describe the bug when i seek the audio cracks

also sometimes the frames has weird black pixels, if there is any errors related to it should be at the end of the logs

Expected behavior audio should not crack

full logs

https://jpst.it/43jcm

i think this is the main log part for the audio crack

I/flutter (31626): FVP mdk.FINE: 14:17:30.106: 0xb4000078b2994570 audio stream#1 is seeking #1... got flush pkt. flush decoder and  drop frames until seek target 6.0970s...
I/flutter (31626): FVP mdk.FINE: 14:17:30.106: invalid audio frame @-1.000000
I/flutter (31626): FVP mdk.FINE: 14:17:30.106: 0xb4000078b2994570 #1/1 audio seek_done: 1, seek_wait_frame_: 0/1
I/flutter (31626): FVP mdk.FINE: 14:17:30.107: 0xb4000078b2994570 audio stream#1 sending 1 invalid AOT frame @6.095500s. seeking: 0
I/flutter (31626): FVP mdk.INFO: 14:17:30.107: 0xb4000079e29d1420 seek end audio frame @6.095500 seek_pos_: 6000, sync_ao_ 1
I/flutter (31626): FVP mdk.FINE: 14:17:30.107: OpenSL ERROR@373 (*ibufq_android_)->Enqueue(ibufq_android_, data, size) : 0X7
I/flutter (31626): FVP mdk.FINE: 14:17:30.107:
I/flutter (31626): FVP mdk.FINE: 14:17:30.107: >>>>>>>>1st audio frame (after seek) rendered: 1, ao: 6015, a: 6095, delta: -80 +0.021333
I/flutter (31626): FVP mdk.FINE: 14:17:30.107: 0xb4000078b2994570 audio stream#1 AOT frame is sent
I/flutter (31626): FVP mdk.FINE: 14:17:30.107: OpenSL ERROR@373 (*ibufq_android_)->Enqueue(ibufq_android_, data, size) : 0X7

is this related to the black parts?

0xb4000078b2994570 video stream#0 sending 1 invalid AOT frame @32.861000s. seeking: 0

abdelaziz-mahdy avatar Dec 23 '24 18:12 abdelaziz-mahdy

Any solution to the crack? Since it's annoying to users

abdelaziz-mahdy avatar Dec 28 '24 01:12 abdelaziz-mahdy

I/flutter (31626): FVP mdk.FINE: 14:17:30.107: OpenSL ERROR@373 (*ibufq_android_)->Enqueue(ibufq_android_, data, size) : 0X7

because of this i guess. queue is full, but not sure why. you can try this for android before the issue is fixed

registerWith(
    options: {
      'player': {'audio.renderer': 'AudioTrack'}
    },
  );

wang-bin avatar Dec 28 '24 06:12 wang-bin

that does fix the cracking sound for now, thank you <3

abdelaziz-mahdy avatar Dec 28 '24 16:12 abdelaziz-mahdy

same problem, the fix works

andyzhshg avatar Jun 24 '25 09:06 andyzhshg

is there any downside of using this option? I am registering it in main so it applies to both live streams and other VOD contents.

ust1957 avatar Jul 13 '25 00:07 ust1957

I faced same problem, but the workaround provided fixed this cracking sound issue in pixel devices. Thanks @wang-bin

Gowtham-mg avatar Nov 06 '25 05:11 Gowtham-mg