Saturday, January 23, 2010

Getting Started with Kdenlive in Ubuntu

I recently got a JVC MS120 digital camcorder. I tried for a while to get something to work for me in Ubuntu as far as video capture and editing was concerned, but couldn't figure it out. I decided to go ahead and give the software that came packaged with the camera a whirl - FAIL. It is awful. It requires that iTunes be installed, and I dislike iTunes, so that's one strike against it. Whenever I add video content to the application it doesn't show up until I restart the application. It serves about the same purpose as Windows explorer - shows you your videos. LAME.

So I went back to Linux. After two days of poking and prodding around, I finally have a solution that works VERY well. Note that I have an Acer 5920 running Ubuntu 9.10, and the solution I have found here works for my purposes. If you follow these steps and it doesn't work for you, then your PC probably hates Linux.

#1: Get your codecs
This url is a trouble-shooting page from the kdenlive website (which we will be using, but there are specific installation instructions for that, so keep reading). Basically if you run the following apt-get instructions you'll have all of the codecs you need:
sudo apt-get install libavcodec-unstripped-52 libavdevice-unstripped-52 libavfilter-unstripped-0 libavformat-unstripped-52 libavutil-unstripped-49 libpostproc-unstripped-51 libswscale-unstripped-0

#2: Get kdenlive
I found these instructions here but have summarized them below.
Go to System > Administration > Software Sources, click on the "Other Software" tab, then click "Add", then insert the following line:
ppa:sunab/ppa

Yes, that is correct. Confirm the repository reload then run the following from the command line:
sudo apt-get update
sudo apt-get install kdenlive

#3: The Project Monitor in kdenlive on my system works as far as video is concerned, but the sound is horribly choppy and just bad. I found out how to fix this from this video. To fix this, get the following library:
sudo apt-get install libsdl1.2debian-pulseaudio

Once this is installed, open kdenlive, go to Settings > Configure Kdenlive, go to Playback, and select "PulseAudio" for the audio driver.

Now you should have the latest version of kdenlive, the codecs necessary to encode to virtually any format, and a project monitor that looks AND sounds good. All you need to do now is get crackin'.

[EDIT] - one more thing - I have to adjust the pixel aspect ratio to 1.19 for all of the videos I import - the software doesn't import the JVC MOD files quite right, but once you adjust the pixel aspect ratio it's fine. To do this, right-click on a clip you have imported, select Clip Properties, then go to Advanced, and plug in the number. I'm also going to try this Slideshow Creator out, it would be good to integrate it into some videos.

[EDIT 2] - just discovered "OpenShot Video Editor", it is Gtk native as opposed to KDE as Kdenlive is. I tried to get it and run it but some sort of Python errors prevented it from running. After some tweaking I finally got it to run. After a few minutes of poking and prodding around, I quickly determined that this would not give me the flexibility I need that Kdenlive offers. So I'm sticking with Kdenlive.

1 comment:

Unknown said...

You really hurt my brain with all the knowledge you have. You are totally speaking a foreign language to me....but I bet there is someone out there who will appreciate your discovery and maybe you should post this in some technical website somewhere so others can benefit. Again, your intelligence absolutely blows my mind!