-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set the program number #195
Comments
This would appear to be kodi centric and not related to the addon. I stand to be corrected. |
So a PVR addon can't modify the pInput property named program. |
All the addon does is pass the stream to kodi. I would imagine it’s Inputstream.adaptive that demuxes it and plays it back. |
@phunkyfish |
That would be true however the addon uses inputstreams for live tv/radio so neither of those functions are used (and should not be). So if an M3U is used the only thing read from it is the URL. If I pass the m3u8 directly kodi fails to load it. I.e. I have no way to add the property you are looking for. |
Could you explain the use case behind this please? |
Kodi by default picks the mpegts program number of stream 0, but not always this is the correct program number that the enigma2 is sending. When this happens kodi will hang with a black screen. |
There are two methods that I know to discover the program number:
|
Do you have some examples of both 1 and 2? I only see this this is an M3U8:
And I don't see anything for web/getservices |
I mean the URI %sweb/getservices?sRef=%s that will download a xml like this:
With this xml we know e2servicereference of "Test channel", and that program number is 401 for "Test channel" because in the e2servicereference -> 1:0:1:191:27:36:CE40000:0:0:0: the hexadecimal 191 equals 401 |
In my case I get a m3u8 like this:
|
It doesn't make sense. Mine never chooses the wrong program and it's never on program 0. What platform and version are you using? Can you supply a full debug log? |
In the addon settings, in the connection tab, do you have this setting enabled or disabled under streaming?
|
I have the default disabled. |
I didn't say program 0, kodi default to stream 0 whatever program number it is.
|
I see now. That option I mentioned won’t make a difference. |
If I could find a stream that worked the same way I could try some things out, such as sending the m3u8 file before the stream etc. |
Logically you would think the first available video stream would be chosen. The choice here appears to be random as there are two other programs that are stream 0. 521 and 5038. |
I try loading the channel m3u8 with IPTV Simple Client but still didn't load the correct program. It ignores the #EXTVLCOPT:program=401 |
I think will pick the first program with stream 0 that encounter in the mpegts. |
greping the pvr.vuplus source found:
It uses GetLiveStreamURL
|
No, that is a helper function. It’s not synonymous with the API function. |
So it appears the support is not in kodi at all for some reason. Can I ask where you got the code snippet you started this issue with? I.e. where in the source? |
The code is from xbmc DVDDemuxFFmpeg.cpp |
The pvr.iptvsimple uses the new API, but ignores EXTVLCOPT:program |
Does pvr.iptvsimple read the program value and add it to the stream |
It is not coded to read "EXTVLCOPT:program", ignores it. |
Can you build pvr.iptvsimple? Adding support for that is easy and as least you could test it then. |
Already did and it works :) |
Great, you should submit that as a PR for other simpleiptv users |
Then it’s just one bug to file luckily. What I don’t understand is why more users don’t have the same issue. |
I have a workaround. Not as fast and with many features as you @phunkyfish have it now, and for that you are doing a good job. The workaround is a old version of this plugin with PVR API 5.10.1 (https://github.com/kodi-pvr/pvr.vuplus/tree/e2efab9eecfce2fc4feefa2f47250e4dc5eb7a60) with this patch:
@FernetMenta This problem have a simple fix at kodi, and don't envolves changing nothing in this plugin or in any kodi API.
but it requires a avformat_find_stream_info() before.
@phunkyfish I will try to explore the openATV source to understand what's going on, and then report the bug. Can you point me where to look? |
@joaoppp this patch is wrong. nb_programs is greater 0 for a lot of cases streaminfo is not desired. btw: in order to fix some other issues, streaminfo needs to be skipped for all mpegts. |
@FernetMenta But if avformat_find_stream_info() is skipped how would this work?
Is there any better way? |
try moving this code to CDVDDemuxFFmpeg::CreateStreams. this method gets called after every streamchange. |
Afraid I don't know @joaoppp. With Enigma2 I usually post in the images forum and track down the component to report the bug in from there. I assume this would be a core issue. |
@FernetMenta
by this: (tested and working)
|
I will investigate this thanks. |
@joaoppp have you tried transcoding yet? |
I wonder is this the same issue as #208 So an MPTS stream, can you check if you can playback a recording from your STB? |
@joaoppp are you still there? |
Closing, please see #237 for solution. |
I'm requesting that for each channel the mpegts program number be included too if exists at m3u EXTVLCOPT:program, so it would then be picked by kodi at:
The text was updated successfully, but these errors were encountered: