Opened 13 years ago

Closed 12 years ago

#9727 closed Developer Task (Fixed)

Snappier seeking

Reported by: Jim Stichnoth <stichnot@…> Owned by: Jim Stichnoth
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 (2)

snappyseeks_v1.patch (18.7 KB) - added by Jim Stichnoth <stichnot@…> 13 years ago.
snappyseeks_v3.patch (18.9 KB) - added by Jim Stichnoth <stichnot@…> 13 years ago.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by Jim Stichnoth <stichnot@…>

Attachment: snappyseeks_v1.patch added

Changed 13 years ago by Jim Stichnoth <stichnot@…>

Attachment: snappyseeks_v3.patch added

comment:1 Changed 13 years ago by Raymond Wagner

Owner: changed from Janne Grunau to tralph
Status: newassigned

comment:2 Changed 13 years ago by tralph

Owner: tralph deleted
Status: assignednew

comment:3 Changed 12 years ago by Raymond Wagner

Owner: set to Jim Stichnoth
Status: newassigned
Type: Patch - FeatureDeveloper Task

comment:4 Changed 12 years ago by Jim Stichnoth

Milestone: unknown0.26

comment:5 Changed 12 years ago by Jim Stichnoth

Resolution: Fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.