Opened 7 years ago

Closed 3 years ago

#10866 closed Patch - Bug Fix (Fixed)

UPNP reports scheduled duration rather than actual duration

Reported by: pdw@… Owned by: stuartm
Priority: minor Milestone: 0.28
Component: MythTV - UPnP Version: 0.25
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The UPNP server reports duration based on progstart and progend rather than starttime and endtime.

These can be different if you use the start early / end late options when recording - all my recordings are 3 minutes longer than the duration suggested by progend - progstart.

This creates a problem if the player uses the duration to decide when to stop playing the video. My TV (Sony KDL-32CX523) will stop the video after it has played the reported duration, and there's no way to get at the last three minutes of the video.

Aside from the problem described above, this is inconsistent with the "date" property, which uses starttime. This means that on my TV I typically see something like:

Tue 26 Jun 2012 15:59 (1H 00M)

i.e. the duration reflects the scheduled time, whereas the time reflects the actual recording time.

Attachments (1)

upnp-duration.diff (879 bytes) - added by pdw@… 7 years ago.
Patch to change to actual duration

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by pdw@…

Attachment: upnp-duration.diff added

Patch to change to actual duration

comment:1 Changed 5 years ago by Karl Egly

Type: Bug Report - GeneralPatch - Bug Fix

comment:2 Changed 5 years ago by stuartm

Owner: changed from dblain to stuartm
Status: newaccepted

comment:3 Changed 4 years ago by Karl Egly

Status: acceptedinfoneeded

This has been fixed and documented in the past (before 0.28), see https://github.com/MythTV/mythtv/blob/master/mythtv/programs/mythbackend/upnpcdstv.cpp#L1271

Can I closed it as fixed in 0.28?

comment:4 Changed 3 years ago by J.Pilk@…

You weren't asking me, but I confirm that, running fixes/0.28 [v28.0-26-gf58b100] under 'buntu 14.04, the duration shown on my Panasonic TV agrees, normally to within 1 sec, with that shown in the frontend editor. This applies for both SD and HD recordings from dvb-t/t2, raw and edited. The time shown is when the recording started, and the date is in MMDDYY format.

One probably unrelated point: the elapsed-time shown in the upnp progress display often differs from that shown in the frontend editor - except near the end. Difference of order 1 minute, either way. Maybe it's assuming a constant bit-rate, ignoring the seek table.

comment:5 Changed 3 years ago by stuartm

Milestone: unknown0.28
Resolution: Fixed
Status: infoneededclosed
Note: See TracTickets for help on using tickets.