Opened 9 years ago
Closed 3 years ago
#12594 closed bug (not reproducible)
Stuttering sound playing video/audio files with any player
Reported by: | khallebal | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Kits/Media Kit | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Tried with MediaPlayer, mpv and QMplay2, the sound starts stuttering then goes real slow like an old tape then normal again and so on... Output from Qmplay2 shows a latency issue in MediaKit.(i could be wrong though).
Attachments (2)
Change History (29)
by , 9 years ago
Attachment: | Qmplay2 output added |
---|
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Summary: | Stuttering sound when video/audio files with any player → Stuttering sound playing video/audio files with any player |
---|
by , 9 years ago
comment:6 by , 9 years ago
This bug might have been caused by the printfs recently removed in SoundPlayer. If you find some time to do that, please test it under recent revs. It would be useful also to know which rev you were using at the time this issue was reported.
comment:7 by , 8 years ago
Since hrev:50260 it is somewhat better but only for the gcc2 arch, i still have some stuttering when my wifi is enabled but not connected, if i disable or connect my wifi the stuttering goes away. But as for the gcc4 arch, the sound is horrible, i can barely hear the sound of the video, which is full of ticking and crackling noise and real slow like an old tape. Just noticed that videos with mp3 sound are not effected by this, so far only AAC and OGG audio is effected.
comment:8 by , 8 years ago
I think there are two issues there, one is some decoding problems with ffmpeg and another is related to events scheduling.
To test if media playback is correct open Cortex and instantiate a ToneProducer, connect it to the mixer and start it. You should hear a pure sinus wave if events are scheduled correctly, in that case the problem is in ffmpeg more than the media_kit itself. Hope that helps.
comment:9 by , 8 years ago
Well the test seems to point towards the mediakit because i do hear ticks, is there a way i can get you some usefull debugging info?
comment:10 by , 8 years ago
Build Haiku in debugging mode, run Cortex from terminal, save the output to a file and then attach it to this ticket. In theory it will show latency notices.
comment:12 by , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Unfortunatly nothing is fixed, all the symptoms mentioned above are still there, tested with hrev:50608.
comment:13 by , 8 years ago
It could be a bug in the ac97 driver, right? Not all problems can be attributed to the media kit.
Other users with AC97 machines around?
comment:14 by , 8 years ago
I might have a AC97 sound card, I will look tonight, if I do, where do you want it mailed ?
comment:15 by , 8 years ago
I tested with an old dell latitude which happens to have an intel ac97 driver and indeed it seems to be the ac97 codec that is at fault, so i guess it is a bug which has been revealed with the recent changes in the Media Kit, so Via or intel it's the same buggy codec.
comment:17 by , 8 years ago
Sorry for spoiling the celebration, but i just installed opensoundsystem, blacklisted the Auvia driver.. Unfortunately the behaviour is the same, so i guess we're back to square one.
Let me summarize this ticket: The sound in the videos is really slow as an old tape with a distortion you would hear when you plug a mic with bad cable. But this behaviour does not occure when the audio is in mp3 or wave format, it happens with AAC, AC-3, OGG and FLAC. It used to be with gcc2 and x86, but now it's only with x86. Another symptom is if my wifi is not connected i hear stuttering, the workaround here is either to connect or disable the wifi altogether. For the crackle noise mentioned in #12817, it is still there and easily reproducible with cortex.
comment:18 by , 8 years ago
So it seems to me that this issue didn't happen to you, so it's a regression. If my guess is OK then I'd like to know the exact hrev range where it happened. You can do it using bisection (there's a doc on how to do that if you don't know exactly what I mean).
comment:20 by , 8 years ago
This ticket might be duplicate of his earlier ticket #5828. In any case, there are many unresolved ac97 tickets in trac dating back as far as Alpha 1.
comment:21 by , 8 years ago
@ Barrett, yes corrrect, as i said it doesn't occur with mp3 or wave files.
@ Vidrep, no that's toally a diffrent issue and different mobo.
comment:22 by , 8 years ago
comment:23 by , 8 years ago
a) doesn't look like related to media_kit b) this is an issue known when playing audio from cd, is it your case?
comment:24 by , 8 years ago
No this is not my case, it happens with every movie or audio file i play from the HD, it's been going on for over a year. unfortunatly i don't have a reliable internet connection to do a binary search, it would feel like an everyday job.
comment:25 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | reopened → assigned |
comment:27 by , 3 years ago
Resolution: | → not reproducible |
---|---|
Status: | assigned → closed |
Sorry, i meant "Stuttering sound when playing video/audio files with any player" i can't change the title.