Opened 14 months ago
Closed 14 months ago
HLS Stream Progress > 100%
|Reported by:||jheizer@…||Owned by:||stichnot|
|Component:||MythTV - Mythtranscode||Version:||0.26-fixes|
If you start a HLS on a recording that is in progress the percentage reported grows greater than 100%.
<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?();"
Change History (2)
comment:1 Changed 14 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 14 months ago by Jim Stichnoth <jstichnoth@…>
- Resolution set to fixed
- Status changed from accepted to closed