@c00l8thome said:
Hi Piotr,
I am running mythtv on a ubuntu 16.04 installation with apache2. I have moved the plex-plugin-mythtv-livetv.php file into the /var/www/html/ directory, updated my IP address and logging and made it universally accessible.
Well - it looks like You are installing plugin in wrong way.
Downloaded .zip file has 2 components:
- MythLive.bundle
- plex-livetv-feeder.php
MythLive.bundle needs to be placed in PLEX plugins subdir
plex-livetv-feeder.php needs to be placed in http server root doc directory.
When you place MythLive.bundle in right place (plugins dir in Your PLEX installation) and restart PLEX - You should see MythTV LiveTV in PLEX channels.
If there is no such thing - You are wrongly installing plugin…
When You place plex-livetv-feeder.php in http root doc directory - You can test it via:
curl -v “http://<your_web_server_ip>/plex-livetv-feeder.php?chanid=1&verbose=Debug”
You should see script sending data to You…
or
launching VLC and asking to playback from URL:
http://<your_web_server_ip>/plex-livetv-feeder.php?chanid=1&verbose=Debug
you should see TV channel 1 playback on vlc.
If there is issue with .php script - pls provide content of /var/log/plex-livetv-feeder.log
it looks like forum software removes some strings in my posts…
pls provide IP address of Your server in right way in URLs I provided in my posts…
The bundle is showing up correctly as a plugin. I am struggling with the php script.
I ran: http:///plex-livetv-feeder.php?chanid=1&verbose=Debug
I received the following:
GET /plex-livetv-feeder.php?chanid=1&verbose=Debug HTTP/1.1
Host:
User-Agent: curl/7.47.0
Accept: /
< HTTP/1.1 200 OK
< Date: Sat, 30 Dec 2017 18:43:21 GMT
< Server: Apache/2.4.18 (Ubuntu)
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=UTF-8
Below I received the content of the plex-livetv-feeder.php file but no data stream.
Also, there is no plex-livetv-feeder.log in the /var/log directory.
I am having the same issue with posting IP addresses the command I ran was
curl -v “http://myip/plex-livetv-feeder.php?chanid=1&verbose=Debug”
Also, there is no plex-livetv-feeder.log in the /var/log directory.
May You check php errors log in Your system?
Maybe there is issue with /var/log directory rights so plex-livetv-feeder.php can’t write…
Anyway - we need to know why plex-livetv-feeder.php is not working as expected.
OK, I made progress. I reinstalled php, since I had a conflict between php5 and php7.1 and the php file executes. The error log shows that “No free tuner found … Exting”
Here are the details (I edited out my IP address):
SYSTEM :: MythTV LiveTV feeder v1.0.1 ©unsober, Piotr Oniszczuk
SYSTEM :: -Backend IP : MyIP
SYSTEM :: -Backend port : 6543
SYSTEM :: -Reg. channel : 7
SYSTEM :: -Client ID : mythtvclient
SYSTEM :: -Content. type : video/mpeg
SYSTEM :: -Container type: mpeg
SYSTEM :: -Data chunks : 256000
SYSTEM :: -Verbosity : 2
SYSTEM :: Asking to connected client: mythtvclient
SYSTEM :: Trying to connect:MyIP (MyIP)
SYSTEM :: Socket Created
SYSTEM :: Connection Established
MYTH >> 29 MYTH_PROTO_VERSION 91 BuzzOff
MYTH << 13 REJECT[]:[]88
MYTH >> 36 ANN Playback MainHTPC-mythtvclient 0
MYTH << 0
MYTH >> 21 GET_FREE_INPUT_INFO 0
MYTH << 0
SYSTEM :: No free tuner found…Exting
I should probably mention that I am running my mythtv setup with a ceton multi-tuner card. Thanks again for all your help and HAPPY NEW YEAR
@c00l8thome said:
OK, I made progress. I reinstalled php, since I had a conflict between php5 and php7.1 and the php
SYSTEM :: Connection Established
MYTH >> 29 MYTH_PROTO_VERSION 91 BuzzOff
MYTH << 13 REJECT:88
MYTH >> 36 ANN Playback MainHTPC-mythtvclient 0
MYTH << 0
MYTH >> 21 GET_FREE_INPUT_INFO 0
MYTH << 0
SYSTEM :: No free tuner found…Exting
Well - log says:
MYTH << 13 REJECT:88
this means You have BE with myth 0.28 (as this ver has PROTO=88) while my script is designed to work with current master (v29 also should work OK).
So we have following choices:
1.You will upgrade to v29
2.I will modify script to work with 0.28.
As I don’t have v0.28 mythtv system to test - I’ll not work on option2.
So: If You still want to play with mine livetv plugin - pls upgrade mythtv to v29 or…
br
I upgraded to 0.29 but still get the “No free tuner found …Exting” message
Here is the log entry:
SYSTEM :: MythTV LiveTV feeder v1.0.1 (c)unsober, Piotr Oniszczuk
SYSTEM :: -Backend IP : MyIP
SYSTEM :: -Backend port : 6543
SYSTEM :: -Reg. channel : 6
SYSTEM :: -Client ID : 4wqnyz8vryvaje719pcckuen
SYSTEM :: -Content. type : video/mpeg
SYSTEM :: -Container type: mpeg
SYSTEM :: -Data chunks : 256000
SYSTEM :: -Verbosity : 1
SYSTEM :: Asking to connected client: 4wqnyz8vryvaje719pcckuen
SYSTEM :: Trying to connect:MyIP(MyIP)
SYSTEM :: Socket Created
SYSTEM :: Connection Established
MYTH >> 29 MYTH_PROTO_VERSION 91 BuzzOff
MYTH << 13 ACCEPT:91
MYTH >> 48 ANN Playback MainHTPC-4wqnyz8vryvaje719pcckuen 0
MYTH << 2 OK
MYTH >> 21 GET_FREE_INPUT_INFO 0
MYTH << 475 MPEG2TS:1:1:0:1:Input 1:MPEG2TS:0:1:1:0:MPEG2TS:1:2:0:2:Input 2:MPEG2TS:0:2:1:0:MPEG2TS:1:3:0:3:Input 3:MPEG2TS:0:3:1
SYSTEM :: No free tuner found…Exting
Ok, I see You are on v29 now. good.
script talks to backend - but your system is using different tuner type than I developed script for.
(I already stated that currently I’m supporting only DVB type of tuners).
I need to work on this so I’ll try to develop universal script which will support HDPVR and DVB types. Give me pls some time - I return to You.
all best in new year!
no problem … thank you and please let me know if I can help in any way.
Hi, may You pls download v.1.1 of php script and test how it works?
The good news is, it works perfectly using VLC.
However, I am unable to get it to run within Plex. I tried different configurations at the Plex channel (I tried auto and mpeg2video since VLC calls the encoded stream mpegv.)
I see that the tuner in Mythtv is recording the live-tv channel I selected in Plex but I never see a picture and the Plex window times out.
Here is the error log (please note that I only copied the beginning of the log until it keeps repeating the same message over and over)
SYSTEM :: MythTV LiveTV feeder v1.1 ©unsober, Piotr Oniszczuk
SYSTEM :: -Backend port : 6543
SYSTEM :: -Reg. channel : 3
SYSTEM :: -Client ID : w2dncav35yk18p5d20hqqzdl
SYSTEM :: -Content. type : video/mpeg
SYSTEM :: -Container type: mpeg
SYSTEM :: -Data chunks : 256000
SYSTEM :: -Verbosity : 1
SYSTEM :: Asking to connected client: w2dncav35yk18p5d20hqqzdl
SYSTEM :: Trying to connect:MyIP(MyIP)
SYSTEM :: Socket Created
SYSTEM :: Connection Established
MYTH >> 29 MYTH_PROTO_VERSION 91 BuzzOff
MYTH << 13 ACCEPT[]:[]91
MYTH >> 48 ANN Playback MainHTPC-w2dncav35yk18p5d20hqqzdl 0
MYTH << 2 OK
MYTH >> 21 GET_FREE_INPUT_INFO 0
MYTH << 475 MPEG2TS[]:[]1[]:[]1[]:[]0[]:[]1[]:[]Input 1:MPEG2TS[]:[]0[]:[]1[]:[]1[]:[]0[]:[]MPEG2TS[]:[]1[$
2018-01-02 14:34:18 SYSTEM :: Found free tuner:1
MYTH >> 83 QUERY_RECORDER 1[]:[]SPAWN_LIVETV[]:[]MainHTPC-w2dncav35yk18p5d20hqqzdl[]:[]0[]:[]3
MYTH << 2 OK
2018-01-02 14:34:19 SYSTEM :: Closing data socket
MYTH >> 42 QUERY_RECORDER 1[]:[]GET_CURRENT_RECORDING
MYTH << 595 General Hospital[]:[][]:[]Anna is in a bind; Nina gets anxious; Sam is interrupted; Jason conf$
2018-01-02 14:34:19 SYSTEM :: Storage Group (LiveTV) and File (1003_20180102193419.ts) Found
MYTH >> 92 QUERY_SG_FILEQUERY[]:[]MainHTPC[]:[]LiveTV[]:[]/mnt/mount/recordings2/1003_20180102193419.ts
MYTH << 66 /mnt/mount/recordings2/1003_20180102193419.ts[]:[]1514921659[]:[]0
SYSTEM :: No data yet… (fileSize is 0)
SYSTEM :: Closing data socket
MYTH >> 42 QUERY_RECORDER 1[]:[]GET_CURRENT_RECORDING
MYTH << 595 General Hospital[]:[][]:[]Anna is in a bind; Nina gets anxious; Sam is interrupted; Jason conf$
SYSTEM :: Storage Group (LiveTV) and File (1003_20180102193419.ts) Found
MYTH >> 92 QUERY_SG_FILEQUERY[]:[]MainHTPC[]:[]LiveTV[]:[]/mnt/mount/recordings2/1003_20180102193419.ts
MYTH << 66 /mnt/mount/recordings2/1003_20180102193419.ts[]:[]1514921659[]:[]0
SYSTEM :: No data yet… (fileSize is 0)
SYSTEM :: Closing data socket
MYTH >> 42 QUERY_RECORDER 1[]:[]GET_CURRENT_RECORDING
MYTH << 595 General Hospital[]:[][]:[]Anna is in a bind; Nina gets anxious; Sam is interrupted; Jason conf$
SYSTEM :: Storage Group (LiveTV) and File (1003_20180102193421.ts) Found
MYTH >> 92 QUERY_SG_FILEQUERY[]:[]MainHTPC[]:[]LiveTV[]:[]/mnt/mount/recordings2/1003_20180102193421.ts
MYTH << 66 /mnt/mount/recordings2/1003_20180102193421.ts[]:[]1514921661[]:[]0
SYSTEM :: No data yet… (fileSize is 0)
SYSTEM :: Closing data socket
MYTH >> 42 QUERY_RECORDER 1[]:[]GET_CURRENT_RECORDING
MYTH << 595 General Hospital[]:[][]:[]Anna is in a bind; Nina gets anxious; Sam is interrupted; Jason conf$
SYSTEM :: Storage Group (LiveTV) and File (1003_20180102193421.ts) Found
MYTH >> 92 QUERY_SG_FILEQUERY[]:[]MainHTPC[]:[]LiveTV[]:[]/mnt/mount/recordings2/1003_20180102193421.ts
MYTH << 68 /mnt/mount/recordings2/1003_20180102193421.ts[]:[]1514921662[]:[]376
SYSTEM :: Data present (fileSize is 376)
SYSTEM :: Socket Created
SYSTEM :: Connection Established
SYSTEM :: Will use MythTV socket (76)
SYSTEM :: Asked backend for 256000 bytes and received 256000 bytes from backend
2018-0SYSTEM :: Sending data PLEX
SYSTEM :: Asked backend for 105524 bytes and received 105524 bytes from backend
SYSTEM :: Sending data PLEX
SYSTEM :: Asked backend for 16920 bytes and received 16920 bytes from backend
SYSTEM :: Sending data PLEX
SYSTEM :: Asked backend for 255500 bytes and received 255500 bytes from backend
SYSTEM :: Sending data PLEX
SYSTEM :: Asked backend for 174832 bytes and received 174832 bytes from backend
SYSTEM :: Sending data PLEX
Perfect. Now we have working part feeding data to PLEX :-).
Looks like PLEX can’t transcode data feed by script.
I assume myth BE, web server and PLEX server all are on single the same host?
May You pls provide PLEX log (Plex Media Server.log file) content when you asked for watching TV channel?
Yes, Plex and Mythtv BE run on the same hardware.
The plex error message I received was “shaka3015 (Media)”. I will send you the error log to warpme@o2.pl is that OK?
@c00l8thome said:
Yes, Plex and Mythtv BE run on the same hardware.
The plex error message I received was “shaka3015 (Media)”. I will send you the error log to warpme@o2.pl is that OK?
Sure. email will be ok.
what is Your client to PLEX?
is this Mozilla?
what is OS?
I have exactly this error “shaka3015 (Media)” on Mozilla (tested win10 and macOS 10.13.2 on MacBookPro).
I just tested chrome (63.0.3239.108) on MacBookPro - works OK.
I have also perfectly working PLEX playback on iPhone6 and MacBook on Safari.
br
I am running a Ubuntu 16.04 environment and switching from Firefox to Chromium did the trick for me. The only observation I made is that it takes quite a bit of time until the stream is ended on the Mythtv BE. It works much quicker using VLC. Awesome job otherwise. I am super excited that this add-on finally works. THANK YOU VERY much
@c00l8thome said:
I am running a Ubuntu 16.04 environment and switching from Firefox to Chromium did the trick for >me.
Right. It is sad that only Mozilla has issue with PLEX playback as for me Mozilla is single browser having nice feature of in-advance loading HTML5 webm streaming I’m using to watch in mythweb with adverts skipping ;-(
The only observation I made is that it takes quite a bit of time until the stream is ended on the Mythtv >BE. It works much quicker using VLC.
VLC starts fast as there is no any transcode. php script start to feed data as soon as BE tunes. VLC starts to display as soon as data is received.
With PLEX we have transcoding so PLEX needs to buffer some data needed for first HLS/DASH transcoded segment. Next, PLEX player needs to pre-buffer some data before starting playback. All this provide us nice feature: PLEX can transcode to lower bitrate - so we can watch over slow internet & unstable connections.
This is main reason why I’m playing with PLEX: we can watch myth tv content over slow connections on the road…
Awesome job otherwise. I am super excited that this add-on >finally works. THANK YOU VERY much
I’m glad You found it working & useful!
Pls let me know how stability looks.
In any issue - pls provide log from PHP and PLEX. It will be useful for me to improve…
br
Piotr, the plugin was working great until I updated the Plex server to the latest release. Do you know of nay changes that interfere with your code?
Also, after using it for a while I think the it would be great if the channels could be organized a little more. I currently have about 900 TV channels and I have to scroll for a long time to get to the HD channels that start at ~600