search
top

Creating YouTube type video using Kino and JW Player on Ubuntu

This post will cover creating a video and posting the video in Flash format to a website in the YouTube format. The tools / programs used are Kino, WinFF and JW Player. For the hardware a firewire connection to a MiniDV video Camera is used for the video source, you could omit the camera and Kino step if you have a video already and just need to convert and post.

Download and Install needed Packages

First need to make sure the needed code is installed on your Ubuntu system.

WinFF

Install WinFF from Synaptic Package Manager or from the terminal type sudo apt-get install winff.

Kino

Kino is at version 1.3.2 in the Ubuntu Repositories. First install it from there either using the command line or Synaptic, whichever method you prefer. This version will suffice for what we need to accomplish, but the latest version can be found on GetDeb (http://www.getdeb.net/) or at http://www.kinodv.org . At the time of this writing the version is at 1.3.4.

Install from Command Line

sudo apt-get install kino

FFMPEG

Use the ubuntu repositories to install FFMPEG so you will have added export features in Kino. Run the command sudo apt-get install ffmpeg.

JW Player

JW Player is a flash plugin to deliver flash video content. It is free for personal use but requires a fee for business use. It can be downloaded from http://www.longtailvideo.com/players/jw-flv-player/.

Flowplayer

Flowplayer is another plugin to deliver flash videos to the internet. As the JW Player it is also free. Download the code from http://www.flowplayer.org.

The Process

Now that we have downloaded and installed the code we are ready to start the process of capturing the video, converting it and posting it to the web. In this example we will be using a firewire connection to a MiniDV Camcorder and importing in the file using Kino.

Plug-in your camcorder into the firewire port on your computer and turn it on. Open Kino and click on Edit > Preferences and click on the IEEE 1394 tab. If the module loaded properly you should see your device listed in the drop down.

If not and you see an error you will need to make a few changes to the settings. Close the Kino Preferences dialogue, open a command prompt and type sudo modprobe raw1394, then type sudo chmod a+rw /dev/raw1394. Reopen Kino Preferences again and now your device should show.

A feature turned on by default in Kino is to Auto Split the captures. If you want the capture to be one file then you will need to turn off this feature. If not then exit Kino Preferences, if so then click on the click on the Capture tab and uncheck Auto Split Files and click OK.

Now click on the Capture tab and lets start the capture. With the use of fireware you can control the actions of the camera from within Kino. So to start the Capture click Capture.The files will be saved to /home/<id>/capturXXX.dv. When you are done capturing click on Stop.

Click on the Edit tab and you’ll see the clip has been added to the storyboard column and you can edit the file. Lets say that we are satisfied with the clip and we are ready to export it to Flash. The newer version of Kino will let us do just that.

With Kino as the export for flash do the following. Click on the Export tab and then click on Other tab in the Export Section. Input the filename, From the Tools dropdown select Flash Dual Pass (FFMPEG) and from the Profile Dropdown select either Broadband Quality FLV or Low Quality FLV and then select Export. If you are not using Kino for the import and have an existing file to convert then WinFF is used to convert to FLV

Converting Using WinFF

Open WinFF, Click on the Add button and add the file from Kino that was captured or another file to convert. In the Convert To drop down select Websites. In the drop down box next to it select Flash Video (flv) for Web (4:3) and click Convert. Note: you can also select Flash Video (flv) for Web (16:9)

Setting up JW Media Player

Step 1: Transfer the player.swf and swfobject.js file from the ZIP to your website. (Make sure that you’ve also uploaded all the necessary videos / songs / images to your site.)

Step 2: Embed the player in your HTML page with the lines of code below. Note: If you place the files in different directories, make sure to set the references in this code accordingly.

<p id='preview'>The player will show in this paragraph</p>

<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video.flv');
s1.write('preview');
</script>

Notice the flashvars parameter above can contain a list of variables for configuring the player to use different Plugins or Skins. To quickly set up flashvars, use the setup wizard. Simply choose an example, select the variables you want to use and paste the code onto your page. It’s that easy.

Comments are closed.

top