Jump to content

live tv with multiple audio and subtitles streams


Recommended Posts

thor2002ro
Posted (edited)

windows server running latest beta with live tv and dvb viewer plugin

 

live tv works but there are no options to switch audio stream or enable subtitles 

 

ffmpeg is listing all the streams in log

  Program 656 
    Metadata:
      service_name    : HBO2 HD
      service_provider: DIGI TV
    Stream #0:0[0x19a1]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x19a2](rum): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:2[0x19a6](rum): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:3[0x19a7](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:4[0x19a3](hun): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:5[0x19a4](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 384 kb/s

Log.txt

post-312009-0-06425000-1529045446_thumb.png

Edited by thor2002ro
Posted

Can you please attach the corresponding emby server log as well? thanks.

pünktchen
Posted

@@pünktchen are you able to reproduce? thanks.

Yes, no chance to switch audio tracks or to enable subtitles for live tv with external tv plugins in browsers and both android apps.

This problem exists since you've implemented caching of the live tv probe.

thor2002ro
Posted

and.... can we do anything about it? seams a pretty big thing to be omitted since emby's focus is not supporting tv tuners directly with decoding and all.... so most of the time a 3rd party server will be used....

Posted

Are you setting the MediaSource.Id value?

pünktchen
Posted

Are you setting the MediaSource.Id value?

Yes, but it changes with every play attempt!
Posted

What do you mean by that?

pünktchen
Posted

What do you mean by that?

I mean every time a live tv stream is requested i set a new unique mediasource id in the plugin. Otherwise this would happen: User 1 starts streaming channel A, after that user 2 also starts streaming channel A. If user 1 now stops streaming channel A, it would also stop the stream for user 2.
Posted

Ok. I'm not sure if this will resolve it yet, but please try the next beta server. Thanks.

  • 2 weeks later...
Posted

Ok i have this working for the next release, but only if the MediaSource coming out of the plugin is using the http protocol. I'll look at more protocols later but this is all i can test with next pvr. @@pünktchen, do either of your plugins return a file based media source? if so then we can work together and get that sorted out.

 

It's basically running through the same mechanisms as our native tuner support, so going forward that will make this quite a bit more reliable. 

pünktchen
Posted

Works in browsers and both Android apps.

Great job!

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