Jump to content


Photo

Scaler and resolution


  • Please log in to reply
56 replies to this topic

Re: Scaler and resolution #41 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 26 April 2021 - 10:45


 

In Greece as well, ERT Sports HD broadcasted at 1440x1080i, for a long time..

No issue at all with the current code as 1440 > 720.... will be considered as isHD

 

And completely broken the resolution detection.

 

You need to switch the values to width too.

Here it works as a charm... do you have an example.....

In Greece as well, ERT Sports HD broadcasted at 1440x1080i, for a long time..


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


Re: Scaler and resolution #42 Ev0

  • Senior Member
  • 102 posts

+7
Neutral

Posted 26 April 2021 - 10:46


And completely broken the resolution detection.

 

You need to switch the values to width too.

Here it works as a charm... do you have an example.....

 

https://forums.openp...-2#entry1342487


Edited by Ev0, 26 April 2021 - 10:47.


Re: Scaler and resolution #43 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 26 April 2021 - 11:00


The issue is you have left the values used for height.

 

I see with isHD and Widescreen and IS_720 and IS_1080.... thanks

                                                                               videoWidth = info.getInfo(iServiceInformation.sVideoWidth)
                                                                               self.videoWidth = videoWidth if videoWidth > 0 else self.videoWidth
                                                                               if self.type == self.IS_SD:
                                                                                              return self.videoWidth and self.videoWidth <= 720
                                                                               elif self.type == self.IS_HD:
                                                                                              return self.videoWidth > 720 and self.videoWidth <= 1920
                                                                               elif self.type == self.IS_4K:
                                                                                              return self.videoWidth > 1920
                                                                               elif self.type == self.IS_1080:
                                                                                              return self.videoWidth > 1000 and self.videoWidth <= 1080
                                                                               elif self.type == self.IS_720:
                                                                                              return self.videoWidth == 720
                                                                               else:
                                                                                              aspect = info.getInfo(iServiceInformation.sAspect)
                                                                                              self.aspect = aspect if aspect > -1 else self.aspect
                                                                                              if self.type == self.IS_SD_AND_WIDESCREEN:
                                                                                                              return self.videoWidth and self.aspect and self.videoWidth <= 720 and self.aspect in WIDESCREEN
                                                                                              if self.type == self.IS_SD_AND_NOT_WIDESCREEN:
                                                                                                              return self.videoWidth and self.aspect and self.videoWidth <= 720 and self.aspect not in WIDESCREEN

Edited by littlesat, 26 April 2021 - 11:03.

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


Re: Scaler and resolution #44 Ev0

  • Senior Member
  • 102 posts

+7
Neutral

Posted 26 April 2021 - 11:02

 


The issue is you have left the values used for height.

 

Can you please highlight where... Maybe we still need to keep both...

                                                                               videoWidth = info.getInfo(iServiceInformation.sVideoWidth)
                                                                               self.videoWidth = videoWidth if videoWidth > 0 else self.videoWidth
                                                                               if self.type == self.IS_SD:
                                                                                              return self.videoWidth and self.videoWidth <= 720
                                                                               elif self.type == self.IS_HD:
                                                                                              return self.videoWidth > 720 and self.videoWidth <= 1920
                                                                               elif self.type == self.IS_4K:
                                                                                              return self.videoWidth > 1920
                                                                               elif self.type == self.IS_1080:
                                                                                              return self.videoWidth > 1000 and self.videoWidth <= 1080
                                                                               elif self.type == self.IS_720:
                                                                                              return self.videoWidth == 720
                                                                               else:
                                                                                              aspect = info.getInfo(iServiceInformation.sAspect)
                                                                                              self.aspect = aspect if aspect > -1 else self.aspect
                                                                                              if self.type == self.IS_SD_AND_WIDESCREEN:
                                                                                                              return self.videoWidth and self.aspect and self.videoWidth <= 720 and self.aspect in WIDESCREEN
                                                                                              if self.type == self.IS_SD_AND_NOT_WIDESCREEN:
                                                                                                              return self.videoWidth and self.aspect and self.videoWidth <= 720 and self.aspect not in WIDESCREEN

720 = 1280 wide x 720 high

1080 = 1920 wide x 1080 high

4k = 3840 wide x 2160 high



Re: Scaler and resolution #45 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 26 April 2021 - 11:10

I just changed it back to height and changed the criteria for IS_4K from 2100 to 1500.... so it fits with e.g. 3840x1606p24 or 3840x2076p24.

Maybe we should taken into account both width as height... but I have no idea how to set proper criteria for SD, HD and 4K here.... I suggest for now it should be fine... (note the 1500 is still a work-a-round).


Edited by littlesat, 26 April 2021 - 11:12.

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


Re: Scaler and resolution #46 Ev0

  • Senior Member
  • 102 posts

+7
Neutral

Posted 26 April 2021 - 11:11

I just changed it back to height and changed the criteria for IS_4K from 2100 to 1500.... so it fits with e.g. 3840x1606p24 or 3840x2076p24.

 

That will work, but if you look at the example from OpenBH you can see I have used the value of 1460 (as there are still some weird and wonderful resolutions used with streaming and iptv that are outside of the normal broadcast rules).

 

I have come across something that was along the lines of 3840x1492


Edited by Ev0, 26 April 2021 - 11:12.


Re: Scaler and resolution #47 Trial

  • Senior Member
  • 1,127 posts

+34
Good

Posted 26 April 2021 - 11:44

Hi,

the highest "normal" aspect/ration I know is 25/9 (Ben Hur) which means for 4K a height of 1386, for FHD 693 and for HD 462. In this case FHD and Hd were wrong classified when using height.

 

When I changed something in AR of OpenViX I only allowed the official width of broadcast standards (704, 720, 1280, 1920, 3840) to be send to the TV without scaling in the box in their native resolution. In case of 704/720 the frequency 24/30/25 must also be taken into account.

 

Otherwise senseless double scaling takes place like 480 -> 576 ->4K which is worse than 480->4K. Here in Germany we also have these funny resolutions like 1440x1080, which is also used on some b-channels, Should not be scaled by box to 1920x1080 and then by the TV to 3840x2160.

 

Ralf


Edited by Trial, 26 April 2021 - 11:52.


Re: Scaler and resolution #48 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 26 April 2021 - 14:06


the highest "normal" aspect/ration I know is 25/9 (Ben Hur) which means for 4K a height of 1386, for FHD 693 and for HD 462. In this case FHD and Hd were wrong classified when using height.

 

Do you have a 'real' example? with these BenHur parameters it is completely 'off'... we can take 1286, but with the 462 it is not done.... Then we need also take the width in account with an or...

                                                                               videoHeight = info.getInfo(iServiceInformation.sVideoHeight)
                                                                               self.videoHeight = videoHeight if videoHeight > 0 else self.videoHeight
+                                                                            videoWidth = info.getInfo(iServiceInformation.sVideoWidth)
+                                                                            self.videoWidth = videoWidth if videoWidth > 0 else self.videoWidth
                                                                               if self.type == self.IS_SD:
-                                                                                             return self.videoHeight and self.videoHeight < 720
+                                                                                            return self.videoHeight and self.videoHeight < 462 and self.videoWidth <= 720
                                                                               elif self.type == self.IS_HD:
-                                                                                             return self.videoHeight >= 720 and self.videoHeight < 1500
+                                                                                            return (self.videoHeight >= 462 and self.videoHeight < 1286) or (self.videoWidth > 720 and self.videoWidth <= 1920)
                                                                               elif self.type == self.IS_4K:
-                                                                                             return self.videoHeight >= 1500
+                                                                                            return self.videoHeight >= 1286 or or self.videoWidth > 1920

Edited by littlesat, 26 April 2021 - 14:14.

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


Re: Scaler and resolution #49 nautilus7

  • Senior Member
  • 229 posts

+6
Neutral

Posted 26 April 2021 - 14:49

Is enigma2 used for broadcasts or as a media player?

 

Broadcasts always have standard dimensions, while movies from local files (mkv, mp4, avi) can be cropped to whatever dimension. So, best way is to decide for them with different criteria than with broadcasts! For example, use height for broadcasts and width for local/movie files. Writing code depending on Ben Hur's aspect ratio cannot be taken seriously. The same goes for choosing random numbers (462, 1286, 1500) like it is done now...


Edited by nautilus7, 26 April 2021 - 14:50.


Re: Scaler and resolution #50 Trial

  • Senior Member
  • 1,127 posts

+34
Good

Posted 26 April 2021 - 14:56

Hi,

I think Ben Hur is pretty unique. Most current films use 21:9 but this also causes problem in HD because it would result in 1280x536. In the 50th and 60th also aspect ratio up to 24:9 were used.

 

@nautilus7,

this is the reason I changed it a few years ago that broadcast formats were send to TV in their native resolution. Because E2 is used for sat/cable STBs does not mean that you do not have to care about the rest of the world. In my example 21/9 you see that the problem is with current films and a HD resolution!

 

Ralf


Edited by Trial, 26 April 2021 - 15:00.


Re: Scaler and resolution #51 nautilus7

  • Senior Member
  • 229 posts

+6
Neutral

Posted 26 April 2021 - 22:40

I insist that you cannot base your detection on actual aspect ratios seen in various films.


Edited by nautilus7, 26 April 2021 - 22:40.


Re: Scaler and resolution #52 Trial

  • Senior Member
  • 1,127 posts

+34
Good

Posted 27 April 2021 - 07:07

Hi,

why not? At least films have a certain limited number of aspect/ratios which are standard. You cannot take all the garbage of the internet into account but for films you can.

 

I know that E2 is for STBs and of course we are only using E2 to watch sat and cable TV and the recordings:-)

 

Ralf



Re: Scaler and resolution #53 OpenTel

  • Senior Member
  • 63 posts

0
Neutral

Posted 28 April 2021 - 17:43

I found that my TVs scaler is (slightly) superior to the STB, especially when watching SD content.

 

However the AR plugin caused too much delay when switching channels so I stuck with 1080P / auto frame rate.



Re: Scaler and resolution #54 WanWizard

  • PLi® Core member
  • 68,309 posts

+1,719
Excellent

Posted 28 April 2021 - 17:55

You mean the TV takes to much time switching? That is the main reason I don't use it either.

 

 

The plugin doesn't do anything but disable the scaler.


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: Scaler and resolution #55 OpenTel

  • Senior Member
  • 63 posts

0
Neutral

Posted 28 April 2021 - 18:25

You mean the TV takes to much time switching? That is the main reason I don't use it either.

 

 

The plugin doesn't do anything but disable the scaler.

Yes, I meant (of course) the TV does take too long ... it also leads to the audio amplifier to 'rethink' what's going on ...

(My amp sits between the TV and STB)


Edited by OpenTel, 28 April 2021 - 18:26.


Re: Scaler and resolution #56 Trial

  • Senior Member
  • 1,127 posts

+34
Good

Posted 29 April 2021 - 07:42

Hi,

I think most people are annoyed because of this delay and witch it off. I did it a few years ago. It is funny some boxes can switch channels in 0.1 seconds but TV needs 2-3 seconds to switch resolution:-)

 

Ralf



Re: Scaler and resolution #57 OpenTel

  • Senior Member
  • 63 posts

0
Neutral

Posted 29 April 2021 - 10:05

Hi,

I think most people are annoyed because of this delay and witch it off. I did it a few years ago. It is funny some boxes can switch channels in 0.1 seconds but TV needs 2-3 seconds to switch resolution:-)

 

Ralf

Indeed, my TV is quite old though ... possible newer TVs are quicker at that?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users