Opened 16 years ago
Closed 16 years ago
#5043 closed patch (fixed)
Audio skips when using timestretch
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | 0.21-fixes |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
When I use multi-channel timestretch the audio will periodically skip back a few seconds. The picture plays fine and the audio eventually skips forward to match. I get a slew of "Audio buffer overflow, audio data lost", and "NVP: Video is xx frames ahead of audio..." messages when this happens.
AFAICT the value of waud in audiooutputbase.cpp is not wrapping around to 0 properly. This causes the above problem. The attached patch fixes it.
Attachments (2)
Change History (7)
comment:1 Changed 16 years ago by
Changed 16 years ago by
Attachment: | waud_overflow.patch.gz added |
---|
comment:3 Changed 16 years ago by
I just double checked this and the increment is already guaranteed to be within range in both cases.
this should be closed as invalid. sorry bill.
comment:4 Changed 16 years ago by
Not sure what's up then, Mark.
This is with 5.1 passthrough timestretch, which really rocks, BTW.
In my case, the value of org_waud (and therefor waud) was getting pegged at AUDBUFSIZE instead of wrapping around to 0. This is when the problem started. After the buffer drained, it would fix itself. When I made the above patch it started working ok again, and it's worked well for the past few weeks.
HTH, Bill
Changed 16 years ago by
Attachment: | mythtv_waud_wrap.1.patch added |
---|
my version of this patch. it is absolutely necessary.
I've tried attaching my patch but Trac called it spam.
...then I tried to paste it with the same effect...
Here's the change: