Tuesday, August 4, 2009

Maybelline Eye Makeup Swatches

Create videos for YouTube capture video from MiniDV

In the previous post we saw how to dump our videos from a MiniDV camera computer's hard disk.

Next we will see the process of issuing these video on YouTube. If we look at the recommendations on video formats see the codecs for both audio and video to recommend use.

Our goal is to use some codecs that provide good quality and a resulting final file size fairly small. In particular, we will choose to work with more advanced codecs mpeg4 type supported: H.264 video (also known as AVC) and AAC for audio.

Moreover, since these are the codecs currently used in most of the video portals for the publication of these, it is even possible (although I have no proof of this) to avoid any additional step of Reencoded, achieving a better quality end result.

To convert, ffmpeg utilizarems tool, available in the Ubuntu 9.04 repositories and included in the default installation. With regard to video codec, we have to install the package libx264-65 which is where the code to encode in H.264 format, and finally, with regard to audio, we replace the package by libavcodec-unstripped libavcodec52- 52 since the latter is the one that includes the need to convert AAC audio format.

Ultimately, it is sufficient to do the following:

 
$ sudo apt-get install libx264-65 libavcodec-unstripped-52


Once we had the conversion tool and with the right codecs, we get the command line in question to perform the desired action :

 
ffmpeg-i-acodec captureTest.dv libfaac-ab 64k-vcodec libx264-b 720k-threads 0-deinterlace-r 25-s 640x480-aspect 4:3 captureTest.mp4


In our particular case :
  • The captureTest.dv input file (a video stream recorded on a MiniDV camera) and the file generated (output) is captureTest.mp4
  • generate AAC audio formats with a rate (bitrate)
  • 64kbps format video
  • x264/h264 generate a rate of 720kbps
  • As the initial content is interlaced, indicated that performs a process of interlacing
  • We want an end result of size 640x480 at 25fps
  • The proportion (aspect ratio) should be 4:3 final

With this command, applied to the video sample to get 69.5MB 2.75MB move, but since we use mpeg-4 codecs very efficient, we maintain reasonably good quality, as shown in the example:

As

Interestingly enough, the video shows the entrance to the Charterhouse of Miraflores in Burgos.

0 comments:

Post a Comment