LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-01-2008, 10:38 AM   #1
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Video encoding and ICC


I would need some help from the video pro's around here.

Story is:

Curious beast that I am I figured I try and see what difference if any the Intel compiler (ICC) makes versus GCC.

Installed Gentoo on a VM (Virtualbox) and compiled everything that would compile with ICC and then encoded a video with the command:

time mencoder a.mpg -ovc xvid -xvidencopts bitrate=-50000: pass=2 -nosound -o a.avi

I did run the first and second pass with the VM and the host repectively but there was not much difference in the first pass.

The second pass did this:

Gentoo with ICC in VM

real 1m6.512s
user 0m15.470s
sys 0m47.800s

Debian host

real 2m8.984s
user 2m7.716s
sys 0m1.180s

Needless to say that I was slightly shocked.
Since I don't know how the xvid codec is build for Debian I tried to compile it in the VM with various options including for a i386 cpu but didn't explain the huge difference.

Mencoder can't be it either since that didn't compile with ICC.

Xvid is the same version on both systems.

Could it be related to the fact that the Debian host is a 64 bit system and the VM guest runs 32 bit?

Dazed and confused
 
Old 07-01-2008, 02:07 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Maybe so.
The results would need to be compared to a Gentoo system built with gcc instead of ICC.
The difference between those might or might not be that huge.
Gentoo is optimized (rather: can be optimized) for the CPU it is running on. Not just the kernel - but everything.
And that makes a rather large difference when compared to Debian, which is not optimized (built for i386 with no CPU extensions whatsoever being used AFAIK).

That is what I noticed - never confirmed by running tests though aside from comparing the FPS I got from glxgears on Ubuntu (not in a VM - the real one) with what I get on Gentoo on the same machine. It is just the "feel" that it is very noticably faster.
And it is one of the reasons why I use Gentoo.

Last edited by jomen; 07-01-2008 at 02:09 PM.
 
Old 07-01-2008, 02:36 PM   #3
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by jomen View Post
That is what I noticed - never confirmed by running tests though aside from comparing the FPS I got from glxgears on Ubuntu (not in a VM - the real one) with what I get on Gentoo on the same machine. It is just the "feel" that it is very noticably faster.
And it is one of the reasons why I use Gentoo.
Actually glxgears was faster for me with Debian when I last checked with a double boot (looong time ago).
Thats probably because the Debian x-guys know a lot more than I do about building X


And well - I did build that system and it is just build with ICC instead of GCC and w/o any special opts (funroll-chick-twice or whatever) - no way that would work on a VM anyway.

Knowing virtualbox (it gave me the fastest cpu in the world with a XP guest and sandra)I even checked the encode times with a stop watch.

Last edited by crashmeister; 07-01-2008 at 02:38 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gpu video encoding cormack Linux - Hardware 3 11-08-2007 06:18 PM
Encoding video that XP will play. Budman21901 Ubuntu 1 11-17-2006 02:20 PM
Video Encoding. barn63 Linux - Hardware 12 09-22-2006 01:33 PM
Two pass video encoding cs-cam Linux - General 4 06-05-2006 01:21 AM
Video encoding in Linux cormack Linux - Software 1 11-06-2005 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration