Skip to main content

PiP on PS3

10 replies [Last post]
peez
Offline
Joined: 2007-04-10

I'm trying to show a PiP on PS3.

This is done by
1. getting the PiPControl
2. pipControl.selectStreamNumber( 1 );
3. pipControl.setDisplay( true );

That's perfectly working on the WinDVD player. But on PS3 it's always throwing a StreamNotAvailableException.

Can anybody help?

Reply viewing options

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

Sorry, that last one should read prefetched, not perfetched.

The dangers of typing email on a phone!

Joe
------Original Message------
From: Philipp.Lamp@Bertelsmann.de
Sender: bd-j-dev-return-609-joe=mx-production.com@hdcookbook.dev.java.net
To: bd-j-dev@hdcookbook.dev.java.net
ReplyTo: bd-j-dev@hdcookbook.dev.java.net
Sent: Mar 31, 2008 8:08 AM
Subject: AW: [BD-J-DEV] PiP on PS3

Oh Joe are you thinking I use streams from the local storage? I'm not.
I am using out-of-mux streams right from the disc so I haven't had to deal with paths until now (Just set it up in Scenarist).

Now I am quite sure that my problem is not related to the streams. Have set up a new HDMV title that's pointing to the same playlist as the BD-J title inside the same project.
In the HDMV title it's working without problem, in the BD-J title not.

Perhaps I'm thinking somehow wrong in the player prodedure?

That's my raw approach:

m_BDLocator = new BDLocator( "bd://PLAYLIST:00001" );

m_mediaLocator = new MediaLocator( m_BDLocator );
player = Manager.createPlayer( m_mediaLocator );

//get PiPControl

player.prefetch();
player.start();

//somewhere in BD-J a few minutes later:
pipControl.selectStreamNumber(1);
pipControl.setDisplay(true);

Cheers,
Philipp

-----Ursprüngliche Nachricht-----
Von: Joe Rice [mailto:joe@mx-production.com]
Gesendet: Montag, 31. März 2008 16:40
An: bd-j-dev@hdcookbook.dev.java.net
Betreff: Re: [BD-J-DEV] PiP on PS3

On Mar 30, 2008, at 10:45 PM, > wrote:

>
>> Since it's out-of-mux, are you absolutely sure that the VFS update is
>> succeeding on the PS3? If it didn't succeed then the stream wouldn't
>> be available, which could explain that exception?
>
> Not quite sure. But since it is below 40mbit I was of the opinion...
>

Joe Rice

I think I must misunderstand. Out of mux streams cannot be played from disc. They have to play from local storage.

To all be on disc, in mux secondary video must be used.

Based on your further description it sounds like maybe you're using in mux?

Looking at your code I think the problem is with where you're getting the PiP control. That won't be available until the JMF player is perfetched, and maybe not even until it's started. (I don't recall offhand what the current spec says on this.).

Try getting the PiP control after the player is perfetched or started.

Cheers,
Joe
------Original Message------
From: Philipp.Lamp@Bertelsmann.de
Sender: bd-j-dev-return-609-joe=mx-production.com@hdcookbook.dev.java.net
To: bd-j-dev@hdcookbook.dev.java.net
ReplyTo: bd-j-dev@hdcookbook.dev.java.net
Sent: Mar 31, 2008 8:08 AM
Subject: AW: [BD-J-DEV] PiP on PS3

Oh Joe are you thinking I use streams from the local storage? I'm not.
I am using out-of-mux streams right from the disc so I haven't had to deal with paths until now (Just set it up in Scenarist).

Now I am quite sure that my problem is not related to the streams. Have set up a new HDMV title that's pointing to the same playlist as the BD-J title inside the same project.
In the HDMV title it's working without problem, in the BD-J title not.

Perhaps I'm thinking somehow wrong in the player prodedure?

That's my raw approach:

m_BDLocator = new BDLocator( "bd://PLAYLIST:00001" );

m_mediaLocator = new MediaLocator( m_BDLocator );
player = Manager.createPlayer( m_mediaLocator );

//get PiPControl

player.prefetch();
player.start();

//somewhere in BD-J a few minutes later:
pipControl.selectStreamNumber(1);
pipControl.setDisplay(true);

Cheers,
Philipp

-----Ursprüngliche Nachricht-----
Von: Joe Rice [mailto:joe@mx-production.com]
Gesendet: Montag, 31. März 2008 16:40
An: bd-j-dev@hdcookbook.dev.java.net
Betreff: Re: [BD-J-DEV] PiP on PS3

