[mythtv-users] not scheduling from HLS Capture Card according to max recordings and priorities

Stephen Worthington stephen_agent at jsw.gen.nz
Wed Feb 28 13:54:41 UTC 2018


On Wed, 28 Feb 2018 08:31:14 -0500, you wrote:

>I have set up a new HLS Capture Card with a couple of channels that I
>also get on cable.  Since the HLS stream will be of higher quality than
>my SD cable, I have set the Input priority for the Input connection for
> that HLS Capture Card to 10 and have set Max recordings to 5.
>
>The Input connection for my SD cable Capture Card is at 5, so it should
>be lower priority than the HLS Capture Card.
>
>I'm finding that the HLS Input connection is not always being used when
>it should be though.  For example, from mythbackend --printsched. in
>this case it's working:
>
>2018-02-28 08:13:06.912142 I  SEAL Team - Call Out                   7 WWNY    28 22:01-23:00   0  0  A  L 0
>...
>2018-02-28 08:13:06.916127 I  SEAL Team - Call Out                   3 CIII    01 19:00-20:00   0 14  A 14 0
>
>capturecard 14 is one of the HLS devices:
>
>+--------+----------+-----------------------------------------------------+-------------+-----------+----------+--------------+----------------+----------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+-----------+----------+------------------------------+----------------+---------------+----------+-----------+-------------+-------------+-------------+-----------+------------+-------------+----------+------------+
>| cardid | parentid | videodevice                                         | audiodevice | vbidevice | cardtype | defaultinput | audioratelimit | hostname | dvb_swfilter | dvb_sat_type | dvb_wait_for_seqstart | skipbtaudio | dvb_on_demand | dvb_diseqc_type | firewire_speed | firewire_model | firewire_connection | signal_timeout | channel_timeout | dvb_tuning_delay | contrast | brightness | colour | hue | diseqcid | dvb_eitscan | inputname | sourceid | externalcommand              | changer_device | changer_model | tunechan | startchan | displayname | dishnet_eit | recpriority | quicktune | schedorder | livetvorder | reclimit | schedgroup |
>+--------+----------+-----------------------------------------------------+-------------+-----------+----------+--------------+----------------+----------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+-----------+----------+------------------------------+----------------+---------------+----------+-----------+-------------+-------------+-------------+-----------+------------+-------------+----------+------------+
>|     11 |        0 | /dev/pvr_mpeg0                                      | NULL        | /dev/vbi0 | MPEG     | Television   |           NULL | pvr      |            0 |            0 |                     1 |           0 |             0 |            NULL |              0 | NULL           |                   0 |           1000 |           12000 |                0 |        0 |          0 |      0 |   0 |     NULL |           1 | Tuner 1   |        3 | /home/mythtv/bin/chan_change | NULL           | NULL          | 3        | 52        | AD          |           0 |           5 |         0 |         10 |          10 |        1 |          0 |
>|     13 |        0 | http://www.avenard.org/files/media/playlist-hls.m3u | NULL        | NULL      | FREEBOX  | Television   |           NULL | pvr      |            0 |            0 |                     1 |           0 |             0 |            NULL |              0 | NULL           |                   0 |           1000 |           30000 |                0 |        0 |          0 |      0 |   0 |     NULL |           1 | MPEG2TS   |        4 | NULL                         | NULL           | NULL          | NULL     | 300       |             |           0 |           0 |         0 |         13 |          13 |        1 |          0 |
>|     14 |        0 | http://brian.example.com/hls-00.m3u                 | NULL        | NULL      | FREEBOX  | Television   |           NULL | pvr      |            0 |            0 |                     1 |           0 |             0 |            NULL |              0 | NULL           |                   0 |           1000 |           30000 |                0 |        0 |          0 |      0 |   0 |     NULL |           1 | MPEG2TS   |        5 | NULL                         | NULL           | NULL          | NULL     | 3         | My HLS      |           0 |          10 |         0 |          5 |           5 |        5 |          0 |
>|     36 |       14 | http://brian.example.com/hls-00.m3u                 | NULL        | NULL      | FREEBOX  | Television   |           NULL | pvr      |            0 |            0 |                     1 |           0 |             0 |               0 |              0 | NULL           |                   0 |           1000 |           30000 |                0 |        0 |          0 |      0 |   0 |        0 |           1 | MPEG2TS   |        5 | NULL                         | NULL           | NULL          | NULL     | 3         | My HLS      |           0 |          10 |         0 |          5 |           5 |        5 |          0 |
>|     35 |       14 | http://brian.example.com/hls-00.m3u                 | NULL        | NULL      | FREEBOX  | Television   |           NULL | pvr      |            0 |            0 |                     1 |           0 |             0 |               0 |              0 | NULL           |                   0 |           1000 |           30000 |                0 |        0 |          0 |      0 |   0 |        0 |           1 | MPEG2TS   |        5 | NULL                         | NULL           | NULL          | NULL     | 3         | My HLS      |           0 |          10 |         0 |          5 |           5 |        5 |          0 |
>|     34 |       14 | http://brian.example.com/hls-00.m3u                 | NULL        | NULL      | FREEBOX  | Television   |           NULL | pvr      |            0 |            0 |                     1 |           0 |             0 |               0 |              0 | NULL           |                   0 |           1000 |           30000 |                0 |        0 |          0 |      0 |   0 |        0 |           1 | MPEG2TS   |        5 | NULL                         | NULL           | NULL          | NULL     | 3         | My HLS      |           0 |          10 |         0 |          5 |           5 |        5 |          0 |
>|     33 |       14 | http://brian.example.com/hls-00.m3u                 | NULL        | NULL      | FREEBOX  | Television   |           NULL | pvr      |            0 |            0 |                     1 |           0 |             0 |               0 |              0 | NULL           |                   0 |           1000 |           30000 |                0 |        0 |          0 |      0 |   0 |        0 |           1 | MPEG2TS   |        5 | NULL                         | NULL           | NULL          | NULL     | 3         | My HLS      |           0 |          10 |         0 |          5 |           5 |        5 |          0 |
>+--------+----------+-----------------------------------------------------+-------------+-----------+----------+--------------+----------------+----------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+-----------+----------+------------------------------+----------------+---------------+----------+-----------+-------------+-------------+-------------+-----------+------------+-------------+----------+------------+
>
>But in this case it's not:
>
>2018-02-28 08:13:06.945916 I  SEAL Team - No Man's Land              7 WWNY    07 21:01-22:00   0 11  A 11 0
>...
>2018-02-28 08:13:06.950859 I  marketplace                            4 CBOT    08 19:00-19:30   0 14  A 14 0
>2018-02-28 08:13:06.950913 I  SEAL Team - No Man's Land              3 CIII    08 19:00-20:00   0  0  A  E 0
>
>But as you can see, there is one other recording happening on the HLS
>Capture Card at the same time.
>
>Is the Max recordings of 5 not working properly?
>
>Cheers,
>b.

