Jump to content


Photo

Automatic volume adjustment


  • Please log in to reply
44 replies to this topic

#1 doglover

  • Rytec EPG Team
  • 17,417 posts

+658
Excellent

Posted 9 August 2024 - 13:29

I am using automatic volume adjustment.

Option: remember used volume.

 

I ran into a problem.  I use on of the receiver mainly as radio via IPTV.  But this receiver will also be used as TV via fallback tuner for TV on occasion.

Now the volume difference of the radio (ITPV) channels and the TV-channels (fallback)  is very large.

The automatic volume adjustment is used to remember the last volume used for the channel.

 

Now the volume of channels used via the fallback tuner is properly adjusted.

No problem here.

 

The problems started with the IPTV channels (radio)

 

You can define the IPTV channels in a bouquet as:

#SERVICE https://streams.radio.dpgmedia.cloud/redirect/joe_gold/aac

or

#SERVICE 4097:0:2:0:0:1:DDDD:0:0:0:https%3a//streams.radio.dpgmedia.cloud/redirect/joe_gold/aac

or

#SERVICE 5002:0:2:0:0:1:DDDD:0:0:0:https%3a//streams.radio.dpgmedia.cloud/redirect/joe_gold/aac

Automatic volume adjustment will only remember the volume setting (and restore the volume) as the stream is defined as a 5002 stream.

(The last option of the above)

 

My question.

Could the plug-in be modified to set and restore the volume for all methods of defining the stream?

 

 

 

 

 


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Automatic volume adjustment #2 littlesat

  • PLi® Core member
  • 57,246 posts

+702
Excellent

Posted 9 August 2024 - 13:44

This is not really a bug…. This is a flaw in the design from that plugin… or at the time it was made there where not that many streams. Needs revision to store the volume for a complete service reference as in a whitelist… and only for channels where you want to reduce volume. When you want to use it to pump up the volume for some channels it always worsened sound quality when you set volume down…. It only might help for pcm channels that are too laud.

Edited by littlesat, 9 August 2024 - 14:04.

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


Re: Automatic volume adjustment #3 doglover

  • Rytec EPG Team
  • 17,417 posts

+658
Excellent

Posted 10 August 2024 - 06:22

Bug or flaw in design does not matter.

Fact is that the system does not work for the first 2 methods of defining a stream.  Only for a stream defined with 5002, the volume is automatically adjusted.

 

Problem is that using 5002 (and thus exteplayer3) has it problems by itself.  In my case I can live with it.

 

Pls realize that for a TV channel, the volume has to be set at approx 50-60 % for a normal volume.
When you now switch to a radiostream, like the on above, and keep the volume setting of the TV-channel, The volume is way too loud. 

In order to have now a "normal" volume level the volume has to be reduced to 20-25 %.

 

It has nothing to do with pumping up the volume, and then reducing it and ruining the sound quality, like you seem to suggest for not doing anything.


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Automatic volume adjustment #4 mrvica

  • Senior Member
  • 1,261 posts

+86
Good

Posted 10 August 2024 - 12:51

My question.

Could the plug-in be modified to set and restore the volume for all methods of defining the stream?

maybe this plugin can be easyly modified for that purpose than AutomaticVolumeAdjustment:

what it does at the moment: "If the service has AC3 or DTS track then plugin automatic increase volume by 40 units."

it could check for IPTV streams and reduce or increase volume

enigma2-plugin-autovolume/src at master · Taapat/enigma2-plugin-autovolume · GitHub



Re: Automatic volume adjustment #5 littlesat

  • PLi® Core member
  • 57,246 posts

+702
Excellent

Posted 10 August 2024 - 12:54

When you put the volume down for most channels you go for non optimal quality… reduce it 50% reduces noise signal ratio with 3dB!

Actually I also totally do not understand the need… 

What is digital I directly forward it to the surround set one to one… decreasing volume is only possible when you downmix them to pcm. Also then I do not need to reduce volume.

which channels have too silent sound after downmix.


Edited by littlesat, 10 August 2024 - 13:00.

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


Re: Automatic volume adjustment #6 doglover

  • Rytec EPG Team
  • 17,417 posts

+658
Excellent

Posted 10 August 2024 - 14:04

When you put the volume down for most channels you go for non optimal quality… reduce it 50% reduces noise signal ratio with 3dB!

Actually I also totally do not understand the need… 

Ok.  You want the radio to play at 120 db.......

Do not reduce the volume, because it harms the quality....

 

Why do every radio, TV, soundsystems have volume controls?


Edited by doglover, 10 August 2024 - 14:07.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Automatic volume adjustment #7 littlesat

  • PLi® Core member
  • 57,246 posts

+702
Excellent

Posted 10 August 2024 - 15:10

