Encode video in H.264 format for Iphone, HTC using CUDA

This guide will help you encode your videos in H.264 format, MP4 container using MediaCoder and your NVIDIA CUDA GPU.
The hardware configuration used was : Q6600 CPU, Nvidia GeForce GTX 460, 4 GB DDR3 1066MHz RAM.
Software configuration : Windows7 Ultimate 64bit, video driver 260.99, MediaCoder2011-RC2-5016-x64
Other software used : Videora HTC Converter v.6, Gspot v2.70a (not really needed).

My Iphone 3GS and HTC Magic have the same resolution (480×320) and can play MP4 videos in H264 format, without additional software. In the past I used Videora HTC Converter to encode videos but now I switched to MediaCoder because it can use my Nvidia GPU to do the job, instead of relying entirely on the CPU. This means faster encoding and less CPU used.

The first thing i did was to encode a video with Videora Converter. Then I used GSPOT to see the codecs used. From the picture below we see that the video codec is H.264/MPEG-4 AVC, the audio is MPEG-4 AAC LC (mp4a) stereo, and the container is MP4.

 

 

 

 

 

After that i launched MediaCoder and used these settings :

Video :
Format : H.264
Source : MEncoder (Auto Select)
Encoder : CUDA Encoder
Audio:
Format : HE-AAC
Encoder : Nero Encoder (Auto Select)
Source : MPlayer (Auto Select)
Resample : Original (No Up-sampling)
Sound:
Channels : Stereo
Picture:
Resize : 480×320
Global Aspect Ratio : Set Display AR 3:2
Crop : Crop to fit

Leave a Reply

Your email address will not be published.

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.