Jump to content


Photo

DVB subtitles support in eServiceMP3/GStreamer

DVB Subtitles GStreamer

  • Please log in to reply
63 replies to this topic

Re: DVB subtitles support in eServiceMP3/GStreamer #41 DimitarCC

  • PLi® Contributor
  • 1,573 posts

+70
Good

Posted 31 October 2024 - 12:05

Well that will work for GStreamer boxes...

But framerate is not reported also in servicehisilicon.....

So that is also a workaround only for eServiceMP3...

 

And many other stream parameter are not reported right in some cases...

The only reliable way is to be got from drivers/procs. That is actually what is the playing parameters....

And that solution will work regardless of the mediasink used behind.


Edited by DimitarCC, 31 October 2024 - 12:24.

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: DVB subtitles support in eServiceMP3/GStreamer #42 Dimitrij

  • PLi® Core member
  • 10,321 posts

+349
Excellent

Posted 31 October 2024 - 18:25

Work only this [ServiceInfo] workaround to get fps for iptv services


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: DVB subtitles support in eServiceMP3/GStreamer #43 display name

  • Senior Member
  • 627 posts

+26
Good

Posted 1 November 2024 - 14:18

#SERVICE 4097:0:1:0:0:0:0:0:0:0:https%3a//d1vp12yk4i8ou5.cloudfront.net/playlist.m3u8:Samsung Wildlife
#DESCRIPTION Samsung Wildlife

 

Service info - service & PIDs
Many streams (not all) show Codec & lang: -Not defined

 

before changes servicemp3, showing - Codec & lang: AAC - und

 

after servicemp3 changes, showing - Codec & lang: -Not defined



Re: DVB subtitles support in eServiceMP3/GStreamer #44 DimitarCC

  • PLi® Contributor
  • 1,573 posts

+70
Good

Posted 1 November 2024 - 14:30

Never seen that.... Maybe indeed not on all streams but that have to be investigated


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: DVB subtitles support in eServiceMP3/GStreamer #45 Dimitrij

  • PLi® Core member
  • 10,321 posts

+349
Excellent

Posted 1 November 2024 - 15:14

display name

open audioselection for this service


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: DVB subtitles support in eServiceMP3/GStreamer #46 display name

  • Senior Member
  • 627 posts

+26
Good

Posted 1 November 2024 - 15:31

@ Dimitrij

After opening audioselection it's OK now

Thanks


Edited by display name, 1 November 2024 - 15:36.


Re: DVB subtitles support in eServiceMP3/GStreamer #47 Dimitrij

  • PLi® Core member
  • 10,321 posts

+349
Excellent

Posted 2 November 2024 - 10:41

@ Dimitrij

After opening audioselection it's OK now

Thanks

[ServiceInfo] fix empty audio name for iptv service


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: DVB subtitles support in eServiceMP3/GStreamer #48 littlesat

  • PLi® Core member
  • 57,151 posts

+698
Excellent

Posted 2 November 2024 - 11:41

I did not merge this yet as I do not fully understand it and there is a kind of hacky loop with cnt that is used as flag and it is also not fully clear why this loop is needed as it manipulates a string with / separator coming out of cpp…. This rises a flag that it should be resolved at the ‘source’ so in cpp… and also audio guidance stuff added…

Maybe post here the initial string and what it should be so I can look for a better solution.

Edited by littlesat, 2 November 2024 - 11:45.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: DVB subtitles support in eServiceMP3/GStreamer #49 Dimitrij

  • PLi® Core member
  • 10,321 posts

+349
Excellent

Posted 2 November 2024 - 11:45

I did not merge this yet as I do not fully understand it and there is a kind of hacky loop with cnt that is used as flag and it is also not fully clear why this loop is needed as it manipulates a string with / separator coming out of cpp…. This rises a flag that it should be resolved at the ‘source’ so in cpp… and also audio guidance stuff added…

Same as https://github.com/O...lection.py#L138


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: DVB subtitles support in eServiceMP3/GStreamer #50 Dimitrij

  • PLi® Core member
  • 10,321 posts

+349
Excellent

Posted 2 November 2024 - 13:07

update

[UsageConfig] add more audio codec

[ServiceInfo] fix empty audio name for iptv service


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: DVB subtitles support in eServiceMP3/GStreamer #51 littlesat

  • PLi® Core member
  • 57,151 posts

+698
Excellent

Posted 2 November 2024 - 16:05

First merge
Second I’m afraid needs more investigation. Or could be made better

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: DVB subtitles support in eServiceMP3/GStreamer #52 Dimitrij

  • PLi® Core member
  • 10,321 posts

+349
Excellent

Posted 3 November 2024 - 09:42

Second I’m afraid needs more investigation. Or could be made better 

This is the simplest solution.


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: DVB subtitles support in eServiceMP3/GStreamer #53 Dimitrij

  • PLi® Core member
  • 10,321 posts

+349
Excellent

