Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 15 months ago

Closed 15 months ago

#11339 closed Bug Report - General (fixed)

HLS Stream Progress > 100%

Reported by: jheizer@… Owned by: stichnot
Priority: minor Milestone: 0.27
Component: MythTV - Mythtranscode Version: 0.26-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

If you start a HLS on a recording that is in progress the percentage reported grows greater than 100%.

Example:

<StartSegment>1</StartSegment>
<CurrentSegment>241</CurrentSegment>
<SegmentCount>241</SegmentCount>
<PercentComplete>14156</PercentComplete>

It does report 100% once complete.

<stichnot> jheizer: this is because Transcode::TranscodeFile?() calls GetTotalFrameCount?() outside the loop, so for percentage calculations it's using the frame count that was correct when the transcoding started.

<stichnot> jheizer: if you're willing to test, look for the line "int percentage = curFrameNum * 100 / total_frame_count;" and add a new statement right before it: "total_frame_count = GetPlayer?()->GetCurrentFrameCount?();"
}}}

Attachments (0)

Change History (2)

comment:1 Changed 15 months ago by stichnot

  • Component changed from MythTV - HTTP Streaming to MythTV - Mythtranscode
  • Milestone changed from unknown to 0.27
  • Owner changed from cpinkham to stichnot
  • Status changed from new to accepted

comment:2 Changed 15 months ago by Jim Stichnoth <jstichnoth@…>

  • Resolution set to fixed
  • Status changed from accepted to closed

In ae8406425160e7e33a758904fe1b300a04dd8e64/mythtv:

Use the latest frame count when transcoding in-progress recordings.

Fixes #11339. Report reasonable percent completion status for HLS
transcodes of in-progress recordings.

Add 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.