Yes, max recordings for IPTV tuners is only supposed to be set to 2
and only 2.  Setting it to 5 should not be possible and is likely a
bug.  The reason for it being set to 2 is to allow for overlapping of
pre- and post-roll between programs from the same IPTV URL.  There is
no need for more than 2 as there is only one program being received
from one URL at any one time, so there is no need for recording
multiple programs at once.  If you have different IPTV channels
configured, they will have different URLs and will need another
separate IPTV tuner to receive on, as an IPTV tuner can only receive
one URL at once.

The multirec capabilities are used for tuners where there are multiple
channels able to be received at the same time from a tuner tuned in on
one frequency, where there are multiple streams being received that
make up those multiple channels.  One multirec tuner gets assigned to
receive each channel to be recorded, but the physical tuner they are
attached to remains tuned to the same frequency.  With IPTV tuners,
the "physical tuner" bit is replaced by a IPTV receiver "tuned" to one
URL.  But one URL does not have multiple channels on it.

To complicate things in the future, the SAT>IP protocol does have the
ability to have multiple streams for multiple channels, as it provides
all the capabilities of the physical tuner it is generated from.  But
MythTV does not support SAT>IP yet, and its IPTV tuners only work with
streams representing one channel.

So, it you have multiple IPTV channels in your database, and want to
record from all of them at the same time, you will need to create as
many IPTV tuners as you have channels.


More information about the mythtv-users mailing list