Posted 3 November 2024 - 10:23

			print('/////////////', self.audio.getCurrentTrack())
			if not self.show_all and not self.IPTV:
				return [create_list(self.audio.getCurrentTrack())]
			else:
				track_list = []
				for i in range(self.number_of_tracks):
					print('/////////////i',i)

///////////// 1   -->self.audio.getCurrentTrack()!!!!

Why?
/////////////i 0 -->really number is 0

 

servicemp3.cpp

[eServiceMP3] async-done - 1 video, 1 audio, 0 subtitle
[eServiceMP3] AUDIO STRUCT=audio/x-ac3
[eServiceMP3] audio stream=0 codec=AC-3 (ATSC A/52) language=und

problem only AC3

 


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: DVB subtitles support in eServiceMP3/GStreamer #54 Dimitrij

  • PLi® Core member
  • 10,321 posts

+349
Excellent

Posted 3 November 2024 - 13:57

DimitarCC

 

Maybe add as openATV?

RESULT eServiceMP3::selectTrack(unsigned int i)
{
+	m_currentAudioStream = getCurrentTrack();
+	if(m_currentAudioStream == (int)i)
+		return m_currentAudioStream;
+	eDebug("[eServiceMP3] selectTrack %d", i);

	bool validposition = false;

 


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: DVB subtitles support in eServiceMP3/GStreamer #55 littlesat

  • PLi® Core member
  • 57,151 posts

+698
Excellent

Posted 3 November 2024 - 15:18

The loop with cnt which is actually a flag looks hacky and it is not clear what is tried there or resolved.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: DVB subtitles support in eServiceMP3/GStreamer #56 DimitarCC

  • PLi® Contributor
  • 1,573 posts

+70
Good

Posted 3 November 2024 - 18:02

DimitarCC

 

Maybe add as openATV?

RESULT eServiceMP3::selectTrack(unsigned int i)
{
+	m_currentAudioStream = getCurrentTrack();
+	if(m_currentAudioStream == (int)i)
+		return m_currentAudioStream;
+	eDebug("[eServiceMP3] selectTrack %d", i);

	bool validposition = false;

 

I still not understand why that happens.....I tried with several streams here and not get that issue. On ViX i never get that (it uses the same eServiceMP3)...


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: DVB subtitles support in eServiceMP3/GStreamer #57 Dimitrij

  • PLi® Core member
  • 10,321 posts

+349
Excellent

Posted 4 November 2024 - 09:24

The loop with cnt which is actually a flag looks hacky and it is not clear what is tried there or resolved.

simple workaround https://github.com/O...e033c4793ba0dd8


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: DVB subtitles support in eServiceMP3/GStreamer #58 littlesat

  • PLi® Core member
  • 57,151 posts

+698
Excellent

Posted 4 November 2024 - 14:23

Merged.... sounds like I did rise a valid flag here ;)


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: DVB subtitles support in eServiceMP3/GStreamer #59 Dimitrij

  • PLi® Core member
  • 10,321 posts

+349
Excellent

Posted 4 November 2024 - 17:59

DimitarCC

Problem found.

 

All my IPTV channels (service reference) start the same way 4097:0:0:1:0:0:0:0:0:0.

If I select a non-first audio track on a channel, it will be saved in /etc/enigma2/config_av

4097:0:0:1:0:0:0:0:0:0|-1|1|-1|-1|-1|-1|-1|-1|-1

Now if I switch to iptv channel(4097:0:0:1:0:0:0:0:0:0) with one audio track, I get an error in AudioSelection(not selected "X")/ServiceInfo(" " - "Not defined")

 

When delete config_av or set first audio track the information is correct.

 

 

 

Solution.

Need save full service reference.

 
 

 

Edited by Dimitrij, 4 November 2024 - 18:04.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: DVB subtitles support in eServiceMP3/GStreamer #60 DimitarCC

  • PLi® Contributor
  • 1,573 posts

+70
Good

Posted 4 November 2024 - 22:42

 

DimitarCC

Problem found.

 

All my IPTV channels (service reference) start the same way 4097:0:0:1:0:0:0:0:0:0.

If I select a non-first audio track on a channel, it will be saved in /etc/enigma2/config_av

4097:0:0:1:0:0:0:0:0:0|-1|1|-1|-1|-1|-1|-1|-1|-1

Now if I switch to iptv channel(4097:0:0:1:0:0:0:0:0:0) with one audio track, I get an error in AudioSelection(not selected "X")/ServiceInfo(" " - "Not defined")

 

When delete config_av or set first audio track the information is correct.

 

 

 

Solution.

Need save full service reference.

 
 

 

 

 

Well the main issue here is that you have all srefs starrting with same numbers....

We can not use the whole sref storred in config_av since that will make impossible storing track selection for catchup or any other child refs to main service.

Also iptv providers with hashes in the url will never work since srefs are dynamic and they change every hour or two....


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users