The 3rd Age

Gladiator Heroes

Gladiator Heroes

6 heroes are remade with powerful new spells

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Adding new videos ingame

Avatar of ched

ched

Category: Other
Level: Intermediate
Created: Sunday June 17, 2007 - 6:23
Updated: Sunday October 20, 2013 - 3:29
Views: 10049
Summary: Convert videos from or to VP6, and learn how to add them ingame.

Rating

Staff says

4.6

Members say

4.4

Average

4.5/5.0

15 votes

Page 1 2 3 4 5 6 7
Palantir videos

by Phil


The videos shown in the Palantir are a bit special. In addition to the regular video frames they hold a second set of frames for the alpha channel, which controls the transparency of the different video areas. This is done to "crop" the video to a circular shape so the edges aren't visible outside the Palantir.

It was previously believed that this type of video required encoding with the VP61 codec, which unfortunately Siberian_GRemlin's VP6 Builder does not support, and was thus impossible. However, this is not true anymore. With the Palantir Video Converter you can encode a video with regular VP60, convert it to EA VP6 and then inject the alpha channel frames required for the Palantir.


Requirements


In order to inject the alpha channel frames you will need a video in the dimensions of 224 x 224 pixels, exported with VP60 and converted to EA's VP6 format with the VP6 Builder. See page 3 for the general procedure.

If your video doesn't happen to come in the size of 224 x 224 pixels, you can use VirtualDub to crop and resize it for you. Do the following before you save it as AVI:

1. Select Video -> Filters...
2. Press the Add... button in the dialog box
3. Pick null transform and with that selected in the filters list, press Cropping...
4. In the cropping interface, crop the video to a perfect square. Usually the source video will be wider than it will be high so you will need to adjust the X1 Offset and X2 Offset in the top left and top right. Press OK when you are done.
5. Back in the filters list, Add... another filter, this time resize
6. Enter 224 as the new width/height. Make sure the Aspect ratio is set to Same as source.
7. Close the filters list with OK

You can now follow the instructions on page 3 and page 4 to export the video with VP60 compression and convert it to the EA VP6 file format.



Using the Palantir Video Converter


Make sure you have downloaded the Palantir Video Converter and extract the program to the same folder as your VP6 file. Let's say I put them in C:\Users\Phil\BFME Modding\MyMod.

The program does not have a graphical interface; you will have to use the command prompt to run it. Navigate to the folder and run the program:
              
Code
cd "C:\Users\Phil\BFME Modding\MyMod"
PalantirVideoConverter.exe video.vp6 video_with_alpha.vp6

where video.vp6 is the name of your VP6 file and video_with_alpha.vp6 is the desired file name for your final version with alpha channel.

If the desired file already exists, it will ask whether you want to overwrite that file or not. The program should print a few statistics when started and a success message shortly thereafter. The conversion shouldn't take more than a couple of seconds.

Your new Palantir video should now be comfortably sitting in that directory. You can include it in your mod like any other video.



Uses in BFME



Campaign/map events


The most obvious use for this will be adding new videos to campaign maps. You can of course also replace existing Palantir movies in the vanilla campaign, although there is probably little benefit in doing so except for testing purposes.

The triggers for these video events are done with map scripts in WorldBuilder. All you need coding-wise is an appropriate entry in video.ini:
              
Code
Video Palantir_WKMyHour
Filename = wkmyhour_l_with_alpha
Comment = "Movie played in palantir"
End



Special Powers


You can also use it as Palantir video played during a Special Power.

In SpecialPower.ini you can simply add the name of your video block from video.ini:
              
Code
SpecialPower SpecialAbilityWitchKingWordOfPower
Enum = SPECIAL_WORD_OF_POWER
ReloadTime = 360000
PublicTimer = No
PalantirMovie = Palantir_WKMyHour
End

Result:

User image
(click to enlarge)

Note: the screenshot is based on GothmogtheOrc's Kings of the West mod

Links / Downloads

 HitsAdded
Palantir Video Converter1974February 20, 2011 - 7:16
VP6 Tools Package2374June 17, 2007 - 14:25

Comments

Display order: Newest first

Shadowleak - Sunday August 12, 2012 - 9:06

i can't create the audio.dat...
i start SoundeXchange from the VP6 Tools Package and select my mp3-file as input
then i select the output...
then i click on Create
BUT nothing changes... perhaps the button is "dead"^^

can someone help me?
thanks :)

{AE}Manveru - Monday July 5, 2010 - 13:13

"as well as selecting the VP6 0 format when encoding to ensure that the alpha is supported"

Don't you mean VP6 1 for alpha? If I'm not mistaken (and correct me if I am), VP6 0 is the one that doesn't support alpha, that's why palantir videos use VP6 1.

DIGI_Byte (Team Chamber Member) - Monday June 1, 2009 - 12:04

Is it me or does the number 4 not exsist?

page 4 is missing

Nazgûl (Team Chamber Member) - Saturday July 21, 2007 - 14:46

AWESOME!!! Thank you! This has now made S.E.E. 10 times more appealing at start up =)

Sulherokhh (Team Chamber Member) - Tuesday June 19, 2007 - 9:31

That's the kind of tutorial i love. Thank you guys for sharing this with us!!

Bart (Administrator) - Monday June 18, 2007 - 11:27

pff, command line isn't hard at all...pussy :p

Rob38 (Team Chamber Member) - Sunday June 17, 2007 - 19:34

Great tutorial! I'm going to be making my own videos for my mod, so thanks for the information on it. I didn't think that it would be this complicated!

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
17:17:23