Ticket #9727 (closed Developer Task: Fixed)
Opened 2 years ago
Last modified 12 months ago
Snappier seeking
| Reported by: | Jim Stichnoth <stichnot@…> | Owned by: | stichnot |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.26 |
| Component: | MythTV - Video Playback | Version: | Master Head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
This patch generalizes the "seek to exact frame" mechanism by allowing seeks to snap to the nearest keyframe if it is close enough (within a specified snap distance). Exact seeking uses a snap of 0 frames, and inexact seeking uses maxuint64 frames.
This is used to improve response time in the program editor. When the seek amount is 0.5 seconds or higher, a snap distance of half the seek distance is used. This can dramatically speed up editing, especially for HDPVR recordings where h.264 seeking is slow and (on my system) keyframes are 128 frames apart.
Snapping is not yet implemented in avformatdecoder.cpp because I don't know how to trigger that code path.
In the program editor, snapping could be made optional via an additional set of key bindings.
Attachments
Change History
comment:1 Changed 23 months ago by wagnerrp
- Owner changed from janne to tralph
- Status changed from new to assigned
comment:3 Changed 15 months ago by wagnerrp
- Owner set to stichnot
- Status changed from new to assigned
- Type changed from Patch - Feature to Developer Task
comment:5 Changed 12 months ago by stichnot
- Status changed from assigned to closed
- Resolution set to Fixed