On Mar 30, 2008, at 10:45 PM, > wrote:

>
>> Since it's out-of-mux, are you absolutely sure that the VFS update is
>> succeeding on the PS3? If it didn't succeed then the stream wouldn't
>> be available, which could explain that exception?
>
> Not quite sure. But since it is below 40mbit I was of the opinion...
>

Philipp.Lamp@Bertelsmann.de

Oooh yes you're right. Now I'm getting the PiPControl after the player is started and it works. Thanks a lot!

I'm quite sure that it's an out-of-mux stream right from the disc. Don't have an according section in the spec but Scenarist offers me three different types of video subpaths:

- Out-of-mux Synchronous
- Out-of-mux Asynchronous
- In-mux Synchronous

I'll check the spec in two weeks when I get back to the office.

-----Ursprüngliche Nachricht-----
Von: Joe Rice [mailto:joe@mx-production.com]
Gesendet: Montag, 31. März 2008 17:38
An: bd-j-dev@hdcookbook.dev.java.net
Betreff: Re: AW: [BD-J-DEV] PiP on PS3

I think I must misunderstand. Out of mux streams cannot be played from disc. They have to play from local storage.

To all be on disc, in mux secondary video must be used.

Based on your further description it sounds like maybe you're using in mux?

Looking at your code I think the problem is with where you're getting the PiP control. That won't be available until the JMF player is perfetched, and maybe not even until it's started. (I don't recall offhand what the current spec says on this.).

Try getting the PiP control after the player is perfetched or started.

Cheers,
Joe
------Original Message------
From: Philipp.Lamp@Bertelsmann.de
Sender: bd-j-dev-return-609-joe=mx-production.com@hdcookbook.dev.java.net
To: bd-j-dev@hdcookbook.dev.java.net
ReplyTo: bd-j-dev@hdcookbook.dev.java.net
Sent: Mar 31, 2008 8:08 AM
Subject: AW: [BD-J-DEV] PiP on PS3

Oh Joe are you thinking I use streams from the local storage? I'm not.
I am using out-of-mux streams right from the disc so I haven't had to deal with paths until now (Just set it up in Scenarist).

Now I am quite sure that my problem is not related to the streams. Have set up a new HDMV title that's pointing to the same playlist as the BD-J title inside the same project.
In the HDMV title it's working without problem, in the BD-J title not.

Perhaps I'm thinking somehow wrong in the player prodedure?

That's my raw approach:

m_BDLocator = new BDLocator( "bd://PLAYLIST:00001" );

m_mediaLocator = new MediaLocator( m_BDLocator );
player = Manager.createPlayer( m_mediaLocator );

//get PiPControl

player.prefetch();
player.start();

//somewhere in BD-J a few minutes later:
pipControl.selectStreamNumber(1);
pipControl.setDisplay(true);

Cheers,
Philipp

-----Ursprüngliche Nachricht-----
Von: Joe Rice [mailto:joe@mx-production.com]
Gesendet: Montag, 31. März 2008 16:40
An: bd-j-dev@hdcookbook.dev.java.net
Betreff: Re: [BD-J-DEV] PiP on PS3

On Mar 30, 2008, at 10:45 PM, > wrote:

>
>> Since it's out-of-mux, are you absolutely sure that the VFS update is
>> succeeding on the PS3? If it didn't succeed then the stream wouldn't
>> be available, which could explain that exception?
>
> Not quite sure. But since it is below 40mbit I was of the opinion...
>

---------------------------------------------------------------------
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

Bill Foote

Philipp.Lamp@Bertelsmann.de wrote:
> Joe, do you know why I have received your answer by the mailing list but I can't see it in the forum? I'm confused ;) did you answer by an email client?

There's a gateway between the two, and it seems to freeze
up from time to time. I've sent a message to the person
who set it up -- and my thanks to him, because I think
having both ways to access the list is a big convenience.

This is the second time I know of it has stopped working.
The messages are just delayed, not lost -- still, I hope we
can find a way to make the gateway more reliable.

Cheers,

Bill

---------------------------------------------------------------------
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

Joe Rice

Hmm, we've done something similar and it works on PS3.

A couple things to check:

