LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-06-2004, 08:36 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
encoding speed difference linux and windows


I have to say I always get annoyed when people compare linux to windows, but I am going to make a comparison. I have previously used dvd:rip to do all of my encoding of dvd(mpeg2) to xvid(mpeg4). I usually can do a two pass encoding of a movie in about 2 hours. I recently have not had linux to use so i had to find a windows alternative to encode to mgeg4. I found that the newest version of nero will do that for you. Nero also gives the choice of one or two pass encoding. Here is where I noticed a big difference, nero does each pass in half the time. The movies take about half as llong to encode. I was surprised at the time differnce that the two had. Just curious if anyone has any input to why their is such a difference?

When I get linux reinstalled(hopefully soon) I will go back to dvd:rip(transcode) even if it does take twice as long. It just feels better :-)
 
Old 08-06-2004, 09:47 PM   #2
daemonTED
Member
 
Registered: Jan 2004
Location: brisbane AUS
Distribution: Sid with kernel 2.6.7
Posts: 30

Rep: Reputation: 16
well, just at a guess - NERO is a commercial company. it can pay who knows how many people to sit down and work out what they think would be the fastest way to encode dvd's. they can likely afford to put them under a great deal of pressure and strain too.
it is quite clear that you do use linux (when it's available to you), so i don't think i need to explain to you that that's just not the way open-source goes about getting stuff done.

anyway, if that sounded cranky, it wasn't meant to. i just thought that it was a fairly silly question
 
Old 08-06-2004, 09:57 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
Quote:
anyway, if that sounded cranky, it wasn't meant to. i just thought that it was a fairly silly question
you did not sound cranky. I was just curious if anyone had anything interesting to add.
 
Old 08-06-2004, 09:58 PM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I guess I was hoping that someone would tell me xvid was superior in its encoding.

Even if the final product is not better, it is superior because it is open source.

Last edited by shanenin; 08-07-2004 at 12:17 AM.
 
Old 08-09-2004, 04:10 AM   #5
daemonTED
Member
 
Registered: Jan 2004
Location: brisbane AUS
Distribution: Sid with kernel 2.6.7
Posts: 30

Rep: Reputation: 16
Quote:
I guess I was hoping that someone would tell me xvid was superior in its encoding.
Well, that sounds like a nice enough reason. it probably is

Last edited by daemonTED; 08-09-2004 at 04:11 AM.
 
Old 08-09-2004, 06:42 AM   #6
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 274

Rep: Reputation: 30
Execution speed depends on quite a few things, among them: Type of compiler (and which
optimizations switched on, and how good these are), quality of used algorithms and their
implementation, type of os, that is mainly: speed and behaviour of the task scheduler, number
of processes running (because your process will get only a fraction of available cpu time - the more
processes, the less time you get, the longer your task takes). So saying "de/encoding a dvd under
(some) Linux takes x times the same job under windows" is like comparing peas and apples.
There is, however, something which you can do under Linux which you can't do (easily) under
windows and which, of course, proves linux' (and most other *NIX brand) superiority :-)
That is, change the processes' priorities (how much cpu time they will get).

1. Login as root
2. Be sure not to have any application with important data open :-)
3. Encode something and measure the time (at the console:
time xvid <whatever input> will measure the time for you)
4. Now open up a (new) console, start the same encoding job again. At the console,
type ps x and search for your process, probably xvid or something like /usr/bin/xvid. Get the
number to the far left (the processes' pid) and type renice -19 <pid>. If it returns with a
line like 0ld priority, new priority -19, then your process has the highest priority it can
have and should be finished faster.


HTH
 
Old 08-09-2004, 07:40 AM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
While I have used dvd::rip too and find it a very convenient way to encode ... I was also surprised by the huge time-difference!

But not in comparsion to any windows programs but compared to other linux-tools to do this job.

dvd::rip uses transcode as the backend to actually encode the files - this is an really excellent tool and gives results that are equally excellent - but it is slow.
I use for that reason mencoder - the encoding part that is included with mplayer - which therefore in one more respect - seems to me one of the most useful and best pieces of software.

Using mencoder and encoding by using the ffmpeg-codecs (also open-source) I get results of faster than real-time-encoding (35fps)! If you do two-pass-encoding this comes down to 1.5 the time the film needs to play - while watching it.

The interface is commandline only though - but some useful scripts are included to make things easier and my results are of equally good quality as if I'd been using transcode (I also use ffmpeg as the codec there).
It's transcodes architecture which makes it slower - but you can do things with it that are not so easy in mencoder - encoding to ogm-audio for instance...it can and it has been done by me tough.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Added Memory=difference in speed SteveSch Linux - General 10 10-30-2005 09:45 PM
A question about the difference between Linux and Windows Kernels ludwig W General 29 04-16-2004 03:44 AM
CD-ROM file format difference between windows and linux kas5058 Linux - Software 1 03-21-2004 04:13 AM
difference between c++ in windows and linux gtgoku Slackware 4 10-26-2003 09:23 AM
c++ difference between linux and windows lory Programming 5 09-26-2003 08:40 AM


All times are GMT -5. The time now is 09:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration