Jump to content


Photo

Make the letterbox plugin automatic?

letterbox

  • Please log in to reply
39 replies to this topic

#1 djnice

  • Member
  • 8 posts

0
Neutral

Posted 30 December 2011 - 21:10

I wondered if it was possible to make this plugin automatic also. I'm thinking that it scans the bottom and top lines of the screen and when it sees they are black the plugin zooms the image (and when they are no longer black it zooms out).
It's possible?

Re: Make the letterbox plugin automatic? #2 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 30 December 2011 - 22:35

which hardware?

Re: Make the letterbox plugin automatic? #3 djnice

  • Member
  • 8 posts

0
Neutral

Posted 30 December 2011 - 22:53

Xtrend ET5000 (Broadcom BCM 7413)

Re: Make the letterbox plugin automatic? #4 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 30 December 2011 - 22:58

In that case, have you tried to use the 'auto' policy (echo auto > /proc/stb/video/policy, and/or echo auto > /proc/stb/video/policy2)
That seems to do just that, auto letterbox / pillarbox zoom.

Re: Make the letterbox plugin automatic? #5 djnice

  • Member
  • 8 posts

0
Neutral

Posted 31 December 2011 - 08:52

OK, but I didn't mean that. The 16/9 content is in a 4/3 picture (http://en.wikipedia.org/wiki/Letterbox), and the 16/9 switching signal is not present, so that only the manual zoom is the solution.

One of the OpenPLi image developers (Milo) said this would be relatively easy to implement. He had the following to say:
"You could bast this option on the amBX grabber code which takes a screenshot about 10 times a second. For the detection you would only have to look at the Luma (Y component) which makes processing a lot easier."

Re: Make the letterbox plugin automatic? #6 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 31 December 2011 - 11:08

but did you try the auto modes?
I found that they autozoom letterbox (and pillarbox) formats, as long as there are no subtitles or logos in the borders

Re: Make the letterbox plugin automatic? #7 Dimitrij

  • PLi® Core member
  • 10,186 posts

+346
Excellent

Posted 31 December 2011 - 11:36

In that case, have you tried to use the 'auto' policy (echo auto > /proc/stb/video/policy, and/or echo auto > /proc/stb/video/policy2)
That seems to do just that, auto letterbox / pillarbox zoom.

Where to set these options in the menu?

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


Re: Make the letterbox plugin automatic? #8 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 31 December 2011 - 11:43

the auto option is not yet in the menu, you have to use the commandline for now.
if you think they are useful we can add them

Re: Make the letterbox plugin automatic? #9 neku

  • Senior Member
  • 181 posts

+2
Neutral

Posted 31 December 2011 - 11:48

Does this work on Vu+ Duo too?

Re: Make the letterbox plugin automatic? #10 Dimitrij

  • PLi® Core member
  • 10,186 posts

+346
Excellent

Posted 31 December 2011 - 11:51

the auto option is not yet in the menu, you have to use the commandline for now.
if you think they are useful we can add them

Activities need to test.
Maybe for Russian users as necessary.
Our Service Providers (Tricolour, NTV +), transmit the image as they please :) .

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


Re: Make the letterbox plugin automatic? #11 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 31 December 2011 - 11:54

I think not, but
cat /proc/stb/video/policy_choices
will tell yo which options are supported

Re: Make the letterbox plugin automatic? #12 Dimitrij

  • PLi® Core member
  • 10,186 posts

+346
Excellent

Posted 31 December 2011 - 12:08

@pieterg
Another wanted to ask.
That this mode 16:10 letterbox, to ET does not exist?

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


Re: Make the letterbox plugin automatic? #13 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 31 December 2011 - 12:14

@pieterg
Another wanted to ask.
That this mode 16:10 letterbox, to ET does not exist?


not sure what you mean, a tv is either 4:3 or 16:9. Or do you have a 16:10 screen?

there are two settings: policy and policy2.
One configures how to display nonstandard formats on 4:3, and the other how to display nonstandard formats on 16:9

Re: Make the letterbox plugin automatic? #14 djnice

  • Member
  • 8 posts

0
Neutral

Posted 31 December 2011 - 12:26

In that case, have you tried to use the 'auto' policy (echo auto > /proc/stb/video/policy, and/or echo auto > /proc/stb/video/policy2)
That seems to do just that, auto letterbox / pillarbox zoom.


I tried, and it works! Thank you!

Re: Make the letterbox plugin automatic? #15 daddelfalk

  • Senior Member
  • 489 posts

+17
Neutral

Posted 31 December 2011 - 12:38

Hi,

commit attached Patch to Xtend Policy-Choice Seletion with Auto-Mode via GUI (A/V-Settings -> Display 4:3 Content or Display 16:9 COntent as...

Currently this Mode is only supported by Xtrend STBs.

Attached Files



Re: Make the letterbox plugin automatic? #16 Dimitrij

  • PLi® Core member
  • 10,186 posts

+346
Excellent

Posted 31 December 2011 - 12:43


@pieterg
Another wanted to ask.
That this mode 16:10 letterbox, to ET does not exist?


not sure what you mean, a tv is either 4:3 or 16:9. Or do you have a 16:10 screen?

there are two settings: policy and policy2.
One configures how to display nonstandard formats on 4:3, and the other how to display nonstandard formats on 16:9

I was asked to learn about it.
Russian-speaking users of ET.
They speak a Dream 800 has such a regime.
I can not check myself, there is no Dream :) .

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


Re: Make the letterbox plugin automatic? #17 Dimitrij

  • PLi® Core member
  • 10,186 posts

+346
Excellent

Posted 31 December 2011 - 13:37

Hi,

commit attached Patch to Xtend Policy-Choice Seletion with Auto-Mode via GUI (A/V-Settings -> Display 4:3 Content or Display 16:9 COntent as...

Currently this Mode is only supported by Xtrend STBs.



root@et9x00:~# cat /proc/stb/video/policy_choices
auto bestfit letterbox panscan nonlinear
root@et9x00:~# cat /proc/stb/video/policy2_choices
auto bestfit letterbox panscan nonlinear policy

These two modes of why?

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


Re: Make the letterbox plugin automatic? #18 daddelfalk

  • Senior Member
  • 489 posts

+17
Neutral

Posted 31 December 2011 - 14:13

Hi,

thank's for hint, just missed them. Hope now everything is covered.

Attached Files



Re: Make the letterbox plugin automatic? #19 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 31 December 2011 - 14:37

thank's for hint, just missed them. Hope now everything is covered.


I think we should only add 'auto'.
For instance 'policy' is used automatically, when the tv aspect ratio is 4:3.
/proc/stb/video/policy will be used instead of policy2, when that is the case.
I think adding 'policy' to the list of 'policy2' choices adds confusion.

Also, nonlinear does not make much sense for widescreen formats.
It only makes sense to stretch 4:3 to 16:9 displays, not the other way around.
So I would keep that one out of the policy2 choices as well.

Now regarding the 'auto' choice.
I think we should only show that choice if the hardware supports it (e.g. check policy_choices)

Re: Make the letterbox plugin automatic? #20 littlesat

  • PLi® Core member
  • 56,933 posts

+695
Excellent

Posted 31 December 2011 - 14:40

But is that auto option available for all boxes???

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



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users