1. Is the PS3 2.10 firmware or later? (IIRC that's when PiP was added)

2. Are you issuing those calls after the JMF player has reached the
prefetched or started state? (I'll have to check the spec - the
controls may not be guaranteed until the player is started, so maybe
safest at that point).

3. Is the PiP synchronous or asynchronous? On the PS3, at least,
AsynchronousPiPControl.start() may yield better results if the PiP is
async.

4. Is the PiP out-of-mux? If so, is the VFS update possibly
succeeding on WinDVD, but not on PS3, resulting in the PiP stream not
being present?

5. Have you tried without the selectStreamNumber() call? If there's
only one stream, it should be selected by default. (Although you
should also be able to select it specifically, of course.)

Cheers,
Joe

On Mar 27, 2008, at 7:10 AM, bd-j-dev@mobileandembedded.org wrote:

> I'm trying to show a PiP on PS3.
>
> This is done by
> 1. getting the PiPControl
> 2. pipControl.selectStreamNumber( 1 );
> 3. pipControl.setDisplay( true );
>
> That's perfectly working on the WinDVD player. But on PS3 it's
> always throwing a StreamNotAvailableException.
>
> Can anybody help?
> [Message sent by forum member 'peez' (peez)]
>
> http://forums.java.net/jive/thread.jspa?messageID=266227
>
> ---------------------------------------------------------------------
> 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

Philipp.Lamp@Bertelsmann.de

Joe, do you know why I have received your answer by the mailing list but I can't see it in the forum? I'm confused ;) did you answer by an email client?

Yes the PS3 has the newest (now 2.20) firmware installed and these calls are happening some time while the main video is already playing, so I think the player should be in started state.

The PiP is synchronous and out-of-mux, but the overall datarate is less than 40mbit/s.

To be exact, there are 6 out-of-mux video subplayitems all with the same clip. This is done to "move" the subvideo over the screen. But I also tried with only one stream and it also didn't work.

The strange thing is a similar stream scenario is working in HDMV mode.

Cheers,
Philipp

-----Ursprüngliche Nachricht-----
Von: Joe Rice [mailto:joe@mx-production.com]
Gesendet: Donnerstag, 27. März 2008 16:32
An: bd-j-dev@hdcookbook.dev.java.net
Betreff: Re: [BD-J-DEV] PiP on PS3

Hmm, we've done something similar and it works on PS3.

A couple things to check:

1. Is the PS3 2.10 firmware or later? (IIRC that's when PiP was added)

2. Are you issuing those calls after the JMF player has reached the
prefetched or started state? (I'll have to check the spec - the
controls may not be guaranteed until the player is started, so maybe
safest at that point).

3. Is the PiP synchronous or asynchronous? On the PS3, at least,
AsynchronousPiPControl.start() may yield better results if the PiP is
async.

4. Is the PiP out-of-mux? If so, is the VFS update possibly
succeeding on WinDVD, but not on PS3, resulting in the PiP stream not
being present?

5. Have you tried without the selectStreamNumber() call? If there's
only one stream, it should be selected by default. (Although you
should also be able to select it specifically, of course.)

Cheers,
Joe

On Mar 27, 2008, at 7:10 AM, bd-j-dev@mobileandembedded.org wrote:

> I'm trying to show a PiP on PS3.
>
> This is done by
> 1. getting the PiPControl
> 2. pipControl.selectStreamNumber( 1 );
> 3. pipControl.setDisplay( true );
>
> That's perfectly working on the WinDVD player. But on PS3 it's
> always throwing a StreamNotAvailableException.
>
> Can anybody help?
> [Message sent by forum member 'peez' (peez)]
>
> http://forums.java.net/jive/thread.jspa?messageID=266227
>
> ---------------------------------------------------------------------
> 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

---------------------------------------------------------------------
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

Joe Rice

On Mar 28, 2008, at 8:22 AM, > wrote:

> Joe, do you know why I have received your answer by the mailing list
> but I can't see it in the forum? I'm confused ;) did you answer by
> an email client?

Yep, I did it via email. Maybe somebody from Sun could look at this?

> The PiP is synchronous and out-of-mux, but the overall datarate is
> less than 40mbit/s.

Since it's out-of-mux, are you absolutely sure that the VFS update is
succeeding on the PS3? If it didn't succeed then the stream wouldn't
be available, which could explain that exception?

> The strange thing is a similar stream scenario is working in HDMV
> mode.

Using out-of-mux streams?

Cheers,
Joe

---------------------------------------------------------------------
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

Philipp.Lamp@Bertelsmann.de

> Since it's out-of-mux, are you absolutely sure that the VFS update is
> succeeding on the PS3? If it didn't succeed then the stream wouldn't
> be available, which could explain that exception?

