HLS (.m3u8) and redirecting in XBMC
#16
(2014-05-19, 10:45)Memphiz Wrote: I guess it has something to do with the fact that gotham uses ffmpeg 1.2 and mainline uses ffmpeg 2.2 Wink

Aha, I see now Smile Is there a way that I can compile my own version of Gotham with ffmpeg 2.2? Feel kinda "unstable" with helix 14 now that gotham has just been released.
HTPC Server - Windows 8.1 + XBMC Helix | Intel QuadCore, 4GB RAM, 4 TB SATA
Intel NUC D54250WYK - Windows 8.1 + XBMC Helix | Logitech Harmony 750
Samsung UE8005 | Bluetooth keyboard & mousepad
Reply
#17
not an easy way ... you need to cherry-pick all related commits for this ... starting with this i guess should give you a good start

https://github.com/xbmc/xbmc/pull/4595:
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#18
(2014-05-15, 14:29)Maniac Wrote: Yeah I don't blame you for not understanding. I forgot to mention something I discovered last night.

Yesturday i did manage to run my streams via favourites.xml (just to test them), and they did work as log as the url had a .strm extenstion. But they did not work via LiveTV. It seemed like pvr\livetv did not support urls with .strm extension or something.

So my urls went from this:
http://192.168.1.10/RedirectToStream?chNr=374
To This: http://192.168.1.10/play.strm?chNr=374

They both would redirect to the real stream url that is a .m3u8. But I had to "package" it into a fake .strm file so that XBMC would proccess it. At least it did so when playing the url via favourites window.


But after editing the line 92 in DVDFactoryInputStream to check for .strm extension. It also played correctly via pvr\livetv.
I needed something in the url in order to force XBMC to create the correct InputStream (DVDInputStreamFFmpeg) when proccessing the redirected url. Otherwise it would use CDVDInputStreamFile, and start mergeing the chunks of .m3u8 with the local url which is wrong in my case.

So, the .strm extension in my url is just present so that I can force xbmc to use DVDInputStreamFFmpeg when playing the redirected url (which is a m3u8).

Very nasty I know, but I was clueless on how to get it to work.

could you tell me how to add .strm extension to my php url ? i want to play the redirected m3u8 stream using php url in simple client(pvr addon) so anything else beside adding .strm extension to url is needed?Looking forward for your reply.Thanks
Reply
#19
Hi david14,
You don't need .strm. This was an issue I had a long time ago, it works well on Kodi 15 >.

All you need to do is redirect a hls stream from your php method/url. I am not familiar with the php synax so you need to figure out how redirecting in php works.
HTPC Server - Windows 8.1 + XBMC Helix | Intel QuadCore, 4GB RAM, 4 TB SATA
Intel NUC D54250WYK - Windows 8.1 + XBMC Helix | Logitech Harmony 750
Samsung UE8005 | Bluetooth keyboard & mousepad
Reply
#20
(2015-11-30, 11:33)Maniac Wrote: Hi david14,
You don't need .strm. This was an issue I had a long time ago, it works well on Kodi 15 >.

All you need to do is redirect a hls stream from your php method/url. I am not familiar with the php synax so you need to figure out how redirecting in php works.

Thanks for reply . My box is ising kodi 13.3 and i can't upgrade! What should be the extension of fake file so kodi plays it? .strm or m3u8? Can i use wuery string after ? Or not? I tried link like this( http://www.mysite.com/play.m3u8?id=5555) but kodi keeps saying loading! Should i change any code in kodi as well inorder that it plays the above url?
Reply

Logout Mark Read Team Forum Stats Members Help
HLS (.m3u8) and redirecting in XBMC0