Select Aspect ratio in menu

Blu-ray and UHD Authoring
Markus1970
Posts: 43
Joined: Tue May 04, 2021 9:51 pm

Select Aspect ratio in menu

Post by Markus1970 »

Just wondering how I would incorporate two versions of the same video in a menu, it's a concert with the original 4:3 and a cropped 16:9 version.

I have the 4:3 and 16:9 version of the same concert .

I have decided on a menu with a play button and a link to a chapter menu.

So not sure where and how I would implement the control for aspect ratio to be played.

Would I create a menu structure like below.

Main menu
⬇️
Play ➡️ 16:9 version
⬇️
Chapters menu ➡️ 16:9 version
⬇️
Aspect Ratio ➡️ Aspect menu

Aspect Menu
⬇️
4:3 ➡️ Alternative Menu
⬇️
16:9 ➡️ Back to Main menu

Alternative Menu
⬇️
Play ➡️ 4:3 version
⬇️
Chapters menu ➡️ 4:3 version
⬇️
Aspect Ratio ➡️ aspect menu

Thanks in advance

Alexey Kolesnikov
Posts: 472
Joined: Fri Mar 01, 2013 1:03 pm
Contact:

Re: Select Aspect ratio in menu

Post by Alexey Kolesnikov »

Yes, you can. You can store the selected version in GPR.
Best regards,
Alexey Kolesnikov

Markus1970
Posts: 43
Joined: Tue May 04, 2021 9:51 pm

Re: Select Aspect ratio in menu

Post by Markus1970 »

I've read the quite informative guide in the downloads section and I can see references to different angles/views which you can assign to the red button etc but is this the same approach to take when you have both the 4:3 and 16:9 version of the same video.

Markus1970
Posts: 43
Joined: Tue May 04, 2021 9:51 pm

Re: Select Aspect ratio in menu

Post by Markus1970 »

Hi again

Going back to this topic .

What I would like to accomplish is to have the user set the video stream like you can with multiple audio files.
So he can set either 4:3 or 16:9 and also change this in the popup menu also.

You mention GPR but I havnt gota clue how to achieve what I want.

Thanks

Markus1970
Posts: 43
Joined: Tue May 04, 2021 9:51 pm

Re: Select Aspect ratio in menu

Post by Markus1970 »

So reading the user guide the one with 465 pages https://blu-disc.net/download/user_guid ... ard_mx.pdf there is a section detailing how to change movie angles and the one below changing from a colour to B&W version of the same movie with a UDF action.

In this UDF script it also sets language and subtitles which I don't need as I only have one audio and no subs.

I can modify the script below to have classic and wide-screen and only one audio no subs.

Code: Select all


public void UDF_SwitchBWorColour() {
// switches same movie between black/white or colourized
int PlaylistID;
int SubtitleID;
int AudioID;
long Playtime; // time is returned in nanoseconds
// Step 1. find current movie ID and set language and 
subtitle
PlaylistID = getPlaylistID();
SubtitleID = getCurrentSubID();
AudioID = getCurrentAudioID();
// Step 2. Increment the playlist ID or return to main 
movie
if (PlaylistID == 'Wonderful Life bw')
 {PlaylistID = 'Wonderful Life colour';}
else {PlaylistID = 'Wonderful Life bw';}
// Step 3: find current playing time
Playtime = getMediaTime();
// Step 4: switch movie to new version
playVideoFrom(PlaylistID, Playtime);
// Step 5: audio and subtitle streams the same as before
selectAudioSubtitleStream(PlaylistID, AudioID, SubtitleID, 
true);
}
Would this be correct.

Code: Select all

public void UDF_SwitchAspectRatio() {
// switches same movie between 4x3 and 16x9 Aspect ratios
int PlaylistID;

long Playtime; // time is returned in nanoseconds
// Step 1. find current movie ID
PlaylistID = getPlaylistID();

// Step 2. Increment the playlist ID or return to main
movie
if (PlaylistID == 'Title 4x3')
 {PlaylistID = 'Title 16x9';}
else {PlaylistID = 'Title 4x3';}
// Step 3: find current playing time
Playtime = getMediaTime();
// Step 4: switch movie to new version
playVideoFrom(PlaylistID, Playtime);
}


Markus1970
Posts: 43
Joined: Tue May 04, 2021 9:51 pm

Re: Select Aspect ratio in menu

Post by Markus1970 »

With the above can you also select the option before you start the movie like you do when choosing audio tracks to play.
Not just a option in the pop menu to change video track .

Also what I'm trying to get my head around is when you normally have a chapter menu it will point to the chapter of the movie.

So for example chapter 1 b&w version of the movie but if I have a udf to choose either b&w or color version of the movie would it overide the chapter pointing to the b&w version.

Alexey Kolesnikov
Posts: 472
Joined: Fri Mar 01, 2013 1:03 pm
Contact:

Re: Select Aspect ratio in menu

Post by Alexey Kolesnikov »

Markus1970 wrote:
Thu Jul 14, 2022 10:53 am
So for example chapter 1 b&w version of the movie but if I have a udf to choose either b&w or color version of the movie would it overide the chapter pointing to the b&w version.
Two versions - are two separate playlist. Each playlist has its own "current chapter number" and resume time.
If you want to synchronize them you need to do it manually, something like this:
manager.saveResumeTime('Movie color', manager.getMediaTime());
if you run this code in the BW playlist or
manager.saveResumeTime('Movie color', manager.getResumeTimeReg('Movie BW'));
if you run this code in the main menu
Best regards,
Alexey Kolesnikov

Markus1970
Posts: 43
Joined: Tue May 04, 2021 9:51 pm

Re: Select Aspect ratio in menu

Post by Markus1970 »

Thanks for that, where exactly do I put that code and reference to it.

Markus1970
Posts: 43
Joined: Tue May 04, 2021 9:51 pm

Re: Select Aspect ratio in menu

Post by Markus1970 »

Hi sorry to ask but the code you put above , where and in what do I put the code and how to reference it.
Thanks

Alexey Kolesnikov
Posts: 472
Joined: Fri Mar 01, 2013 1:03 pm
Contact:

Re: Select Aspect ratio in menu

Post by Alexey Kolesnikov »

When you're switching from one version to another, when returning to the main menu, and a lot of other possible places.

The problem with complex menus and using code is that you need to go deep into the programming and you need to have programming knowledge.
Best regards,
Alexey Kolesnikov

Post Reply