Not quite sure. But since it is below 40mbit I was of the opinion... Are there any special restrictions regarding out-of-mux streams? E.g. overall data rate?

>> The strange thing is a similar stream scenario is working in HDMV
>> mode.

> Using out-of-mux streams?

Yep.

Perhaps I should re-setup a new project. Wouldn't be the first time this is necessary.

-----Ursprüngliche Nachricht-----
Von: Joe Rice [mailto:joe@mx-production.com]
Gesendet: Freitag, 28. März 2008 17:31

On Mar 28, 2008, at 8:22 AM, > wrote:

> Joe, do you know why I have received your answer by the mailing list
> but I can't see it in the forum? I'm confused ;) did you answer by
> an email client?

Yep, I did it via email. Maybe somebody from Sun could look at this?

> The PiP is synchronous and out-of-mux, but the overall datarate is
> less than 40mbit/s.

Since it's out-of-mux, are you absolutely sure that the VFS update is
succeeding on the PS3? If it didn't succeed then the stream wouldn't
be available, which could explain that exception?

> The strange thing is a similar stream scenario is working in HDMV
> mode.

Using out-of-mux streams?

Cheers,
Joe

---------------------------------------------------------------------
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

Joe Rice

On Mar 30, 2008, at 10:45 PM, > wrote:

>
>> Since it's out-of-mux, are you absolutely sure that the VFS update is
>> succeeding on the PS3? If it didn't succeed then the stream wouldn't
>> be available, which could explain that exception?
>
> Not quite sure. But since it is below 40mbit I was of the opinion...
> Are there any special restrictions regarding out-of-mux streams?
> E.g. overall data rate?

Well, for SD PiP, the combined data rate of the video must be under
40, and under 48 for everything. Is there any way you can verify that
the VFS update you're requesting to create the Virtual Package which
references the out-of-mux stream is succeeding? Could there be some
issue there with the BUMF or BUSF that's seen on PS3 but not WinDVD?

One common reason things might work on a PC player but not a hardware
player is a typo involving case. For example, on the PC /7FFFABCD/
ABCDEFG/STREAM.M2T is the same as /7fffabcd/abcdefg/stream.m2t, but on
a PS3 or most hardware players, they refer to completely different
paths.

Joe

---------------------------------------------------------------------
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

Philipp.Lamp@Bertelsmann.de

Oh Joe are you thinking I use streams from the local storage? I'm not.
I am using out-of-mux streams right from the disc so I haven't had to deal with paths until now (Just set it up in Scenarist).

Now I am quite sure that my problem is not related to the streams. Have set up a new HDMV title that's pointing to the same playlist as the BD-J title inside the same project.
In the HDMV title it's working without problem, in the BD-J title not.

Perhaps I'm thinking somehow wrong in the player prodedure?

That's my raw approach:

m_BDLocator = new BDLocator( "bd://PLAYLIST:00001" );

m_mediaLocator = new MediaLocator( m_BDLocator );
player = Manager.createPlayer( m_mediaLocator );

//get PiPControl

player.prefetch();
player.start();

//somewhere in BD-J a few minutes later:
pipControl.selectStreamNumber(1);
pipControl.setDisplay(true);

Cheers,
Philipp

-----Ursprüngliche Nachricht-----
Von: Joe Rice [mailto:joe@mx-production.com]
Gesendet: Montag, 31. März 2008 16:40
An: bd-j-dev@hdcookbook.dev.java.net
Betreff: Re: [BD-J-DEV] PiP on PS3

On Mar 30, 2008, at 10:45 PM, > wrote:

>
>> Since it's out-of-mux, are you absolutely sure that the VFS update is
>> succeeding on the PS3? If it didn't succeed then the stream wouldn't
>> be available, which could explain that exception?
>
> Not quite sure. But since it is below 40mbit I was of the opinion...
> Are there any special restrictions regarding out-of-mux streams?
> E.g. overall data rate?

Well, for SD PiP, the combined data rate of the video must be under
40, and under 48 for everything. Is there any way you can verify that
the VFS update you're requesting to create the Virtual Package which
references the out-of-mux stream is succeeding? Could there be some
issue there with the BUMF or BUSF that's seen on PS3 but not WinDVD?

One common reason things might work on a PC player but not a hardware
player is a typo involving case. For example, on the PC /7FFFABCD/
ABCDEFG/STREAM.M2T is the same as /7fffabcd/abcdefg/stream.m2t, but on
a PS3 or most hardware players, they refer to completely different
paths.

Joe

---------------------------------------------------------------------
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