[mythtv-users] Iptv

Daryl McDonald darylangela at gmail.com
Fri Feb 23 18:13:08 UTC 2018


On Fri, Feb 23, 2018 at 10:37 AM, Stephen Worthington <
stephen_agent at jsw.gen.nz> wrote:

> On Fri, 23 Feb 2018 10:18:07 -0500, you wrote:
>
> >I've got guide data now, by sorting out scheduals direct.
> >Unfortunately, no "watch this channel" does not work, it tries, then
> >returns to the guide page.
> >I don't use live TV function, but, I tested successfully watching another
> >channel.
> >
> >trieli at mythtv:~$ wget http://127.0.0.1/playlist.m3u
> >--2018-02-23 09:45:01--  http://127.0.0.1/playlist.m3u
> >Connecting to 127.0.0.1:80... connected.
> >HTTP request sent, awaiting response... 200 OK
> >Length: 93 [audio/x-mpegurl]
> >Saving to: ‘playlist.m3u.4’
> >
> >playlist.m3u.4      100%[===================>]      93  --.-KB/s    in 0s
> >
> >
> >2018-02-23 09:45:01 (5.88 MB/s) - ‘playlist.m3u.4’ saved [93/93]
> >
> >trieli at mythtv:~$
> >
> >trieli at mythtv:~$ sudo cat /var/www/html/playlist.m3u
> >#EXTM3U
> >#EXTINF:0,9 - CBC
> >#EXTMYTHTV:xmltvid=10088
> >https://watch.cbc.ca/live/channel/windsor
> >trieli at mythtv:~$
> >
> >Cutting and pasting the URL from the playlist into a FireFox browser
> works.
> >
> >Mythweb was not set up, So I did "sudo apt install mythweb -y", might
> there
> >be permission limitations here?
>
> Mythweb is a red herring.  Apache is working to allow wget to download
> the playlist.m3u file - that is all it is used for.  Mythweb is not
> involved in that download, or in playing IPTV URLs.  Having mythweb
> installed simply guarantees that Apache will be installed.
>
> The playlist.m3u file is only used my mythtv-setup to configure IPTV
> channels - it is not involved once the channels are set up.  So if you
> can see the channel in the program guide, and the URL works from a
> browser, then it should work from Live TV or for a recording.  Unless
> (as I suspect) the URL is redirected to a different URL when you play
> it.
>
> But before trying to track down a possible redirection (which is
> possible but a bit difficult with https), it would pay to check that
> the database entries for the channel are correct.  So what do these
> three SQL queries produce?
>
> select * from capturecard where cardtype='FREEBOX'\G
> select * from channel where name='CBC'\G
> select * from iptv_channel where chanid=(select chanid from channel
> where name='CBC')\G
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>

 Database changed
mysql> select * from capturecard where cardtype='FREEBOX'\G
*************************** 1. row ***************************
               cardid: 11
             parentid: 0
          videodevice: http://127.0.0.1/playlist.m3u
          audiodevice: NULL
            vbidevice: NULL
             cardtype: FREEBOX
         defaultinput: Television
       audioratelimit: NULL
             hostname: mythtv
         dvb_swfilter: 0
         dvb_sat_type: 0
dvb_wait_for_seqstart: 1
          skipbtaudio: 0
        dvb_on_demand: 0
      dvb_diseqc_type: NULL
       firewire_speed: 0
       firewire_model: NULL
  firewire_connection: 0
       signal_timeout: 1000
      channel_timeout: 65000
     dvb_tuning_delay: 0
             contrast: 0
           brightness: 0
               colour: 0
                  hue: 0
             diseqcid: NULL
          dvb_eitscan: 1
            inputname: MPEG2TS
             sourceid: 7
      externalcommand: NULL
       changer_device: NULL
        changer_model: NULL
             tunechan: NULL
            startchan: 9
          displayname: HLS
          dishnet_eit: 0
          recpriority: 0
            quicktune: 0
           schedorder: 1
          livetvorder: 1
*************************** 2. row ***************************
               cardid: 12
             parentid: 11
          videodevice: http://127.0.0.1/playlist.m3u
          audiodevice: NULL
            vbidevice: NULL
             cardtype: FREEBOX
         defaultinput: Television
       audioratelimit: NULL
             hostname: mythtv
         dvb_swfilter: 0
         dvb_sat_type: 0
dvb_wait_for_seqstart: 1
          skipbtaudio: 0
        dvb_on_demand: 0
      dvb_diseqc_type: 0
       firewire_speed: 0
       firewire_model: NULL
  firewire_connection: 0
       signal_timeout: 1000
      channel_timeout: 65000
     dvb_tuning_delay: 0
             contrast: 0
           brightness: 0
               colour: 0
                  hue: 0
             diseqcid: 0
          dvb_eitscan: 1
            inputname: MPEG2TS
             sourceid: 7
      externalcommand: NULL
       changer_device: NULL
        changer_model: NULL
             tunechan: NULL
            startchan: 9
          displayname: HLS
          dishnet_eit: 0
          recpriority: 0
            quicktune: 0
           schedorder: 1
          livetvorder: 1
2 rows in set (0.00 sec)

mysql> select * from channel where name='CBC'\G
*************************** 1. row ***************************
           chanid: 7009
          channum: 9
           freqid: NULL
         sourceid: 7
         callsign: CBET
             name: CBC
             icon:
         finetune: NULL
     videofilters:
          xmltvid: 10088
      recpriority: 0
         contrast: 32768
       brightness: 32768
           colour: 32768
              hue: 32768
         tvformat: Default
          visible: 1
    outputfilters:
    useonairguide: 0
          mplexid: NULL
        serviceid: 0
         tmoffset: 0
  atsc_major_chan: 0
  atsc_minor_chan: 0
      last_record: 0000-00-00 00:00:00
default_authority:
       commmethod: -1
           iptvid: NULL
1 row in set (0.00 sec)

mysql> select * from iptv_channel where chanid=(select chanid from channel
    -> where name='CBC')\G
*************************** 1. row ***************************
 iptvid: 4
 chanid: 7009
    url: https://watch.cbc.ca/live/channel/windsor
   type: data
bitrate: 0
1 row in set (0.00 sec)

mysql>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180223/25f91a49/attachment.html>


More information about the mythtv-users mailing list