Cell phone video

I used my cell phone to make a video with boogie2988, one of the more popular people on YouTube. We were having dinner at Sunrise Cafe here in Fayetteville, Arkansas. So when I got home, I wanted to upload my video to my channel on YouTube. When I copied the file from my phone to my computer, I saw the file type was .3gp. “What is .3gp,” I asked myself. “Surely YouTube won’t accept such a file format.” I tried playing the file on my computer. I could see the video, but there was no sound. Mplayer tried to find a plugin on the internet, but to no avail. I decided to try ffmpeg to convert the video to .mp4, just to see if I could. I used WinFF, which is a graphical user interface for ffmpeg. The file converted, no problem. The sound was coming through now and everything was good.

So I uploaded the video and YouTube did its usual “processing” thing for several minutes. When the video finally went live, I watched it and the sound was playing at the right speed, but the video was playing twice as fast as it should have been. Here is what it looked like:

I was not happy, but Boogie is a popular guy and my video was already getting lots of views, so I left it. This morning I thought to myself, “What if YouTube does accept .3gp files?” So I tried uploading it and it worked fine:

The moral of the story here is that I shouldn’t try fixing something before I check to see if it’s even broken. Comments are greatly appreciated!

Making Kdenlive titles with Inkscape

I just reached 50 subscribers on my YouTube channel, so I made a shout-out video to thank them:

It was easy to make. I made a document with Open Office and typed the names of all my subscribers. I copied and pasted that into Inkscape. In Inkscape, I set the width of my document to 1280 pixels, which is the same width as a 720p HD video. Then I chose my fonts and I chose a light color because the letters would be scrolling over a black background. After I had all the text the way I wanted it, I chose the “Select and transform objects” tool (the black arrow) and clicked on the text to see how tall it was. It was about 5300 pixels, so I set the document properties to 5400 pixels tall. I got everything centered up and exported the document as a .PNG file. I left the background transparent. Then I found a cool song on incompetech.com. Kevin MacLeod puts tons of royalty-free music on his site, and you can use it under a Creative Commons license.

I downloaded the song, then I got into Kdenlive and imported that and the .PNG file that I made with Inkscape. I right-clicked on the .PNG file in the project tree and clicked on “Clip Properties.” Kdenlive treats the image just like a video clip. I changed the length to 1 minute, 17 seconds, to match the length of the song I downloaded. I also turned on “Transparent background.” This allows the black background (or other video if you have the credits rolling over it) to show through behind the words.

I dragged the clip down into the video track and clicked on the composite box that showed up right below it. Up where the project tree was, it switched over to the transition tab. In the project monitor, I could see that Kdenlive had shrunk the size of the .PNG image so it all fit in the frame. I clicked the little gear button on the transition tab and chose Resize -> Original size. Then I dragged the red box (which represents the .PNG image) down so the top of it was below the black box (which represents what you see on the screen). I clicked the little gear button again and clicked on Align -> Hor. Center.

Right below that composite window is a timeline with a little red triangle and a little black triangle at the left end. The red triangle is a keyframe, which is basically a reference point for you to tell Kdenlive, “I want this video (or image or whatever) to be in this condition at this point in time.” So I wanted the words to be down below the visible area at the beginning. The black triangle shows you what point in the timeline you’re looking at as represented by the black box above. Since the black triangle and the red triangle were lined up, the changes I made in the last paragraph were applied to that keyframe. I moved the black triangle to the far right of the timeline and I clicked on the “Add keyframe” button (a couple of buttons over from the little gear button). Then I moved the red box so the bottom of it was above the top of the black box. I aligned it to the horizontal center again.

So with the keyframes, I told Kdenlive that I wanted the .PNG image to start below the visible area, and have it move to a position above the visible area over the span of the timeline. Kdenlive calculates the difference between the two conditions in the keyframes, and makes a transition between them throughout the timeline. There are other effects you can apply to a video or image and have it change over time using keyframes, so that’s why I was saying, “condition.” In this example, I am only applying motion, but you can experiment with keyframes and see what kinds of cool effects you can achieve. Am I being clear? Am I being verbose?

Finally, I dragged the MP3 file from the project tree into an audio track and rendered. Pow, it was that easy.

Comments are greatly appreciated.

Video editing in Linux

Playing the ukulele is one of my hobbies. I find it easier than playing a guitar. I guess it’s because I have fewer strings to worry about. Here’s a video of me playing “Sloop John B,” made famous by the Beach Boys. After the video, we’ll talk about how it was made.

Recording good sound

If you want good sound, the microphone on your camcorder just isn’t going to cut it. A few years ago, I bought a Sony MZ-NHF800 MiniDisc recorder. I have a decent condenser microphone to go with it. To sync up the video and sound, I clap my hands one time on camera while the sound is recording on my MiniDisc. Then I import the sound and video into Kdenlive. The sound is shown as a waveform in the audio track. I line up the spike from the sound of the clap with the video frame where my hands come together. Of course, I mute the sound that was recorded by the camcorder so it doesn’t interfere with the good sound recording.

Now there is a small problem with using the MiniDisc. It is made by Sony, and being the proprietary fools that they are, it requires their closed source software, SonicStage, to transfer my recordings to a computer. This software only runs on Windows. The sound files that it transfers are a Sony proprietary format, and of course the only software that can convert them to .WAV files is SonicStage. So with this setup, I am stuck with a computer that has Windows on it, and that is the only thing I use that computer for. It kind of stinks because I’d like to put Ubuntu on it and actually use the computer for some stuff I like.

But there is a solution. There is a digital recorder available now called the Zoom H2. It has a built-in condenser microphone, records to an SD card, and records in .WAV format. So all you have to do is plug it into your USB port and it gets recognized as a mass storage device, from which you can copy the .WAV files straight over to your computer. I’ve heard several recordings made with the Zoom H2 and the sound quality is excellent. This podcast by Michael W. Dean (Warning: There is some cussing) was made with a Zoom H2. The cost is in the $150 to $200 range. I plan on buying one soon so I can be Windowless.

Recording good video

HD camcorders are getting cheaper by the day. I use an Aiptek Action HD-GVS. It’s a cheap little piece of junk, but it gets the job done. It records to an SD card. It does use the h.264 video codec, which is closed source, but Kdenlive handles it fine. I paid about $180 for it last year.

Kdenlive

This is the software I use to edit my videos. It’s pretty straightforward. Having been used to Adobe Premiere Pro CS3, there were quite a few differences that I had to get used to. At first I kind of thought that Kdenlive was weak and couldn’t do much more than just put clips together. But now I’m finding out that it’s much more robust than I first thought. The URL that I flash across the screen, I made it with Inkscape and used Kdenlive’s compositor to make it move in and out of the picture. Kdenlive has several video and audio effects that you can apply. I used the simple fade in/fade out effects and that was about it.

Now, I cannot say that I am completely happy with the results I’ve been getting from Kdenlive. When I render my videos, Kdenlive has a preset for YouTube. I choose this, but it seems to be compressing a lot of information and the video quality isn’t as good coming out as it is going in. There are other presets available but, in my experience, they have crashed while rendering. In my opinion, that’s a common thread that I see across a lot of Linux stuff. Nothing ever quite works the way I expect it to at first. So it’s a bad thing, but it’s also a good thing at the same time because it gives me challenges and when I figure something out, I feel really good.

So that’s a quick overview of video editing in Linux. What video editing software do you use? Leave a comment.