Modify

Ticket #2263 (closed patch: fixed)

Opened 6 years ago

Last modified 3 years ago

Separate PCR pid (from Video) not recorded

Reported by: lpgcritter at nasquan dot com Owned by: stuarta
Priority: major Milestone: 0.20
Component: dvb Version: 0.19
Severity: medium Keywords:
Cc: Ticket locked: no

Description

In Australia, most channels broadcast separate video/PCR pids. MythTV has logic for recording the PCR pid, but it fails because it never finds the TS Packet PayloadStart for the PCR pids, thus the PCR pids are not recorded on to the file.

My fix is to ignore the tspacket->PayloadStart?() condition for PCR pids.

Patch should be applied in libs/libmythtv

Attachments

mythtv-0.19-pcr-patch (1.5 KB) - added by lpgcritter at nasquan dt com 6 years ago.
mythtv-trunk.patch (547 bytes) - added by lpgcritter at nasquan dt com 6 years ago.
fix for trunk
mythtv-0.19.patch (517 bytes) - added by lpgcritter at nasquan dt com 6 years ago.
new fix for 0.19
mythtv-0.21.patch (533 bytes) - added by lpgcritter 4 years ago.
Fixes the problem for 0.21 - PCR packets have no payload
mythtv-0.21.2.patch (575 bytes) - added by lpgcritter 4 years ago.
better patch

Change History

Changed 6 years ago by lpgcritter at nasquan dt com

comment:1 Changed 6 years ago by danielk

  • Status changed from new to closed
  • Resolution set to invalid

Please test against SVN head, a similar fix might be needed there as well.

Changed 6 years ago by lpgcritter at nasquan dt com

fix for trunk

Changed 6 years ago by lpgcritter at nasquan dt com

new fix for 0.19

comment:2 Changed 6 years ago by lpgcritter at nasquan dt com

  • Status changed from closed to reopened
  • Resolution invalid deleted

I've added a fix for trunk and a better fix for 0.19. It would be great if both could be applied in svn.

The root cause of the problem is that the PCR packets did not have payload and only the adaptation field. Because the code searches for payloadstart to begin writing and payloadstart field is never 1 for packets without payload, the pcr ts packets never get recorded. The patch adds a bypass for packets which don't have payload.

comment:3 Changed 6 years ago by stuarta

  • Owner changed from danielk to stuarta
  • Status changed from reopened to new
  • Milestone changed from 0.19.1 to 0.20

Due to the fact that 0.20 is in feature freeze I won't apply the 0.19 fixes, but will look at the patch for trunk for inclusion in 0.20

comment:4 Changed 6 years ago by stuarta

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

(In [11022]) Closes #2263. PCR packets don't have a payload so don't require a payload start in this situation.

comment:5 Changed 4 years ago by lpgcritter

  • Status changed from closed to new
  • Resolution fixed deleted

Looks like problem has returned with the new multirec stuff

Changed 4 years ago by lpgcritter

Fixes the problem for 0.21 - PCR packets have no payload

Changed 4 years ago by lpgcritter

better patch

comment:6 Changed 4 years ago by danielk

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

(In [16876]) Fixes #2263. Write IsWritingPID's even if they don't have a payload; PCR streams do not...

comment:7 Changed 3 years ago by simon@…

Can this patch be backported to 0.21-fixes? The bug it fixes renders a significant proportion of MythTV's DVB recordings unplayable in VLC.

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.