Thursday, March 26, 2009

Sandals Tourist Hot Spots

Convert AVCHD to AVI with ffmpeg

As most know, recently I am working on a project called salgamosTV and the truth is that before starting the webTV I knew nothing about video editing since it was not my area, and I ran into some problems , to begin to get a free video editor, I found it and called Kdenlive, is wonderful as long as you do not use AVCHD format files.
The first thing that occurred to me to solve my problems when editing and then see the end result was to convert my files to another format, but there came another problem, when he did, the video did not look fluid, it appeared that slowed, so I decided to install the proprietary software that came with the camera to see if they naturally went to convert the format, and with a mixture of relief and one of despair, I realized the Power Director proving that what was bad was the conversion to Linux, and gave me the task of finding a solution because I do not plan to use a proprietary editor, in addition to the Kdenlive is simple and powerful enough for me, not to mention that I'm used.
I began to try different options for converting my videos with ffmpeg but never were, what happened was that the final video I had twice as long as the original, but with little detail the audio did comply with the original life, to analyze what happened with these experiments and previous editions, I realized that somehow when exported the video using kdenlive, I removed half of the frames of my video, so is so without much fluency and to convert them with ffmpeg, stayed all frames but in 2 seconds no one should be, what happens is that my beloved camera records at 60 frames per second, peeeero nonprogressive but 60i interlaced or as kdenlive export the videos leaves me in 30p, but what it does is literally erase half of pictures, not links should be, and when normally convert with ffmpeg, it leaves at 30 frames per second too, but since they are 60, then enter the next second the other 30! the fact is that I started to learn how to do so if the videos become a speed of 60fps and found this solution, but that does not end the matter, then what is there to say, my videos have no sound, so I made an adjustment and also as many files which management, the better I decided to write a script for the machine is working and I can make other things.

To use this script need to have ffmpeg and mjpegtools installed, otherwise, this is just for a GNU / Linux (I use Ubuntu but I think that should work on other distributions) do not know how to do it in Windows or Mac

Now, after choro I think some of you are lost I leave what is really important.
First, create a new text file, you put the name you want, I added "convertir.sh" after you paste the code below:

# / bin / sh mkdir
avi in \u200b\u200b`
for videoin find. /-name "*. MTS"-type f `do

ffmpeg-deinterlace-i-f $ videoin yuv4mpegpipe -
then keep it and give it execute permissions, I copied the folder where the videos you want to convert and run well on a console

$. / Convertir.sh

and ready, will start to work alone to
end
Any questions leave a comment and I'll accommodating the post to be read it as I wrote this one pass as the inspiration came as a note to not forget me.