Posts Tagged ‘sequence’

Sequencing Embedded YouTube Videos

Thursday, April 3rd, 2008

In this tutorial, I’ll show you how to make use of the new YouTube Chromeless player without any programming required, to create video content that fits in better with the style of your site, using video playlists, and even extra video effects like color cycling.

An Example

You’re probably used to the old blog standard YouTube embedded player, that looks like this:

But now you can have content embedded and running more directly in your site. Here’s an example that autoplays and repeats two different YouTube videos in sequence:

Notice that the new Chromeless style doesn’t really have a defined border, so it feels much more like content that’s integrated with your page, rather than just an embedded widget.

Goo-Tube have recently released Javascript and ActionScript 2.0 APIs (rather poorly excluding ActionScript 3.0) for this player, but all these require programming skills to use. I’ll show you a quick and easy way to make use of the player without any programming and embed it in your site in no time. You can either use an XML description of your video playlist, or else use my graphical editor.

XML-based Playlists

Here’s the XML playlist for the example video sequence above:

<Effect height="240" width="320" bgcolor="#ffffff">
 <SlideShow autoAdvance="false" gap="0">
  <YouTubeVideo videoId="FB2WUSvQStg"/>
  <YouTubeVideo videoId="fxu5CUPRU-U"/>
 </SlideShow>
</Effect>

The root ‘Effect’ tag lets you define the width and height of your videos, and also the background colour to display during loading. The ‘Slideshow’ tag represents a container that displays each of it’s children in turn, then repeats. You can simply add or replace videos by adding or removing ‘YouTubeVideo’ children elements.

Here the children are the two YouTube videos with ids ‘FB2WUSvQStg’ and ‘FB2WUSvQStg’. The easiest way to find the YouTube id of the video you want is to look at the URL of the You Tube page for the video. The string of letters and numbers after “v=” in the URL is the id code. So for the URL:

http://www.youtube.com/watch?v=CCz1kmfqL7g

the id is ‘CCz1kmfqL7g’. Once you have the XML video playlist you want, simply surround with HTML code so that it looks like this:

<!--Video PLAYER: http://www.effectgenerator.com/ -->
<script class="fxml" type="text/xml">

<Effect height="240" width="320" bgcolor="#ffffff">
 <SlideShow autoAdvance="false" gap="0">
  <YouTubeVideo videoId="FB2WUSvQStg"/>
  <YouTubeVideo videoId="fxu5CUPRU-U"/>
 </SlideShow>
</Effect>

</script><script
src="http://www.effectgenerator.com/1.0.6/fxml.js"
type="text/javascript"></script>
<!--    ____ END Video PLAYER ___ -->

You can now put it directly in to your website. Since this uses JavaScript, it won’t work on sites like MySpace, but you copy the XML code into The Effect Generator (see below) to create Flash EMBED code for the video.

Using the GUI

You can also edit video sequences graphically inside my site The Effect Generator. Try right clicking on the video player above and selecting ‘edit’.

Start a new blank effect, and add the Slideshow component from the ‘Component Library’ on the right of the screen. Click the slideshow component and set it’s configuration not to auto advance (otherwise you will only see the first n seconds of each movie!). Then go to the ‘Public Media’ tab on the right and search for the YouTube videos you’d like to include.

Click ‘Publish’ and you can instantly add your video playlist to social networks, blogs, or get the Flash code to embed it.

Adding Lyrics and Other Effects

The XML description is actually an example of FXML - The Effect Generator’s internal language for describing Flash effects. This means that you can actually do a whole lot more than just sequence video using The Effect Generator. For example, you can add transitions between videos, text or graphic slides between them, overlay graphics or text, and more.

Here’s an example that uses the ‘Ticker’ component to move text across any video, adding lyrics for music. It also scales and rotates the video and adds a colour cycle effect. Right click on it to remix it into your own!

Creating Flash Slideshows Using The Effect Generator

Monday, February 25th, 2008

In this tutorial, I’m going to describe how to create a photo slideshow using the Flash editor at effectgenerator.com.

Creating the Slideshow

A slideshow component displays other child components one after the other in sequence. To create a slideshow, click ‘Slideshow’ from the component library on the left-hand side of the screen. You can then add any other components to the slideshow by selecting them in turn. I’ll add some text and then some images.

The components are displayed in a tree in a configuration panel on the bottom-right side of the screen. You can select each component in turn to configure it using the options displayed on the right. For example, we can configure the text to read ‘Welcome!’.

You can upload images by selecting ‘Upload’ from the image configuration and selecting multiple files from your file-system. These files are then uploaded and automatically resized.

Configuring the Slideshow

We can now configure various parameters for the slideshow. Click on the ‘Effect’ component at the root of the component tree to change the width and height of the display.
Click on the Slideshow to be able to change the number of frames that is used for each slide. For example, by changing it to 50 frames per slide, the slideshow will run faster. You can also individual slides and change the ‘Duration’ parameter on the preview pane to change the duration of that particular slide.

Using Transitions

Transitions can be added to the slideshow component to change the way that each slide is displayed. To add a transition, first select the Slideshow component. Then go to the ‘Animations’ Tab on the left-hand side of the screen.

Display Transitions occur each time a component is made visible. By selecting ‘Transparency’, we can cause each component in turn to fade in. The parameters for each transition can be edited by selecting the transition in the ‘Effects’ box. We can introduce a fast fade by reducing the number of frames for the transition.

By selecting ‘Scale Up’ and lengthening the frame duration, we can create a slow zoom effect for each slide. Change the ’start value’ to the natural size of a component, 1, and the ‘end value’ to a size slightly bigger than 1, such as 1.2.

Hide Transitions occur when a component is finished displaying. For example, we might select ‘Scale Down’ to compress each component as it disappears.

Click on the Root Effect component to preview the entire effect. When you’re happy, click Publish to embed the effect in HTML or in a blog or social network.

Mixing Components

Other components can also be combined with Slideshows. For example, we can select ‘Snow’ From the Effect Generator Template library, and add this to our effect to create a layer of snow above our photos. Click on ‘Add Template to Current Effect’ to add the snow to the same canvas as your slideshow. You may need to drag the snow component above the Slideshow component so that the snow is overlayed above the Slideshow, not the other way around!