Skip to main content

BDLocator restriction...

3 replies [Last post]
gospeller
Offline
Joined: 2007-07-13
Points: 0

Hello all!

1. My problem is that I can't get access from BD-J to audiostream of a file 00000.m2ts. Access to video stream, video + audio streams works fine. But it's impossible to get access directly to audiostream, which is located in BDMV/STREAM/00000.m2ts. How can I bypass this restriction?

I use BDLocator for access to the streams. The audiostream is necessary, AUXData does not approach.

2. What does that mean following parameters at BDLocator? How to use them?

Parameters:
a) "A1:";
b) "A2:";
c) "V1:";
d) "V2:";
e) "P:";

If I understand correctly, "A" - Audio, "V" - Video, "1" - Primary, "2" - Secondary, "P" - ???

There is no any information of these parametes in Internet. Experiments with them have not given any effects.

Reply viewing options

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

Gospeller -

An example would be:

bd://PLAYLIST:00000.A1:02&A2:01&V1:01&V2:02&P:02

That would select:

A1:02 - Primary audio stream 2
A2:01 - Secondary audio stream 1
V1:01 - Primary video stream 1
V2:02 - Secondary video stream 2
P:02 - PG stream 2

If you just want to access audio stream 2, for example, you could do:

bd://PLAYLIST:00000.A1:02

If you just want audio without video, that's not possible - it will
always be in conjunction with primary video unless using interactive
audio. Maybe I misunderstand?

Hope this helps.

Cheers,
Joe

On Dec 21, 2007, at 4:02 AM, bd-j-dev@mobileandembedded.org wrote:

> Hello all!
>
> 1. My problem is that I can't get access from BD-J to audiostream of
> a file 00000.m2ts. Access to video stream, video + audio streams
> works fine. But it's impossible to get access directly to
> audiostream, which is located in BDMV/STREAM/00000.m2ts. How can I
> bypass this restriction?
>
> I use BDLocator for access to the streams. The audiostream is
> necessary, AUXData does not approach.
>
> 2. What does that mean following parameters at BDLocator? How to use
> them?
>
> Parameters:
> a) "A1:";
> b) "A2:";
> c) "V1:";
> d) "V2:";
> e) "P:";
>
> If I understand correctly, "A" - Audio, "V" - Video, "1" - Primary,
> "2" - Secondary, "P" - ???
>
> There is no any information of these parametes in Internet.
> Experiments with them have not given any effects.
> [Message sent by forum member 'gospeller' (gospeller)]
>
> http://forums.java.net/jive/thread.jspa?messageID=251118
>
> ---------------------------------------------------------------------
> 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

Bill Foote

Joe Rice wrote:
> Gospeller -
>
> An example would be:
>
> bd://PLAYLIST:00000.A1:02&A2:01&V1:01&V2:02&P:02
>
> That would select:
>
> A1:02 - Primary audio stream 2
> A2:01 - Secondary audio stream 1
> V1:01 - Primary video stream 1
> V2:02 - Secondary video stream 2
> P:02 - PG stream 2
>
> If you just want to access audio stream 2, for example, you could do:
>
> bd://PLAYLIST:00000.A1:02
>
> If you just want audio without video, that's not possible - it will
> always be in conjunction with primary video unless using interactive
> audio. Maybe I misunderstand?

Just out of curiosity, do you know if you can build a playlist
that refers to an audio stream with no video stream? Or, if that
doesn't work, could you build a playlist with the same audio stream
as some other playlist, but whose video stream is a slug encoded
into the same m2ts? I assume a black screen compresses really well.

I guess this wouldn't help if what you want to do is seamlessly
switch off video in the middle of playing a playlist because you
want the video buffer for something else (like to show an image in
the HBackgroundDevice), so if these workarounds work, I don't know
if it helps gospeller or not. I'm just curious about what you can
do with playlists, really.

Bill

