Kino Tips: Installing from Scratch and Exporting MPEG Videos

If you're ready to give video editing and movie making a try now that you know about Kino, here are some tips to get you up and running.
Tip: Kernel

To work with your camera through the IEEE1394 interface, you need drivers and devices supported by the kernel. Standard SuSE (9.0 and above) and Debian 3.1 have all of these things in their standard releases. Fedora Core 2 does not have them, so you have to update your Fedora installation to the new official Fedora kernel release, 2.6.8. You can download it here.

Tip: Devices and Modules

Before running Kino, check for IEEE1394 devices availability. Kino uses a device called /dev/ieee1394 for capturing and one called /dev/dv1394 for outputting. Issue ls -al /dev/*1394* to reflect your system. These files usually are created by MAKEDEV scripts that run while installing the system.

Having these devices is not the enough, however; you must have corresponding components in your system to work with them. SuSE provides these modules out of the box, while Fedora Core 2 offers them only after upgrading. MandrakeLinux release 9.2 also contains these modules.

You have to create /dev/dv1394 by hand. In case of PAL, the command is:


 mknod -m 666 /dev/dv1394 c 171 34

For NTSC, the command is slightly different:


 mknod -m 666 /dev/dv1394 c 171 32

Do not forget to load the module with modprobe dv1394. You can find more details about this part of the process by visiting linux1394.org.

Tip: Installing Software for Exporting Movies

On its own, Kino offers only minimal exporting features; you can use it to write a movie to a DV tape or to a .dv or dv .avi file. A dependency tree for exporting other functions is shown in Table 4. Packages marked in red are not included in the standard distributions, so you must load them from tarballs available for download from the LJ FTP site. Use rpm -i foo to install these packages. Start from the top (libogg) and go down (rawrec), according to the table.

Table 4: Dependencies for Exporting Movies

SoftwareSuSE 9.1Fedora Core 2
Ogg Bitstream Librarylibogg-1.1libogg-1.1
The Vorbis General Audio Compression Codeclibvorbis-1.0.1libvorbis-1.0.1
MP3 Encoderlame-3.96(red)lame-3.96(red)
Video and Audio Converterffmpeg-0.4.8(red)ffmpeg-0.4.8(red)
Library for Reading DVD-Video Imageslibdvdread-0.9.4libdvdread-0.9.4(red)
Library for Portable Network Graphics (PNG) Formatlibpng-1.2.5 libpng-1.2.5
Tools to Help You Author a DVDdvdauthor-0.6.10(red)dvdauthor-0.6.10(red)
Raw Audio Recording/Playing Utilities rawrec-0.9.98(red)rawrec-0.9.98(red)
Tip: Dropped Frames

Dropped frames often occur if the hardware is not working quickly enough. As a result, while capturing images the number of dropped frames increases constantly. As a temporary solution to dropped frames--before you install more memory or buy a new motherboard--try the following:

  1. Exit all X functions and re-run Kino with fvwm.

  2. Close X completely. Use dvgrab to pull all the files, and then assemble the movie with Kino using files grabbed in this way.

Tip: Be Careful with Effects

Many special effects in an amateur movie can distract viewers. Such effects should be applied only if you think they are needed to relay your ideas.

Kino with timfx provides the following video filters and effects: black and white, sepia, reverse video, mirror, kaleidescope, swap, color hold, blur and soft focus. Modern camcorders have such filters built-in, but we rarely use them while recording because if they are part of the actual image, it's much harder to undo them. It is a better idea to do this kind of filtering with Kino during the editing stage.

When you look at a filter's name, it usually is easy to guess what the filter does. Take a look at these images for some examples:

Figure 2. Image Before Filter

Figure 3. Image After Colour Hold Filter Applied

Figure 4. Image Before Filter

Figure 5. Image After Left-to-Right Filter Applied

Video transitions are images that join two scenes. The most interesting joining effect is Image Luma, because you can create your own filters. Examples of joining are represented below; we used standard files from the Kino site.

Figure 6. A Type of Joining Effect

Figure 7. As Applied to Image with Blur = 1

Figure 8. As Applied to Image with Blur = 0

Other transition options include Fade, Push Wipe, Bar Door Wipe and Differences. Experiment with them all until you find the ones you like.

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I can't install timfx

joao's picture

Hi,

I tried everything but timfx doesn't work, I run the .rpm, it says all teh dependencies are satisfied, it installs with no problem. When I go inside Kino and open the FX dropdown the new options from timfx are not there.

any idea?
Joao

converting mpeg/avi to dv

emk's picture

I have a digital camera that also takes short videos in avi format. I'd like to edit these in Kino. Is there any way to convert these to dv? I have converted some to mpeg with ffmpeg. However the documentation does not explain how to convert to dv.

I would imagine that this would be useful for many people.

Help anyone?

emk

First, start A new project

Anonymous's picture

First, start A new project and save it the name you want. Make sure that you have set the tmp directory to a place that has enough memory. Next, click on the "Insert a file befor the current seen" button. Select the file you wish to convert. You should get a dialog box asking you if you'd like to convert the file to a DV file. Click Yes. Wait untill the progress window closes. Now, go to the same place you're origonal file was located. There should be the converted dv file. Things should go smoothly from there.

PS: If something doesn't work, you might want to load Kino in the terminal window. That way, you can see any errors that might happen. I just spent a few hours trying to convert an avi file and then realized that it was creating the file on my SD card. (The dv file was almost tripple the size of the original AVI file and didn't have enough room for it to be created on the card.)

--

But seriously though.. They REALLY need some better documentation on the kino website. I just downloaded this program today and couldn't get it to work for the longest time. I can't believe that it was something so simple. O_O;

First, start A new project

Anonymous's picture

First, start A new project and save it the name you want. Make sure that you have set the tmp directory to a place that has enough memory. Next, click on the "Insert a file befor the current seen" button. Select the file you wish to convert. You should get a dialog box asking you if you'd like to convert the file to a DV file. Click Yes. Wait untill the progress window closes. Now, go to the same place you're origonal file was located. There should be the converted dv file. Things should go smoothly from there.

PS: If something doesn't work, you might want to load Kino in the terminal window. That way, you can see any errors that might happen. I just spent a few hours trying to convert an avi file and then realized that it was creating the file on my SD card. (The dv file was almost tripple the size of the original AVI file and didn't have enough room for it to be created on the card.)

--

But seriously though.. They REALLY need some better documentation on the kino website. I just downloaded this program today and couldn't get it to work for the longest time. I can't believe that it was something so simple. O_O;

I know. The silence is deafe

Anonymous's picture

I know. The silence is deafening - not a single solution anywhere on the internet. The whole entire video topic is a screaming bloody digusting mess - front to back - left to right.
If someone could sort it out that would be very very great.
Right now it totally sucks.

Video is an important missing ingredient

Steve's picture

No kidding. Linux could be a first rate video processing tool. But instead it almost unusable.

Trivial tasks like converting a DVD to MP4 or editing a home movie are almost impossible. Heck, you can't even watch a DVD, how do you expect that to be taken seriously in the real world?

Come on google, IMB, ubuntu, HP, Sun etc etc - this is a problem that needs to be solved. It is very sad to see such a beautiful operating system in such an unusable state because of a few licensing issues.

You can buy a DVD player for a few bucks these days. The manufacturer had to deal with both mpegla and css. How difficult could it be for the might of the OS community to solve they same legal problems on Linux?

Steve

Video is an importand missing ingedient

Steve's picture

No kidding. Linux could be a first rate video processing tool. But instead it almost unusable.

Trivial tasks like converting a DVD to MP4 or editing a home movie are almost impossible. Heck, you can't even watch a DVD, how do you expect that to be taken seriously in the real world?

Come on google, IMB, ubuntu, HP, Sun etc etc - this is a problem that needs to be solved. It is very sad to see such a beautiful operating system in such an unusable state because of a few licensing issues.

You can buy a DVD player for a few bucks these days. The manufacturer had to deal with both mpegla and css. How difficult could it be for the might of the OS community to solve they same legal problems on Linux?

Steve

Can't find dvtitler

Anonymous's picture

Thank for your articles.
I'm on SuSE 9.2. I can't find the latest source or a SuSE9.2 rpm anywhere for dvtitler. I get a 404 on trying to download from http://kino.schirmacher.de/article/view/79/1/11/ . I therefore tried the rpm for SuSE9.1 from
http://www.ictp.trieste.it/~tiger/kino.html
But it does not appear to work because I do not get the dvtitler UI option as shown in figure 8 on page 60 of the LinuxJournal Dec 2004.
How does Kino find plugins? The above rpm installed dvtitler in /usr/lib/kino-gtk2/. On SuSE 9.2 Kino is installed under /opt/gnome/ and has config file ~/.gnome2/kino. I was hoping in the latter to find something like plugin= but no luck.

Replying to my own posting -

Anonymous's picture

Replying to my own posting - here's what I did to add dvtitler to Kino on SuSE9.2. Maybe helpful to someone else - it would have been to me.

First I downloaded dvtitler-0.1.1.tar.gz to my home directory.
Then I built dvtitler for install in directory /opt/dvtitler from a Konsole window as follows

cd
rm -rf dvtitler-0.1.1
tar xvfz dvtitler-0.1.1.tar.gz
cd dvtitler-0.1.1
./configure --prefix=/opt/dvtitler CPPFLAGS=-I/opt/gnome/include
make

The "configure" and "make" errored on my first attempts because of various missing packages. I installed those using YaST and then repeated the above steps.

Lastly I installed dvtitler as follows
su
make install

Kino looks in directory kino-gtk2 in /opt/gnome/lib for plugins. This appears to be the only mechanism. I therefore added a symlink from there to where it actually is as follows
ln -s /opt/dvtitler/lib/kino-gtk2 /opt/gnome/lib/
exit

The dvtitler UI option in Kino is at the bottom of the popup menu that shows when clicking the bar under "Video Filter" under the "FX" tab. I tried it and it works. Nice.

I started on the same for timfx but it requires as lot more packages installed before it will build successfully. I'll defer for now.

plugin directory

Rick's picture

well done , I had a similar problem after successfully compiling dvtitler in not being able to findit! On my own system the following was needed to create the appropriate symbolic link.(SuSE 9.2 x86-64)

ln -s /usr/local/lib/kino-gtk2 /opt/gnome/lib64/

Thanks heaps

Rick

timfx

Anonymous's picture

In the above I said I'd defer timfx for now. I just finished installing it on SuSE9.2. Here's what I did. It's not that much or hard after all.
The biggest trouble is that timfx requires 3 packages that neither SuSE nor anyone else offers readily available for install on SuSE9.2. They are the ones listed at the bottom of
http://www.mathematik.uni-wuerzburg.de/~vaeth/specs/
Thank you very much to the author for that page which I followed.

First download the source packages from
http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.4/gtkmm-2.4.8.tar.bz2
http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.4/glibmm-2.4.5.tar.bz2
http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.0/libsigc++-2.0.6.tar...
to
/usr/src/packages/SOURCES/

Then download the associated spec files from the above page
http://www.mathematik.uni-wuerzburg.de/~vaeth/specs/gtkmm2.4.spec
http://www.mathematik.uni-wuerzburg.de/~vaeth/specs/libsigc++2.0.spec
http://www.mathematik.uni-wuerzburg.de/~vaeth/specs/glibmm.spec
to
/usr/src/packages/SPECS/

Then build the src.rpm's
cd /usr/src/packages/SPECS
rpmbuild -bs gtkmm2.4.spec
rpmbuild -bs libsigc++2.0.spec
rpmbuild -bs glibmm.spec

Next build the binary rpm's (i686 fits my CPU. Omit --target=i686 if unsure)
rpmbuild -bb gtkmm2.4.spec --target=i686
rpmbuild -bb libsigc++2.0.spec --target=i686
rpmbuild -bb glibmm.spec --target=i686

Finally install the rpm's
cd /usr/src/packages/RPMS/i686
rpm -Uvh glibmm-2.4.5-0.mv.0.SuSE_9.2.i686.rpm
rpm -Uvh glibmm-devel-2.4.5-0.mv.0.SuSE_9.2.i686.rpm
rpm -Uvh gtkmm2.4-2.4.8-0.mv.0.SuSE_9.2.i686.rpm
rpm -Uvh gtkmm2.4-devel-2.4.8-0.mv.0.SuSE_9.2.i686.rpm
rpm -Uvh libsigc++2.0-2.0.6-0.mv.1.SuSE_9.2.i686.rpm
rpm -Uvh libsigc++2.0-devel-2.0.6-0.mv.1.SuSE_9.2.i686.rpm

Next, build timfx much like dvtitler.
First I downloaded timfx-0.2.2.tar.gz from the link at the bottom of
http://sourceforge.net/projects/kino/
to my home directory.
Then I built it for install in /opt/timfx as follows

cd
rm -rf timfx-0.2.2
tar xvfz timfx-0.2.2.tar.gz
cd timfx-0.2.2
./configure --prefix=/opt/timfx
KINO_INCLUDE=/opt/gnome/include make

As with dvtitler, if the above complains because of other missing packages then
install those packages using YaST and repeat the above starting at "cd".

Lastly, I installed it
su
make install

As with dvtitler, because I chose to install in /opt/timfx rather than /opt/gnome (because of fear of what the install of a new and unknown program may do to my system) then a symlink is necessary from where Kino expects to find plugins to where they actually are
ln -s /opt/timfx/lib/kino-gtk2/libtimfx.so /opt/gnome/lib/kino-gtk2
exit

Alternatively, if I'd used --prefix=/opt/gnome then timfx would have gotten installed where Kino expects to find it leaving no need for a symlink.

Correction: The symlink command I used for dvtitler should have been
ln -s /opt/dvtitler/lib/kino-gtk2/libdvtitler.so /opt/gnome/lib/kino-gtk2

can't download libsigc2.0

monica's picture

COuld you pls help me download libsigc 2.0-0.dll--or?---I keep getting this mssg -that I need libsig--pls help?---my e/mail address id m17j@netzero.net--Thanks!!! Monica

I looked a little closer and

Anonymous's picture

I looked a little closer and found dvtitler here http://sourceforge.net/projects/dvtitler/
and timfx here
http://sourceforge.net/projects/kino/

Out of the Tip: Using Package

TheWeb's picture

Out of the Tip: Using Packages from LJ FTP Site above:

"For SuSE, simply install timfx and dvtitler with rpm; use timfx-0.2.1-2.i586.rpm and dvtitler-0.1.1-1.i586.rpm. For Fedora Core 2, first install the two packages not available in the standard release, as noted in Table 3. After that, install the plugin packages, timfx-0.2.1-2.i386.rpm and dvtitler-0.1.1-1.i386.rpm."

There is no timfx.rpm nor dvdtitler.rpm within the Suse package?
And I can't find those rpm's at the ftp-site (ftp://ftp.ssc.com/pub/lj/). There are only the files according table 1??
Please advize.

Tnx for this nice article.
Might even consider to subscribe!

Regards,

Where you can find these packages

Denys Tonkonog's picture

Please have a look here:

http://www.ictp.trieste.it/~tiger/kino.html

Yours Olexiy TYkhomyrov and Denys Tonkonog

Video card drivers

Anonymous's picture

Make sure you have drivers installed for your video card. Fedora Core 2, for example, was using a generic driver for my video card. The manufacturer's driver was much faster. Check the manufacturer's web site for drivers.

Kino

Anonymous's picture

This is more of a question than a comment. I have a very usable Sony High 8 video camera (non digital) and quite a few reels of tape. Can I use Kino to edit my videos? What type of video card can I use instead of the IEEE1394 (firewire) interface?

Get a cheap (maybe used) miniDV camcorder

Chris A.'s picture

Most the the new miniDV cameras have a "pass through" feature where you can connect an analog signal to the camera and it will "pass it through" ot the IEEE1394 output. In terms of quality I've not seen a better video analog to digital converter than my Sony camera. Expensive?? Well maybe but a used and usable camera can be bought for about $250.00 There is no need to buy a top of the line camera for use on your desk. The quality is the same. Also I've found that miniDV camera make _very_ excelent audio recorder and analog converter. A cheap used camera for use at the computer may actually pay for itself in reduced wear the taer on your expensive shooting camera. Unlike analog cameras, a low end digital camera will perform playback functions _exactly_ as well as the high end camera.

Kino input

Will's picture

You asked about using something else for inputting video other than ieee1394... I've found that once you get it working, it's almost flawless. I've been using the ADS pyro a/v link, which gives you ieee1394 both in and out, and it's been wonderful.

I've used the V4L setup, but it doesn't work as smoothly and effortlessly (once it's up and running, of course) as ieee1394 does. It drops frames, and frequently doesn't sync properly, up to a couple of seconds off, in my experience.

The pyro device has both composite ins and outs on it, so either way will work, and I've seen them for well under a hundred $$. I personally recommend it over the V4L approach.

My 2Cents...

Expensive Solution

Anonymous's picture

If you buy a Sony Digital 8 video camera, it will convert regular 8mm and High 8 tapes to a DV IEEE1394 output stream on the fly.

Use an analog to DV grabber

Mads Bondo Dydensborg's picture

Hi there

Lots of people recommend the analog to DV converter products from Canopus. Check the e.g. mjpeg mailing lists for more info.

Mads

analog video

Anonymous's picture

There are several video capture cards on the market and many are supported by the Video4Linux subsystem.

The process would be analog to AVI (using a codec of your choosing), then AVI to MPEG using Kino (and associated tools).

HTH.

analogue capture

Steve's picture

Remember Google is your friend

Type "Hi8 camcorder capture computer" into google and press "I'm Feeling Lucky"!

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState