Video convertion

I’m gonna let you guys some notes about video convertion on our production server.¬†Its a small server with one CPU, 512Mb of RAM running Ubuntu 13.04 / Linux 3.8.0-19-generic x86_64, with SSD disk.

The video is from Catie Minx, from the video gallery Car Fun. Thanks Mutt.
Its a video with the duration of 18 minutes and 22 seconds and a resolution of 640*480.

Without CPU limit
It took 20 minutes to convert from WVM to MP4 without loosing quality. (100%)
It took 14 minutes to convert from WMV to OGV without loosing quality. (70%)
It took 80 minutes to convert from WMV to WEBM without loosing quality. (300%)
Since OGV is supported by the same browsers that WEBM we won’t offer webm on the CMS.

We are working to improve.

Original WMV

WM/ToolName     : Flip4Mac WMV Export Component for QuickTime (Mac)
WM/ToolVersion  : 2211
Duration: 00:18:22.96, start: 0.000000, bitrate: 1722 kb/s
Stream #0.0(eng): Audio: wmav2, 48000 Hz, 2 channels, s16, 64 kb/s
Stream #0.1(eng): Video: wmv3 (Main), yuv420p, 640x480, 1651 kb/s, 29.97 tbr, 1k tbn, 1k tbc

Converted MP4

major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf53.21.1
Duration: 00:18:23.06, start: 0.000000, bitrate: 5887 kb/s
Stream #0.0(eng): Video: h264 (Main), yuv420p, 640x480, 5682 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 199 kb/s

Some graphs

CPU usage

 

Memory usage