Jump to content

Issues direct streaming live TV


h.buckle

Recommended Posts

h.buckle

Having some issues getting Live TV direct streaming to work consistently.

Sometimes remuxing works, but other times what seems to happen is the server either tries to remux and fails completely, starts remuxing the stream but fails after a few minutes, or it decides not to remux and instead transcodes. When it does transcode playback is fine, but there should be no need for it as the clients are all PCs on a 1GB wired LAN. Even when it remuxes succesfully it still transcodes the audio.

I can open the streams from the MediaPortal server in VLC and they play fine

The server is 3.0.5934.0 running on Server 2012 R2, clients are Emby Theatre 2.2.5 on Windows 10

Plugin options

5727941c44d22_options.png

 

Remux failure.log

Remux failure after 30 seconds.log

Server.log

Link to comment
Share on other sites

h.buckle

Out of interest why does it need to remux at all? Can't the stream just be passed directly to the client?

Link to comment
Share on other sites

In order for that to happen, the reported media info by the tv plugin needs to fit within what the app supports. I notice the input audio is aac_latm, which I've not seen before, so that's probably why. we'll have to look into what apps can support that.

Link to comment
Share on other sites

Ok, Emby Theater is accepting all audio codecs so that's not the issue here. I think the issue is the use of the machine names in the url. Since the source is http, we don't really no if the client device is going to be able to reach it or not, therefore we just do a quick string comparison on the urls to try and guess if they're part of the same subnet or not. i haven't really done anything to that to handle machine names, so I think it's assuming the address is not reachable therefore it's streaming through emby server.

Link to comment
Share on other sites

h.buckle

I updated the plugin settings to use the IP address instead of the host name, but the server still either transcodes or remuxes.

The streams with aac_latm are UK DVB-T2 HD streams

I've noticed that SD streams are always transcoded, see attached log

SD transcode.log

 

You seem to be right that the remuxing failure is an ffmpeg issue, specifically when going to MKV - I tried using the same command line to remux to a TS and that seems to work

Link to comment
Share on other sites

h.buckle

Ah, see what you mean. Yes, if I sign out then add the server by IP address and connect then I get direct streaming. It would be good to have things working with hostnames though. I have Active Directory at home so I always just use the DNS names rather than IP addresses. Could you do something like an nslookup to determine if the machines are on the same subnet?

Link to comment
Share on other sites

no, it needs to be more primitive, something that just compares the strings. doing those kinds of things at the time of playback can cause long delays if it's not reachable and has to wait for a timeout to determine that.

Link to comment
Share on other sites

Yes something along those lines but at least until then you have some kind of workaround

Link to comment
Share on other sites

h.buckle

Yes, thanks, will use IP address for now. What's the best way to track these issues so I know when it gets addressed, log it as an issue on github?

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...