[Kdenlive-devel] Storyboard_2 in scene format.

Jason Wood jasonwood at blueyonder.co.uk
Thu Nov 21 15:39:00 UTC 2002


Hi,

I have now looked at createStoryBoard_2() from Paive, and have converted into the
 format that I would expect it to look in the current StoryBoard format in the Spec.

Well, partially converted it - StoryBoard_2 is a fairly complicated example with a lot of
overlapping transitions, and hence leads to quite a few scenes. I have written a rough
translation of the first couple of scenes, and just comments for what heappens in the
remaining scenes.

So that you understand how I have broken up, essentially a scene should contain a single
effect tree that describes only what is currenlty going on. As soon as something occurs
which changes the tree, a new scene is started. The kinds of things that can cause this
are the start or finish of a particular input file, and the start or end of an effect.

The indentation looks horrendous :-) But that's mostly because the <inputs></inputs> tag
doubles the amount of indentation required.

<setStoryboard>
	<storyboard>
		<header>
			<version major="0" minor="05"/>
		</header>

		<scene duration="5">
			<fade>
				<inputs>
					<input file="avChunk1" start="0"/>
					<input file="image"/>
				</inputs>
				<alpha>
					<keyframe time="0" type="step"><decimal value="0.0"/></keyframe>
					<keyframe time="5" type="linear"><decimal value="0.33333333"/></keyframe>
				</alpha>
			</fade>
		</scene>	

		<scene duration="5">
			<fade>
				<inputs>
					<overlay>
						<inputs>
							<input file="avChunk" start="5"/>
							<pictureOnPicture>
								<inputs>
									<frameDecor>
										<inputs>
											<input file="avChunk3"/ start="0">
										</inputs>
										<color>
											<keyframe time="0" type="step"><colorRGB red="1.0" blue="0.0" green="0.0"/></keyframe>
											<keyframe time="5" type="linear"><colorRGB red="0.9" blue="0.1" green="0.1"/></keyframe>
										</color>
									</frameDecor>
								</inputs>
								<rect>
									<keyframe time="0" type="step"><rect x="0.05" y="0.05" width="0.8" height="0.8"/></keyframe>
									<keyframe time="5" type="linear"><rect x="0.06" y="0.05" width="0.792" height="0.792"/></keyframe>
								</rect>
							</pictureOnPicture>
						</inputs>
					</overlay>
					<input file="image"/>
				</inputs>
				<alpha>
					<keyframe time="0" type="step"><decimal value="0.0"/></keyframe>
					<keyframe time="5" type="linear"><decimal value="0.33333333"/></keyframe>
				</alpha>
			</fade>
			<!-- avChunk1 plays for 5 frames 
				avChunk3 plays for 5 frames transitioning from red, slightly to white. in a window
			<!-- image continues fading in on-screen -->
		</scene>	

		<scene furation "5">
			<!-- avChunk1 transitions to avChunk2 for 5 frames -->
			<!-- acChunk3 continues transitions from red to white in a window -->
			<!-- image continues fading in on-screen -->
		</scene>

		<scene furation "25">
			<!-- avChunk1 transitions to avChunk2 for 25 frames -->
			<!-- acChunk3 continues transitions from red to white in a window -->
			<!--image overlayed on-screen -->
		</scene>

		<scene duration="10">
			<!--avChunk2 plays for 10 frames -->
			<!--avChunk3 finishes transition for red to white in window -->
			<!--image overlayed on-screen -->
		</scene>

		<scene duration="5">
			<!--avChunk2 plays for 5 frames -->
			<!--avChunk3 finishes transition for red to white in window -->
			<!-- all of the above starts fading to black -->
			<!--image overlayed on-screen -->
		</scene>

		<scene duration="5">
			<!--avChunk2 plays for 5 frames -->
			<!--finishes fading to black. -->
			<!--image overlayed on-screen -->
		</scene>

		<scene duration="10">
			<!--displays black for 10 frames -->
		</scene>

	</storyboard>
</setStoryboard>

Cheers,
Jason

-- 
Jason Wood
Homepage : www.uchian.pwp.blueyonder.co.uk




More information about the Kdenlive mailing list