<PrimaryAudioVideoClip titleTimeBegin="00:00:00:00" src="file:///dvddisc/HVDVD_TS/EVOB001.MAP" titleTimeEnd="00:04:22:24" dataSource="Disc">
<Video track="1"/>
<Audio track="1" streamNumber="1"/>
<SubVideo track="1"/>
</PrimaryAudioVideoClip>
When I modify the playlist per your sample, a video controller error message reads on the Toshiba player.
My questions to you are...
1. How should the playlist read if the secondary video is muxed into the primary video
2. Does the script deviate from your sample to toggle the PIP
Thanks

Picture In Picture Sample for Toshiba Player
ChaosUK
First of all, thanks for checking in on me.
No, unfortunately I cannot get the PIP to work on the Toshiba. The XML and the Script file work fine in the MS Simulator. I have to believe there is something wrong with my playlist since the secondary video is referenced differently. I have no entry for <MediaAttributeList> per Andy's suggestion. Is this tag necessary Maybe you can tell me where I'm going wrong.
< xml version="1.0" encoding="UTF-8" >
<Playlist xmlns="http://www.dvdforum.org/2005/HDDVDVideo/Playlist" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dvdforum.org/2005/HDDVDVideo/Playlist Playlist.xsd" majorVersion="1" minorVersion="0" description="test">
<Configuration>
<StreamingBuffer size="0"/>
<Aperture size="1920x1080"/>
<MainVideoDefaultColor color="108080"/>
</Configuration>
<TitleSet defaultLanguage="en" timeBase="60fps">
<Title id="Title001" titleNumber="1" displayName="Title001" selectable="true" tickBaseDivisor="1" onEnd="Title001" alternativeSDDisplayMode="letterbox" titleDuration="00:04:22:24" >
<PrimaryAudioVideoClip titleTimeBegin="00:00:00:00" src="file:///dvddisc/HVDVD_TS/EVOB001.MAP" titleTimeEnd="00:04:22:24" dataSource="Disc">
<Video track="1"/>
<Audio track="1" streamNumber="1"/>
<SubVideo track="1"/>
</PrimaryAudioVideoClip>
<ChapterList>
<Chapter titleTimeBegin="00:00:00:00"/>
</ChapterList>
<TrackNavigationList>
<VideoTrack track="1"/>
<AudioTrack track="1" langcode="en:00"/>
</TrackNavigationList>
<ApplicationSegment autorun="true" titleTimeBegin="00:00:00:00" titleTimeEnd="00:04:22:24" src="file:///dvddisc/ADV_OBJ/Main.aca/main.xmf" zOrder="0" sync="hard" >
<ApplicationResource
loadingBegin="00:00:00:00"
priority="1"
size="18312856"
src="file:///dvddisc/ADV_OBJ/Main.aca"
multiplexed="false"
/>
</ApplicationSegment>
</Title>
</TitleSet>
</Playlist>
Also, can the two videos be swapped where the secondary video displays at full screen and the primary video becomes the PIP (understanding that the SD secondary video would look grainy at full screen).
Jamie Thomson
.NET_Developer
A minor detail needs to be changed regarding Peter's sample code for Picture In Picture.
"sub.alpha = 1;" should be "sub.alpha = 255;"
The code was executing all the while, just at too low an opacity level. Otherwise the sample works great. Thanks again Peter!
I still have the question:
Can the end user swap the two videos using the remote, where the secondary video displays at full screen and the primary video becomes the PIP (understanding that the SD secondary video would look grainy at full screen).
TRTwiggy
Yes, use changeLayout on main to make it small and on sub to make it big. As you say, the "big" video will be SD. For this to work with overlapping video you'll need to use a clearrect to "poke a hole" in the subvideo, in order for the main video to appear to be in front of it (as subvideo is in front of main video of course).
Please note that iHDSim gets video positioning via changeLayout all wrong, unless the video happens to be the same size as the aperture (e.g. 1920x1080). Sorry about that, I misinterpreted the spec, and didn't realize until we tried to run real titles through similar code. The good news is that it does support clearrect.
At some point soon I'd like to write up how to calculate changeLayout arguments correctly, as it looks like most of todays titles were determined empirically (which makes writing a player to handle them all lots of fun). It would be nice to fix iHDSim to match the spec too.
The Hamster
Benny Chang
What are the attributes of your PIP video The Toshiba player can only playback SD video as subvideo (HD playback of subvideo is an optional feature).
Your playlist looks ok, assuming you also have something like
<MediaAttributeList>
<VideoAttributeItem index = "1"
codec = 'VC-1'
/>
</MediaAttributeList>
js06
Because iHDSim doesn't support multiplexed video, we use the SecondaryVideo element. For the real players (like the Toshiba), the SubVideo track is the correct thing to use since it is multiplexed in to the EVOB along with the main video and the audio.
The code shouldn't need to change.