[mythtv-users] Iptv
Daryl McDonald
darylangela at gmail.com
Fri Feb 23 15:18:07 UTC 2018
On Thu, Feb 22, 2018 at 8:27 PM, Stephen Worthington <
stephen_agent at jsw.gen.nz> wrote:
> On Thu, 22 Feb 2018 11:22:37 -0500, you wrote:
>
> >On Wed, Feb 21, 2018 at 8:43 PM, Stephen Worthington <
> >stephen_agent at jsw.gen.nz> wrote:
> >
> >> On Wed, 21 Feb 2018 20:33:46 -0500, you wrote:
> >>
> >> >On Wed, Feb 21, 2018 at 7:55 PM, Stephen Worthington <
> >> >stephen_agent at jsw.gen.nz> wrote:
> >> >
> >> >> On Wed, 21 Feb 2018 19:34:29 -0500, you wrote:
> >> >>
> >> >> >> > trieli at mythtv:~$ ls -al /var/www/html
> >> >> >> >total 24
> >> >> >> >drwxr-xr-x 2 root root 4096 Feb 21 10:26 .
> >> >> >> >drwxr-xr-x 4 root root 4096 May 26 2016 ..
> >> >> >> >-rw-r--r-- 1 root root 11321 May 26 2016 index.html
> >> >> >> >-rw-r--r-- 1 root root 50 Feb 21 10:26 playlist.m3u
> >> >> >> >trieli at mythtv:~$
> >> >> >> >
> >> >> >> >Is there anything wrong with these permissions?
> >> >> >>
> >> >> >> No. The web server can read the files, as it runs as root. So
> >> access
> >> >> >> to the files is then controlled by the web server. Which will
> allow
> >> >> >> you to access them from anywhere that has access to the web
> server -
> >> >> >> it is not set up by default with any restrictions on access. To
> >> check
> >> >> >> that it is working, run this from a (non-root) command prompt on
> that
> >> >> >> box:
> >> >> >>
> >> >> >> wget http://127.0.0.1/playlist.m3u
> >> >> >>
> >> >> >> It should download a copy of the playlist.m3u file.
> >> >>
> >> >> >
> >> >> >Thanks Stephen, that gives me this:
> >> >> >trieli at mythtv:~$ wget http://127.0.0.1/playlist.m3u
> >> >> >--2018-02-21 19:18:59-- http://127.0.0.1/playlist.m3u
> >> >> >Connecting to 127.0.0.1:80... connected.
> >> >> >HTTP request sent, awaiting response... 200 OK
> >> >> >Length: 50 [audio/x-mpegurl]
> >> >> >Saving to: ‘playlist.m3u’
> >> >> >
> >> >> >playlist.m3u 100%[===================>] 50 --.-KB/s
> in
> >> 0s
> >> >> >
> >> >> >
> >> >> >2018-02-21 19:18:59 (3.47 MB/s) - ‘playlist.m3u’ saved [50/50]
> >> >> >
> >> >> >trieli at mythtv:~$
> >> >> >
> >> >> >So maybe this isn't right?
> >> >>
> >> >> That is all working correctly.
> >> >>
> >> >> >trieli at mythtv:~$ cat /var/www/html/playlist.m3u
> >> >> >#EXTM3U
> >> >> >https://watch.cbc.ca/live/channel/windsor
> >> >> >trieli at mythtv:~$
> >> >> >
> >> >> >If the URL that I can stream on FireFox isn't what I should use, how
> >> do I
> >> >> >determine what to use? Or is something else wrong with my playlist?
> >> >>
> >> >> Your playlist.m3u file is not in the correct format. It needs some
> >> >> extra bits to make it work with MythTV. Here is an example from my
> >> >> file:
> >> >>
> >> >> #EXTINF:0,4061 - ESPN2
> >> >> #EXTMYTHTV:xmltvid=espn2.sky.co.nz
> >> >> #EXTVLCOPT:program=1222
> >> >> rtsp://satip.jsw.gen.nz:554/?src=1&freq=12734&msys=dvbs&
> >> >> plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,
> 311,1011,1111
> >> >>
> >> >> The #EXTINF: line is required and always has the 0, at the front,
> then
> >> >> the channum value, a space, a - character, a space and then the
> >> >> channel name (which, IIRC, gets put in both the name and callsign
> >> >> fields in the database). The #EXTMYTHTV: line always has the
> xmltvid=
> >> >> bit and following that the correct xmltvid value to match the EPG
> data
> >> >> you are using. It is optional - if you do not have EPG for the
> >> >> channel, do not use a #EXTMYTHTV: line. The #EXTVLCOPT: line is also
> >> >> optional - it always has a program= followed by the serviceid of the
> >> >> channel. You should not use #EXTVLCOPT: as your IPTV channels are
> >> >> pure web streaming channels - mine come from tuners via minisatip and
> >> >> do have serviceid values.
> >> >>
> >> >> There can also be problems with URLs that get redirected to a
> >> >> different URL. I think that redirection code was added to
> >> >> mythbackend, so it should now handle that, but I have not tested it
> >> >> myself. If it does not, then you have to somehow track through the
> >> >> redirection(s) and find the real URL and use that.
> >> >> _______________________________________________
> >> >> 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
> >> >>
> >> >
> >> >My bad, I assumed that the leading # meant it was commented out and
> >> >therefore optional. How this:
> >> >
> >> > trieli at mythtv:~$ cat /var/www/html/playlist.m3u
> >> >#EXTM3U
> >> >#EXTINF:0,9_1 - CBC
> >> >#EXTMYTHTV:xmltvid=72772
> >> >https://watch.cbc.ca/live/channel/windsor
> >> >trieli at mythtv:~$
> >>
> >> I do not think 9_1 would work as a channnum - the field in the
> >> database is "varchar", but as far as I know, the value has to actually
> >> be a positive integer number. The rest looks fine.
>
> >I edited the playlist:
> > #EXTM3U
> >#EXTINF:0,9 - CBET-DT
> >#EXTMYTHTV:xmltvid=72772
> >https://watch.cbc.ca/live/channel/windsor
> >
> >restarted apache2, scanned or channels, confirmed channel in the editor,
> >but no program info populates when I exit BE and run mythfildatabase,
> >Is this a scheduals direct issue, I've looked there but don't see how to
> >crteate a HLS lineup.
>
> There is no EPG on the streams, so yes, you will need to get that via
> Schedules Direct. If you go to the Guide and do M(enu) > Watch This
> Channel, does it work?
> _______________________________________________
> 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
>
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?
trieli at mythtv:~$ ls -al /usr/share/mythtv/mythweb
total 76
drwxr-xr-x 10 root root 4096 Feb 21 14:42 .
drwxr-xr-x 16 root root 4096 Feb 21 14:42 ..
drwxr-xr-x 5 root root 4096 Feb 21 14:42 classes
drwxr-xr-x 2 root root 4096 Feb 21 14:42 configuration
drwxrwxr-x 2 root www-data 4096 Feb 21 14:43 data
-rw-r--r-- 1 root root 2131 Apr 12 2016 Dockerfile
-rw-r--r-- 1 root root 6 Apr 13 2016 .dockerignore
drwxr-xr-x 2 root root 4096 Feb 21 14:42 includes
drwxr-xr-x 5 root root 4096 Feb 21 14:42 js
drwxr-xr-x 16 root root 4096 Feb 21 14:42 modules
-rw-r--r-- 1 root root 10025 Apr 12 2016 mythweb.conf.apache
-rw-r--r-- 1 root root 2050 Apr 12 2016 mythweb.conf.lighttpd
-rw-r--r-- 1 root root 1425 Apr 12 2016 mythweb.conf.nginx
-rw-r--r-- 1 root root 1354 Apr 12 2016 mythweb.php
-rwxr-xr-x 1 root root 2968 Apr 12 2016 mythweb.pl
drwxr-xr-x 9 root root 4096 Feb 21 14:42 skins
drwxr-xr-x 2 root root 4096 Feb 21 14:42 tests
trieli at mythtv:~$
What else can I look at? TIA Daryl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180223/9c54d8aa/attachment.html>
More information about the mythtv-users
mailing list