Jump to content


Photo

streamproxy and choosing audio streams of movies


  • Please log in to reply
116 replies to this topic

#1 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 2 January 2019 - 14:20

I´ve seen if I stream a live TV or a recorded movie with more than one audio stream, in the transcodes stream there is only one audiostream included.

I don´t know which is the rule to select the audiostream?

For example transcoding a movie with audio 1  german and audio 2 englich, which I can see in the audio selection box on my TV, the transcoding stream has only the english stream included

 

Is there a parameter inside die URL or is there a parameter in the streamproxy,conf file to select the audiostream?

 


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: streamproxy and choosing audio streams of movies #2 WanWizard

  • PLi® Core member
  • 68,311 posts

+1,719
Excellent

Posted 2 January 2019 - 14:29

Afaik it just picks the first one, it is not something that can be controlled.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: streamproxy and choosing audio streams of movies #3 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 2 January 2019 - 19:48

If testest it and the code here shows that streamproxy uses the last audiotrack inside the ts-file. It were great if that would be configured in future

for(PidMap::const_iterator it(pids_in.begin()); it != pids_in.end(); it++)
	{
		if((it->first != "pat") && (it->first != "pmt") &&
				(it->first != "audio") && (it->first != "video"))
			continue;

		PidMap::iterator it2;

		for(it2 = pids.begin(); it2 != pids.end(); it2++)
			if(it2->second == it->second)
				break;

		if((it2 != pids.end()) && (it->first == "video"))
			pids.erase(it2);
		if((it2 = pids.find(it->first)) != pids.end())
			pids.erase(it2);

		if(it->first == "pmt")
			pmt = it->second;

		if(it->first == "video")
			video = it->second;

		if(it->first == "audio")
			audio = it->second;

		pids[it->first] = it->second;
	}


Edited by anudanan, 2 January 2019 - 19:48.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: streamproxy and choosing audio streams of movies #4 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 2 January 2019 - 20:43

I´ve made an issue for that

 

https://github.com/e...mproxy/issues/7


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: streamproxy and choosing audio streams of movies #5 WanWizard

  • PLi® Core member
  • 68,311 posts

+1,719
Excellent

Posted 2 January 2019 - 21:20

The biggest challenge will be "how do you define that" given the fact it is different for every channel. And I'm not sure the the complex logic enigma uses to determine the auto track to select can be accessed.

 

As Erik wrote, it would be a lot easier if the streamproxy could be dumped, and it's logic integrated into Enigma.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: streamproxy and choosing audio streams of movies #6 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 2 January 2019 - 21:57

I agree that but I think the first audio track matches more often than one of the last ones. 


Edited by anudanan, 2 January 2019 - 22:00.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: streamproxy and choosing audio streams of movies #7 WanWizard

  • PLi® Core member
  • 68,311 posts

+1,719
Excellent

Posted 2 January 2019 - 22:05

I think that depends. On the BBC's for example, track 1 is a narrative track, and you definitely don't want that. ;)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: streamproxy and choosing audio streams of movies #8 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 2 January 2019 - 22:11

It looks like the decision between pest and cholera.

 

next idea

a new parameter for language and if one audiostream matches this language streamproxy use it If no match found it takes the same as today


Edited by anudanan, 2 January 2019 - 22:16.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: streamproxy and choosing audio streams of movies #9 WanWizard

  • PLi® Core member
  • 68,311 posts

+1,719
Excellent

Posted 2 January 2019 - 22:17

Yup. ;) That's why the best would be to have access to Enigma's rules, which are/can be quite complex.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: streamproxy and choosing audio streams of movies #10 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 3 January 2019 - 05:36

A first soluton could be a language parameter and an optional audiostream number parameter in streamproxy.conf which can be configure in the transcoding settings or firstly by an editor

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: streamproxy and choosing audio streams of movies #11 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 3 January 2019 - 09:57

It takes the first audio stream UNLESS it's a narrative track, identified by metadata or having "nar" in the id.

 

The only other way to properly solve this is to have streamproxy completely parse lamedb. I'd rather spend the time on moving the code to enigma then.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: streamproxy and choosing audio streams of movies #12 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 3 January 2019 - 10:03

mmh, If I played the movie "Der Herr der Ring" yesterday over streamproxy the audio was english, but If I play the ts file with VLC then VLC shows me the first track (audio stream 0) as german and the second track (audio stream 1) as english. VLC uses the first track and that was german

 

Are you sure streamproxy use the first one?


Edited by anudanan, 3 January 2019 - 10:04.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: streamproxy and choosing audio streams of movies #13 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 3 January 2019 - 10:24

Yes it does. But it does so in the order it gets the streams from the OWIF, and that may not be the order as they appear in the file or PMT... Even that, what exactly "is" the first audio stream? The order they appear in the PMT? Or in order of PID? Both may not reflect the intent of the broadcaster or the logic of the viewer.

 

I can only think of one doable compromise and that is configuring streamproxy with a (one!) audio language tag preferrence, so if the streamproxy encounters a track with that language tag, it will always pick that, regardless. That may sound as "the best" solution, but beware many services have their language id's wrong, tags like "qaa" etc.


Edited by Erik Slagter, 3 January 2019 - 10:24.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: streamproxy and choosing audio streams of movies #14 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 3 January 2019 - 10:32

That sounds good Thank for the idea


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: streamproxy and choosing audio streams of movies #15 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 3 January 2019 - 10:35

I'd say start off with checking the language tags of all your programs you want to transcode. If it even wouldn't work there to start with, it's useless.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: streamproxy and choosing audio streams of movies #16 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 3 January 2019 - 10:38

Yes

I´ve seen some ts files with more than one audio tracks and some of them has the tag deutsch and some the tag qaa

 

But all my channels have at least one audiostream with the Deutsch Tag

 

That sounds good.Thanks for the idea. It may work in many cases I think


Edited by anudanan, 3 January 2019 - 10:40.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: streamproxy and choosing audio streams of movies #17 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 4 January 2019 - 12:18

And "Deutsch" is correct I assume?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: streamproxy and choosing audio streams of movies #18 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 4 January 2019 - 12:22

yes


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: streamproxy and choosing audio streams of movies #19 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 4 January 2019 - 12:41

Sorry guys, bad news. I had a peek in the source code (has been some time now) and I saw that indeed, it already does some smart selection on languages, e.g. ignore "narrative" tracks. BUT that is only done on file transcoding (e.g. recording), where streamproxy has random access to the stream and peek into it. For live transcoding, only this information is available, as received from OWIF:

+1:0:pat,7d0:pmt,7d1:video,7db:audio,7dc:audio,7dd:audio,835:subtitle,836:subtitle,837:subtitle,7d1:pcr,835:text

As you can see, there is no language tag present.

 

This can only be fixed by:

 

- (as said) reimplement streamproxy into enigma2 itself

- OWIF adding language tags here (or duplicate the page and add the extra tags, to not break compatibility)

 

Another approach, slightly ulgy, would be to stop using this mechanism at all and fetch the stream using a "normal" streaming request, where we're not using OWIF to request enigma to tune tuner and assign demuxer and then fetch the stream from the demuxer, but completely fetch the stream from the OWIF. I think that would also resolve your authentication issue. The problem here is that streamproxy still would need to parse part of the stream (PMT) to find out the language tags. AFAIK there is no streaming mode where only the audio track, as selected by the user, is included (either explicitly or implicitly using auto language detection).


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: streamproxy and choosing audio streams of movies #20 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 4 January 2019 - 13:37

Thanks for the information

So only for recorded movie there is a language selection possible by streamproxy. This is more than nothing ;-)


Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users