> Hope this helps.
>
> Cheers,
> Joe
>
>
> On Dec 21, 2007, at 4:02 AM, bd-j-dev@mobileandembedded.org wrote:
>
>> Hello all!
>>
>> 1. My problem is that I can't get access from BD-J to audiostream of a
>> file 00000.m2ts. Access to video stream, video + audio streams works
>> fine. But it's impossible to get access directly to audiostream, which
>> is located in BDMV/STREAM/00000.m2ts. How can I bypass this restriction?
>>
>> I use BDLocator for access to the streams. The audiostream is
>> necessary, AUXData does not approach.
>>
>> 2. What does that mean following parameters at BDLocator? How to use
>> them?
>>
>> Parameters:
>> a) "A1:";
>> b) "A2:";
>> c) "V1:";
>> d) "V2:";
>> e) "P:";
>>
>> If I understand correctly, "A" - Audio, "V" - Video, "1" - Primary,
>> "2" - Secondary, "P" - ???
>>
>> There is no any information of these parametes in Internet.
>> Experiments with them have not given any effects.
>> [Message sent by forum member 'gospeller' (gospeller)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=251118
>>
>> ---------------------------------------------------------------------
>> 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

Bill,

Sorry this response took so long to provide!

If one looks at Annex B in the BD spec 3-1, B.9 Note 4 indicates that
the number of primary video streams shall always be 1 - it's
disallowed to be 0.

One can certainly put in an all black video stream, and it will
consume almost no storage space. However, if the intent is to use an
audio stream which is used in another clip in this situation, a copy
of that elementary stream must exist in each clip file, so duplication
does occur there.

For that case, use of out-of-mux secondary (or even primary) audio
streams as part of a Virtual Package would be worth considering, so
that the same audio could be used in multiple contexts without data
duplication.

I haven't figured out if one can hide the video plane of a JMF player
during playback to expose the background device, but I suspect not
(without stopping the player).

Cheers,
Joe

On Dec 21, 2007, at 9:35 AM, Bill Foote wrote:

> Joe Rice wrote:
>> Gospeller -
>> An example would be:
>> bd://PLAYLIST:00000.A1:02&A2:01&V1:01&V2:02&P:02
>> That would select:
>> A1:02 - Primary audio stream 2
>> A2:01 - Secondary audio stream 1
>> V1:01 - Primary video stream 1
>> V2:02 - Secondary video stream 2
>> P:02 - PG stream 2
>> If you just want to access audio stream 2, for example, you could do:
>> bd://PLAYLIST:00000.A1:02
>> If you just want audio without video, that's not possible - it will
>> always be in conjunction with primary video unless using
>> interactive audio. Maybe I misunderstand?
>
>
> Just out of curiosity, do you know if you can build a playlist
> that refers to an audio stream with no video stream? Or, if that
> doesn't work, could you build a playlist with the same audio stream
> as some other playlist, but whose video stream is a slug encoded
> into the same m2ts? I assume a black screen compresses really well.
>
> I guess this wouldn't help if what you want to do is seamlessly
> switch off video in the middle of playing a playlist because you
> want the video buffer for something else (like to show an image in
> the HBackgroundDevice), so if these workarounds work, I don't know
> if it helps gospeller or not. I'm just curious about what you can
> do with playlists, really.
>
> Bill
>
>> Hope this helps.
>> Cheers,
>> Joe
>> On Dec 21, 2007, at 4:02 AM, bd-j-dev@mobileandembedded.org wrote:
>>> Hello all!
>>>
>>> 1. My problem is that I can't get access from BD-J to audiostream
>>> of a file 00000.m2ts. Access to video stream, video + audio
>>> streams works fine. But it's impossible to get access directly to
>>> audiostream, which is located in BDMV/STREAM/00000.m2ts. How can I
>>> bypass this restriction?
>>>
>>> I use BDLocator for access to the streams. The audiostream is
>>> necessary, AUXData does not approach.
>>>
>>> 2. What does that mean following parameters at BDLocator? How to
>>> use them?
>>>
>>> Parameters:
>>> a) "A1:";
>>> b) "A2:";
>>> c) "V1:";
>>> d) "V2:";
>>> e) "P:";
>>>
>>> If I understand correctly, "A" - Audio, "V" - Video, "1" -
>>> Primary, "2" - Secondary, "P" - ???
>>>
>>> There is no any information of these parametes in Internet.
>>> Experiments with them have not given any effects.
>>> [Message sent by forum member 'gospeller' (gospeller)]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=251118
>>>
>>> ---------------------------------------------------------------------
>>> 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
>

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