Skip to main content

Secondary audio + PIP

2 replies [Last post]
8track
Offline
Joined: 2009-09-04
Points: 0

Using DoStudio I have a secondary video and audio stream. Ultimately I'd like to just play the Secondary audio (with the Primary audio + video), however Secondary audio and video will work if that's all I can do.

A little bit (10 seconds) after starting to play the Primary movie, I try to create a Secondary audio control:

secondaryAudioControl = (SecondaryAudioControl) player.getControl("org.bluray.media.SecondaryAudioControl");
secondaryAudioControl.selectStreamNumber(1);

However this does not play the audio. According to this post:
http://forums.java.net/jive/thread.jspa?threadID=65312&tstart=0 I need to set comb_info_Secondary_video_Secondary_audio() correctly. Unfortunately I do not know what 'correctly' means. When I convert the playlist file to XML I do not see this argument, and do not know where to put it in the Playlist file.

Alternatively, I can play the secondary audio and video in ArcSoft TotalMedia only by selecting it in the menu (when I right-click on the screen you can choose 'secondary video' and it plays. This tells me I'm encoding it properly.

What I fail to be able to do is play the secondary audio and video through BD-J. I'm guessing it's related to the same issue, but again, 10 seconds after I play the primary movie, I run:

pipControl = (PiPControl)player.getControl("javax.media.PiPControl");
pipControl.setDisplay(true);

Anyone have any ideas with? Are both of these problems related to the lack of: comb_info_Secondary_video_Secondary_audio()

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
philippe_dubbing
Offline
Joined: 2008-10-24
Points: 0

Hi 8track,

You are using dostudio to make your own code?

Do you make a standalone project or do you connect your code to the dostudio one?

Philippe

8track
Offline
Joined: 2009-09-04
Points: 0

That is a good question!

I only use DoStudio to make the Stream, Clip and Playlist files. I then take these files and copy them into the project I created that has all my BD-J code.

So I'm only using DoStudio to create the m2ts files.