Nope…. When a broadcaster transmits it too loud it has a bad limiter at the audio or it is distorted. Until know I never really needed these kind of plugins. When you have differences between 5.1 and stereo pcm and just ensure to set the volume maximal or ‘readjust’ it via yellow bouquets or channel +- keys….. only pcm can be adjusted when you do not downmix…. No need for a plugin when you want to target that: this ‘part’ is in openPli by default.

Edited by littlesat, 10 August 2024 - 15:11.

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


Re: Automatic volume adjustment #8 Dimitrij

  • PLi® Core member
  • 10,338 posts

+352
Excellent

Posted 11 August 2024 - 09:04

doglover

test

[automaticvolumeadjustment] remove check ref.valid()

 

Attached Files


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


Re: Automatic volume adjustment #9 doglover

  • Rytec EPG Team
  • 17,417 posts

+658
Excellent

Posted 11 August 2024 - 09:49

Thanks.

 

But does not work.

 

The "normal" channels and 5002 IPTV - radio streams have the volume adjusted as with the original plug-in.

 

However the streams defined as follows:

#SERVICE 4097:0:0:0:0:0:0:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEPLUS.mp3: Nostalgie+ / N+
#DESCRIPTION  Nostalgie+ / N+
#SERVICE https://playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEWAF80.mp3: Play Nostalgie 80's   
#DESCRIPTION  Play Nostalgie 80's

do not adjust the volume as desired.


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Automatic volume adjustment #10 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 11 August 2024 - 20:27

To work, the plugin needs a valid service reference assigned to the channel.

 

With 4097:0:0:0:0:0:0:0:0:0 it can do nothing.

 

So you need to create fake, unique and non conflicting service references for all your IPTV channels.


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Automatic volume adjustment #11 littlesat

  • PLi® Core member
  • 57,246 posts

+702
Excellent

Posted 11 August 2024 - 22:19

The plugin needs an update to do this right for (all) streams….

Edited by littlesat, 11 August 2024 - 22:21.

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


Re: Automatic volume adjustment #12 Dimitrij

  • PLi® Core member
  • 10,338 posts

+352
Excellent

Posted 12 August 2024 - 05:57

#SERVICE 4097:0:2:0:0:1:DDDD:0:0:0:https%3a//streams.radio.dpgmedia.cloud/redirect/joe_gold/aac

 

#SERVICE 4097:0:0:0:0:0:0:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEPLUS.mp3: Nostalgie+ / N+
#DESCRIPTION  Nostalgie+ / N+

Both don't work?


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


Re: Automatic volume adjustment #13 DimitarCC

  • PLi® Contributor
  • 1,577 posts

+71
Good

Posted 12 August 2024 - 06:51

#SERVICE 4097:0:2:0:0:1:DDDD:0:0:0:https%3a//streams.radio.dpgmedia.cloud/redirect/joe_gold/aac
#SERVICE 4097:0:0:0:0:0:0:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEPLUS.mp3: Nostalgie+ / N+
#DESCRIPTION  Nostalgie+ / N+

Both don't work?

 

 

I think 4097:0:2:0:0:1:DDDD:0:0:0 is not valid sref too...

maybe 4097:0:2:0:0:1:DDDD0000:0:0:0? I think the namespace is required to be 8 chars....


Edited by DimitarCC, 12 August 2024 - 06:52.

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


Re: Automatic volume adjustment #14 doglover

  • Rytec EPG Team
  • 17,417 posts

+658
Excellent

Posted 12 August 2024 - 07:00

#SERVICE 4097:0:2:A1:0:1:DDDD:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEWHATAFEELINGAAC.aac: Play Nostalgie
#DESCRIPTION  Play Nostalgie          
#SERVICE 4097:0:2:A2:0:1:DDDD:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEPLUS.mp3: Nostalgie+ / N+
#DESCRIPTION  Nostalgie+ / N+
#SERVICE 4097:0:2:A3:0:1:DDDD:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEWAF80.mp3: Play Nostalgie 80's
#DESCRIPTION  Play Nostalgie 80's

Do not work.  They play, but volume is not adjusted

#SERVICE 5002:0:2:A1:0:1:DDDD:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEWHATAFEELINGAAC.aac: Play Nostalgie
#DESCRIPTION  Play Nostalgie          
#SERVICE 5002:0:2:A2:0:1:DDDD:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEPLUS.mp3: Nostalgie+ / N+
#DESCRIPTION  Nostalgie+ / N+
#SERVICE 5002:0:2:A3:0:1:DDDD:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEWAF80.mp3: Play Nostalgie 80's
#DESCRIPTION  Play Nostalgie 80's

Work as desired.

 


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Automatic volume adjustment #15 doglover

  • Rytec EPG Team
  • 17,417 posts

+658
Excellent

Posted 12 August 2024 - 07:05

maybe 4097:0:2:0:0:1:DDDD0000:0:0:0? I think the namespace is required to be 8 chars....

 

Tried:

