Skip to main content

AWTVideoSize under PowerDVD / PS3 / WinDVD

1 reply [Last post]
gent2k7
Offline
Joined: 2007-06-25

Hi everyone,

I come back to you after my last year a a student, and now working on Blu-ray authoring/development in a French DVD-BD studio located in Paris.

I'm testing some JMF functions and I was wondering if there was any BD specification regarding AWTVideoSize.

I'm resizing my primary video stream and I get several configurations :
- under WinDVD : does not work
- under Cyberlink Power DVD, I can't resize my video if there is a secondary video stream (I don't know if this is mandatory for BD or just not implemented under PDVD)
- under PS3 : it seems like the resizement keeps the ratio W/H (for example :
* source : new Rectangle (0,0,1920,1080)
* dest : new Rectangle (0,0,1920/2,1080/2) works fine
* dest : new Rectangle (0,0,1920/4, 1080/2) works only under PDVD; under PS3 I get my video resized to (0,0,1920/4,1080/4).

Does anybody knows about this problem ? Will I be in trouble under other plateform and players ?

My code is the following :
-----------------------------------------------------------------------------------------------------------------
public void resize(AWTVideoSize size) throws Exception {
try {
AWTVideoSizeControl awtVideoSizeControl = (AWTVideoSizeControl) getPlayer().getControl("javax.tv.media.AWTVideoSizeControl");
awtVideoSizeControl.setSize(size);
} catch (Exception e) {
e.printStackTrace();
throw e;
}
}
-----------------------------------------------------------------------------------------------------------------
call : player.resize(new AWTVideoSize (new Rectangle(...), new Rectangle(...));

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joe Rice

A couple quick notes which may be related:

1. The only mandatory resizing ratios in BD are .25 and .50 of both
width and height (eg keeping the same aspect ratio). Others are
optional.

2. It's illegal to resize video when the same PlayList contains a
secondary video subpath.

Joe

On May 30, 2008, at 8:58 AM, bd-j-dev@mobileandembedded.org wrote:

> Hi everyone,
>
> I come back to you after my last year a a student, and now working
> on Blu-ray authoring/development in a French DVD-BD studio located
> in Paris.
>
> I'm testing some JMF functions and I was wondering if there was any
> BD specification regarding AWTVideoSize.
>
> I'm resizing my primary video stream and I get several
> configurations :
> - under WinDVD : does not work
> - under Cyberlink Power DVD, I can't resize my video if there is a
> secondary video stream (I don't know if this is mandatory for BD or
> just not implemented under PDVD)
> - under PS3 : it seems like the resizement keeps the ratio W/H (for
> example :
> * source : new Rectangle (0,0,1920,1080)
> * dest : new Rectangle (0,0,1920/2,1080/2) works fine
> * dest : new Rectangle (0,0,1920/4, 1080/2) works only under
> PDVD; under PS3 I get my video resized to (0,0,1920/4,1080/4).
>
> Does anybody knows about this problem ? Will I be in trouble under
> other plateform and players ?
>
> My code is the following :
> -----------------------------------------------------------------------------------------------------------------
> public void resize(AWTVideoSize size) throws Exception {
> try {
> AWTVideoSizeControl awtVideoSizeControl =
> (AWTVideoSizeControl)
> getPlayer().getControl("javax.tv.media.AWTVideoSizeControl");
> awtVideoSizeControl.setSize(size);
> } catch (Exception e) {
> e.printStackTrace();
> throw e;
> }
> }
> -----------------------------------------------------------------------------------------------------------------
> call : player.resize(new AWTVideoSize (new Rectangle(...), new
> Rectangle(...));
> [Message sent by forum member 'gent2k7' (gent2k7)]
>
> http://forums.java.net/jive/thread.jspa?messageID=277587
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
> For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net