Jump to content

Direct play of Nextpvr live tv


crazybbs

Recommended Posts

NextPVR produces transport streams, which is the native format used by digital television. You can watch them in VLC easily by opening the network stream http://127.0.0.1:8866/live?channel=1, or any other player that understands transport streams. The same streams are used in Kodi, and several other apps.

 

By default Windows Media Player plays very vew formats, like mp4, avi and wmv files. For anything else, like most network streams, including transport streams, and whatever audio/video decoders are needed for your local broadcasts, Windows Media Player requires you install directshow filters to extend it's default set of features.

 

What DirectShow filters is Emby Theatre using for playback of transport streams? If it's not supplying any, and just replying on Windows to choose some random combination that looks like it'll do the job, then I'm sure this will work for some users, but you're always going to get some users where it doesn't work. In reality Emby should be explicitly supplying the directshow filters that get used, like transport stream source filter etc, so that users can rely on it working, and all get the same behaviour - otherwise you're always gonna have random problems.

 

When I open http://127.0.0.1:8866/live?channel=1 in Windows Media Player it plays fine. What decoders and directshow filters is it using? I have no idea (can't see what's hidden away internally in WMP), but I'm guessing it's probably using the LAV splitter, and a combination of different decoders which I have installed on my machine.

 

arrbee99, you'll probably get it working in WMP by installing the LAV filters from https://github.com/Nevcairiel/LAVFilters/releases/download/0.68.1/LAVFilters-0.68.1-Installer.exe

Edited by sub3
Link to comment
Share on other sites

arrbee99

Maybe I've been doing the wrong thing, which wouldn't be unusual, but when I tried the url http://localhost:8866/live?channeloid=7148&client=MB3.1  in media player and mpc it didn't work, but when I tried http://127.0.0.1:8866/live?channel=1 in media player and VLC it worked fine. No idea what that means. I appear to have LAV Filters 0.67, according to Windows Uninstall or change a program panel.

Link to comment
Share on other sites

http://localhost:8866/live?channeloid=7425&client=MB3.1​works fine in WMP here (channeloid is different in my case because that's the IDs used in my database). Given that other URL worked for you, maybe try replacing the 'localhost' bit with '127.0.0.1', in case your machine is having issues resolving what 'localhost' is.

Edited by sub3
Link to comment
Share on other sites

arrbee99

Tried http://127.0.0.1:8866/live?channeloid=7148&client=MB3.1 in vlc and mpc but didn't work.

 

The channeloid wouldn't be different ? the 127.0.0.1 shouldn't be 192.168.1.240 or something ?

Link to comment
Share on other sites

Maybe that channeloid is wrong, like maybe Emby has got an old-now-incorrect list of your channels. I can't tell you what they should be unless you provided your npvr.db3 channel database though.

 

127.0.0.1 is fine if it's your local machine, and worked fine when you used the http://127.0.0.1:8866/live?channel=1 version of the call (which is based on the channel number rather than the channel OID)

Edited by sub3
Link to comment
Share on other sites

 

Maybe that channeloid is wrong, like maybe Emby has got an old-now-incorrect list of your channels.

The more I think about it, the more I think this is probably what happened. ie, you've rescanned your channels at some point, and Emby still has an old out-of-date list of the channels and their OIDs.

 

You'll probably find http://localhost:8866/live?channel=1&client=MB3.1 works in WMP. This is the original call you asked about, but looking up the channel by channel number instead of database id.
Edited by sub3
Link to comment
Share on other sites

Like this...

 

Yep - confirmed. You don't have a channel 7148 in your database, so that http://localhost:8866/live?channeloid=7148&client=MB3.1 call was never going to work.

 

Maybe look for a way to force Emby to reload the channel list.

Link to comment
Share on other sites

arrbee99

Oh well, no idea how to do that, maybe Emby keeps a copy somewhere that can be deleted and it'll recreate a new version. Anyway, I hear Cadbury's calling so I'll leave you in peace for this evening.........(Will be back to annoy soon though)

Link to comment
Share on other sites

Oh well, no idea how to do that, maybe Emby keeps a copy somewhere that can be deleted and it'll recreate a new version.

 

I don't know either, but one of the Emby guys will be able to tell you how to do it.

 

Its good news, because it's sounds like you're almost there.

Link to comment
Share on other sites

You can just run the refresh guide scheduled task and that will be good enough. Or by the time you test this it may have already run on it's own.

Link to comment
Share on other sites

arrbee99

Just started Emby (I like to turn stuff off overnight) and updated. Manually did a refresh in Scheduled Tasks for everything (including refresh guide), which I do quite often for some reason. Started ET, went to Live TV and it updates whats showing and upcoming shows. I tell it to play something and get the spinning circle for 4 minutes till I close it nicely. Try playing the same program in the web interface (in Chrome) and it plays fine. Close it. I look where in my Recorded TV folder and see its decided to record the program that I tried to play in ET, and then seems to start recording again for some reason. Its still at it.

 

57ba30ada9205_EmbyLiveTV1.jpg

 

57ba30bd909ad_EmbyLiveTV2.jpg

 

57ba313359081_EmbyLiveTV3.jpg

Link to comment
Share on other sites

It's normal to have these live tv buffer files while you're using a live stream in NextPVR. It's not recording as such. They're a rolling set of buffer files that cover about a 20 minute period (ie, a new file will be created every few minutes, and the oldest will be deleted). They'll all be deleted when Emby closes the stream.

 

Clients that support the feature can rewind live tv up to 20 minutes.

Edited by sub3
Link to comment
Share on other sites

arrbee99

Yes it does seem to be doing that (and still is), but should it be doing it if I'm not actually watching anything - shouldn't it have stopped when I stopped watching ?

Link to comment
Share on other sites

arrbee99

Yes thats what happens. I guess it doesn't help with getting TV to work in Emby Theater though. There's no way to find what that channeloid thing should be ?

Link to comment
Share on other sites

The Emby guys would need to investigate why it's not closing the connection. It sounds like when you're stopping live tv, something is left running in the background in Emby when it shouldn't be.

 

These are the channeloid's in the database you provided.

57ba4417a8ee0_channelids.png

Edited by sub3
Link to comment
Share on other sites

arrbee99

Thanks for the info. Hopefully Emby guys can find out about getting it to work in Theater, don't know whether that's related with closing connections or not.

Link to comment
Share on other sites

arrbee99

This seems to work in VLC now - http://localhost:8866/live?channeloid=7149&client=MB3.1 i.e. using a valid channeloid from the list not channeloid 7148 which isn't listed.

Link to comment
Share on other sites

Yep, I was sure it would. It was only failing before because Emby channel list was out of date, so it was asking for a live stream for a channel that didn't exist any more.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...