#SERVICE 4097:0:2:A4:0:1:DDDD0000:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEWAFEXTRA.mp3: Play Nostalgie Top 3000
#DESCRIPTION  Play Nostalgie Top 3000
#SERVICE 4097:0:2:A5:0:1:DDDD0000:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEWAF90.mp3: Play Nostalgie 90's & 00's
#DESCRIPTION  Play Nostalgie 90's & 00's     
#SERVICE 4097:0:2:A6:0:1:DDDD0000:0:0:0:https%3a//playerservices.streamtheworld.com/api/livestream-redirect/NOSTALGIEWAFNL.mp3: Play Nostalgie BeNePop
#DESCRIPTION  Play Nostalgie BeNePop

No result.  The namespace has no effect.


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Automatic volume adjustment #16 DimitarCC

  • PLi® Contributor
  • 1,577 posts

+71
Good

Posted 12 August 2024 - 07:10

OK so there is a bug in the plugin then...

Is it behave the same for radio and tv services?


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


Re: Automatic volume adjustment #17 littlesat

  • PLi® Core member
  • 57,246 posts

+702
Excellent

Posted 12 August 2024 - 07:15

Using DDDD is also not a good idea as it is reserved for atsc.
I suggest it is better to go for a solution that can work without fake serviceref…. And just use the whole thing….
I’m also afraid the latest merge request I acknowledge does indeed not resolve it.

Edited by littlesat, 12 August 2024 - 07:17.

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


Re: Automatic volume adjustment #18 doglover

  • Rytec EPG Team
  • 17,417 posts

+658
Excellent

Posted 12 August 2024 - 08:00

OK so there is a bug in the plugin then...

Is it behave the same for radio and tv services?

Yes.  At least for streaming channels.  Channels from the sat work with no problem.

 

but f.i. The TV streaming channels:

#SERVICE 4097:0:1:102:0:32:DDDD:0:0:0:https%3a//playmedia-playcrime-goplay.amagi.tv/index_2.m3u8:Play Crime

Plays, but the volume is not set.

 

These work.  Volume is set to previous level:

#SERVICE 5002:0:1:1:0:32:0:0:0:3:file%3a///usr/script/TVL.m3u8:TV Limburg
#DESCRIPTION TV Limburg
#SERVICE 5002:0:1:2:0:32:0:0:0:3:file%3a///usr/script/ATV.m3u8:ATV
#DESCRIPTION ATV

(I am using here a modified m3u8 file, in order to get picture and sound)

 


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Automatic volume adjustment #19 doglover

  • Rytec EPG Team
  • 17,417 posts

+658
Excellent

Posted 12 August 2024 - 08:09

Using DDDD is also not a good idea as it is reserved for atsc.
I suggest it is better to go for a solution that can work without fake serviceref…. And just use the whole thing….
I’m also afraid the latest merge request I acknowledge does indeed not resolve it.

I have used DDDD as namespace for streaming channels, and did not had any problems with it.

In the AutomaticVolumeAdjustment_volume.conf file the levels are stored as:

sS'1:0:19:1B76:C88:3:EB0000:0:0:0:'
p12
I35
sS'5002:0:2:0:0:1:DDDD:0:0:0:https%3a//streams.radio.dpgmedia.cloud/redirect/joe_easy/aac:Joe easy %09 '
p13
I20
sS'5002:0:2:0:0:1:DDDD:0:0:0:https%3a//streams.radio.dpgmedia.cloud/redirect/joe_fm/mp3:Joe'
p14
I15

The whole steaming name is being used.

But in the file there is no trace of 4097 references.  (From all my trials I did this morning)

 

 

However on my other receiver, my wife watched yesterday a mkv file from the NAS.

sS'4097:0:0:0:0:0:0:0:0:0:/home/Movie/TV-Series/Sci-Fi/Stargate Atlantis/Stargate Atlantis S04E01 Adrift.mkv'
p52
I55

This seemed to remember the volume level, an set it back.

 

PS:  Checked this last thing.  Although it is in the conf file, the volume is not restored.......


Edited by doglover, 12 August 2024 - 08:13.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Automatic volume adjustment #20 littlesat

  • PLi® Core member
  • 57,246 posts

+702
Excellent

Posted 12 August 2024 - 08:56

We you don’t have problems here as in Europe with DDDD that is never used here. but basically using it it is wrong…. Better consider to use CccC or so for streams. But you can also remove the references as long you do not want epg :)
Thanks for showing here how the plugin is storing stuff. Rather complicated don’t you think. And also wierd it stored indeed 5002 but not others. The plugin needs to be resolve it so it stores everything what is in the service ref without an additional filter. For legacy the wierd what it does store is not really of interest… as the whole settings are already lamedb…

Edited by littlesat, 12 August 2024 - 09:02.

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



9 user(s) are reading this topic

0 members, 9 guests, 0 anonymous users