Opened 14 years ago

Closed 14 years ago

#189 closed defect (fixed)

Timestretch does not reset when reaching end of LiveTV buffer

Reported by: kuphal@… Owned by: danielk
Priority: minor Milestone: 0.19
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

When using audio timestretching to speed up playback of a LiveTV built-up buffer, if the current location catches up with LiveTV, the timestretching stays active causing a studdering effect as the system reaches the buffer, stops momentarily, then restarts at the timestretch speed only to repeat again.

The timestretching should reset to 1x when reaching the end of the LiveTV buffer

Attachments (1)

mythtv_timestretch7c.patch (9.0 KB) - added by Mark Spieth 14 years ago.
simpler algo for live stretch factor revert

Download all attachments as: .zip

Change History (5)

comment:1 Changed 14 years ago by danielk

Milestone: 0.19
Owner: changed from Isaac Richards to danielk
Status: newassigned

I'll fix this when I look at the XvMC seek problem.

comment:2 Changed 14 years ago by Isaac Richards

Mark Spieth had a patch for this, but I didn't really like how it was implemented. Might be someplace to start, though.

Changed 14 years ago by Mark Spieth

Attachment: mythtv_timestretch7c.patch added

simpler algo for live stretch factor revert

comment:3 Changed 14 years ago by Mark Spieth

attached a better algo patch for reverting timestretch back to 1.0 seems ok for the limited testing Ive done with it. There is still a audio loss when the change occurs and not sure why. The key factor to play with is the niumber of frames to use at the limit. Ive set this to 2 seconds worth. Ive left in the older more complex algo commented out. please delete if you are happy with it.

comment:4 Changed 14 years ago by danielk

Resolution: fixed
Status: assignedclosed

(In [7098]) Closes #189.

This is a further simplified version of Mark Spieth's simplified timestretch reset patch.

I still like John P. Poet's approach better, it would fix many more pre-buffering pause problems. But it apparently causes some problems for some s/pdif users. Since neither I now Mark have s/pdif this is a bit difficult to debug.

Note: See TracTickets for help on using tickets.