Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android audio crack on seek (then it plays normally) #202

Open
abdelaziz-mahdy opened this issue Dec 23, 2024 · 3 comments
Open

android audio crack on seek (then it plays normally) #202

abdelaziz-mahdy opened this issue Dec 23, 2024 · 3 comments
Assignees
Labels
libmdk mdk bug

Comments

@abdelaziz-mahdy
Copy link
Contributor

abdelaziz-mahdy commented Dec 23, 2024

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
Copy link
Contributor Author

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

@wang-bin
Copy link
Owner

wang-bin commented Dec 28, 2024

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 wang-bin self-assigned this Dec 28, 2024
@wang-bin wang-bin added the libmdk mdk bug label Dec 28, 2024
@abdelaziz-mahdy
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libmdk mdk bug
Projects
None yet
Development

No branches or pull requests

2 participants