Req [Solved] mpegts, set program number - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167) +---- Forum: Enigma (Dreambox/Vu+) (https://forum.kodi.tv/forumdisplay.php?fid=226) +---- Thread: Req [Solved] mpegts, set program number (/showthread.php?tid=319307) |
[Solved] mpegts, set program number - joaopp - 2017-08-03 Hi, I liked kodi for connecting with emby and some iptv channels. I have a enigma2 box, that I will like to use as a backend for kodi. The vupvr addon is loading everything really good, but the reason I'm posting this is that some channels will not start. It must be the same problem I have playing the stream with vlc, it need to set the program to start. Now, I'm not a programmer and c++ is not easy for a non programmer, so will ask if this is possible, and easy to implement: in the file DVDDemuxFFmpeg.cpp, in this part: Code: // in case of mpegts and we have not seen pat/pmt, defer creation of streams I thought 2 ways to fix this: 1- One way, probably the best, would be for the vupvr addon set for each channel pInput->GetProperty("program"), but I imagine this will not be so easy. 2- Second way, patch the file DVDDemuxFFmpeg.cpp. Knowing the stream URL is always something like "http://192.168.1.22:8001/1:0:1:1F:10:10:CCD2000:0:0:0:" where 1F is the program Code: else if (m_pFormatContext->iformat && strcmp(m_pFormatContext->iformat->name, "hls,applehttp") == 0) Is this possible and easy? Need someone to code this to c++, if it's easy RE: mpegts, set program number - joaopp - 2017-08-08 I solved the enigma2 streams checking for empty streams, tested and working: Code: diff --git a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp |