Jump to content


Ev0

Member Since 12 Feb 2012
Offline Last Active 22 Jan 2023 15:29
-----

Posts I've Made

In Topic: develop: python3 transition

29 January 2022 - 01:26

Maybe it's just me.For some reason the openwebif plugin is not working.The folder is there but there are no files *.pyc in it.

Not just you, seems to be missing in the latest OpenBh, but only on Vu+ boxes for some reason.


In Topic: Scaler and resolution

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


In Topic: Scaler and resolution

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


In Topic: Scaler and resolution

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


In Topic: Scaler and resolution

26 April 2021 - 10:38

I do not understand why change it from height to width is wrong.... it solves all issues on broadcasting.... the issue/goal/scope here are streams with letterbox in hd or 4K resolution which are not used in broadcasting.
Openvix version has the issue....
The play with with ranges are covered in the criteria I did chose.
But we can go back to height of course and just adjust the 2160 for 4K to >1080 or so....

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

This is what we use in OpenBH which works for 99% of all streaming and iptv aswell as broadcasts to detect the correct resolutions.

			elif self.type == self.IS_SD:
                                return video_height < 578
			elif self.type == self.IS_HD:
				return video_height >= 720 and video_height < 1440
			elif self.type == self.IS_SD_AND_WIDESCREEN:
				return video_height < 578 and video_aspect in WIDESCREEN
			elif self.type == self.IS_SD_AND_NOT_WIDESCREEN:
				return video_height < 578 and video_aspect not in WIDESCREEN
			elif self.type == self.IS_1080:
				return video_height > 768 and video_height <= 1440
			elif self.type == self.IS_720:
				return video_height > 481 and video_height <= 768
			elif self.type == self.IS_576:
				return video_height > 1 and video_height <= 578
 			elif self.type == self.IS_480:
				return video_height > 1 and video_height <= 480
 			elif self.type == self.IS_4K:
                                return video_height >= 1460