Modify

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

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

Change History

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

Changed 23 months ago by Jim Stichnoth <stichnot@…>

comment:1 Changed 23 months ago by wagnerrp

  • Owner changed from janne to tralph
  • Status changed from new to assigned

comment:2 Changed 22 months ago by tralph

  • Owner tralph deleted
  • Status changed from assigned to new

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:4 Changed 15 months ago by stichnot

  • Milestone changed from unknown to 0.26

comment:5 Changed 12 months ago by stichnot

  • Status changed from assigned to closed
  • Resolution set to Fixed
View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.