You don't have to buy one of these new and flashy Intel Macs to get some decent H.264 (x264) encoding speeds.
The x264 build used by major is NOT optimized for G5 (PPC970) because of backwards compatibility to G4 and (possibly) G3 processors.
I've built an new x264 binary from the May 12 2006 snapshot and compiled it with GCC 4.0.1 and enbaled all compiler tuning options for G5 computers.
Test Setup:
Computer: Dual Core 2.3 GHz PowerMac G5 (late 2005) ; 2 GB DDR2-RAM ; OS X 10.4.6
VOB: Star Wars Ep. V - The Empire Strikes Back - Chapter 44 (Lightsaber figtht) ; 2:22 min.
Software: ffmpegX 0.0.9w
Test 1:
video options: 640x272 ; no crop ; 1000kbs ; PAL
x264 options: two-pass encoding ; i4x4 analysis ; B-frames
audio options: AAC 192kb ; 48 kHz; Stereo; CBR
Results:
x264 (ffmpegX standard):
pass 1: 30.30 fps
pass 2: 36.73 fps
x264 (Phil's ultimate G5-only):
pass 1: 41.73 fps (+ 36,73%)
pass 2: 47.45 fps (+ 29,19%)
average custom built x264 speedup: 33%!!!
Test 2:
video options: iPod x264 export: 320x240 ; 512 kb/s ; no crop ; i4x4 ; single pass ; constant bitrate
audio options AAC ; 96 kb/s ; 48 kHz ; CBR
Results:
264 (ffmpegX standard): 62.83 fps
x264 (Phil's ultimate G5-only): 83.59 fps (+33,04% speedup!!!)
This is an amazing improvement!!! I love my G5 again!!!
I have included my build here, you may download it, test it and tell us about your results (everything you do, you do it on your own responsibility and at yourown risk! Nevermind, just a quick reminder...) Your feedback will be greately appreciated!
How to Install
Make sure you have a G5 in front of you (other processors are definitely NOT supported!)
Download and extract the .zip file on your desktop (or whereever you like)
Look for the ffmpegX app icon (usually in your Applications folder) and Ctrl+klick on it (or use your right mouse button if available).
Select "show Package contents" from the context menu that just appeared
Open the "Contents" Folder, then open the "Resources" folder
Rename the file "x264" which is already located inside that folder into someting like "x264-old-and-slow" (or whatever name you prefer)
drag and drop the extracted x264 file into the "Resources" folder
You're DONE!!!
Switching between the "old" and "new" x264 is quite easy: just rename the files appropriately (this can be even done when ffmpegX is running, but not encoding --- try that with Windows apps)
Next steps:
1. Get some custom x264 build for G4 (my brother wants it in the first place!)
2. Get some PPC970 optimized build of xvid 1.1.0-final (even though inever use it, butyou might...)
3. Use my PPC970-build for the x264 QuickTime component (and gain 33% in iMovie export? Hell yeah!!!)
Best regards, and greetings from Munich, Germany
PhilG5
download here:
x264-g5-exclusive.zip
Results 1 to 15 of 15
-
-
ffmpegX is one of my very favourite apps, so I'm always glad to help.
configuration options were set as follows:
Code:./configure --enable-mp4-output --enable-pthread --extra-cflags="$CFLAGS -mcpu=970 -mtune=970 -mpowerpc64 -mpowerpc-gpopt"
Now I'm struggling a bit with the compilation of ffmpeg, but maybe i'll get that done soon.
Already optimized binaries are available for:
libgpac
liba52
libmp3lame
libxvidcore
libfaac (with libmp4v2)
Best regards,
PhilG5
-
That kind of "experiment" also brings up some interersting points:
It clearly show how critical it is to adapt software to a very high degree to its hardware enivronnement in order to get the best performance out of both the program and the machine.
It also lets me doubt about the quality of Apple's very own H.264 implementation - integrated into QuickTime 7 - which really is th slowest codec I've ever tried to work with.
I haven't tested QuickTime 7.1 yet, but I don't believe it can catch up to the speed and quality of x264.
I would be very interested in having someone to run my tests on a Quad G5 Power Mac, I have a feeling that the SMP capabilities of x264 have very much improved. I am courious how well x264 - when optimizd to the G5 and 64 bit - may handle 4 processors.
best regards
PhilG5
-
That's what I was wondering !
Can we expect improvements on G4, if the lib' is "optimized" to ?
By the way, x.264 seems to be unable to handle 50fps and stay at 29.97fps.
Is this a known problem ?
Is there any issus about this problem ?
'cause, if improvement there is, I'll have to use mencoder and wont benefit of the G4 improvements...
-
major
The binary produced by -mcpu=g5 and -mtune=g5 (BTW, -fast might as well be used) will have architecture flags such that dyld will only load it on PPC970 hosts. You can then use lipo to make a three-architecture (generic PPC, PPC970, generic i386) version of any program or library.
-
i have a quad, if you want to make some tests...
i noticed that no codec can use more than 160-180% on my mac
it would be a good enhancement if ffmpegx can split the video in 2 pieces, spawn 2 encodings and at last join the 2 video files.
i tried encoding 2 movies at once and the time needed is the same that it would be for one...
-
Hi,
I have managed to compile the bin file for G4 processors, and have copied it into the ffmpegx directory as stated above, but when i try to encode in x264 the process bar just jumps from 0% to 100%, and only outputs the empty temp files?
Anyone come accross this or know how to solve it?
x264 appears to have compiled correctly as when double clicking the bin the instructions for use appear.
-
Originally Posted by PhilG5
I'd rather have the original RealPlayer, at least it wasn't choppy playback and a CPU hog.Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS
-
I hate to bring up an old thread but I am looking for a 970 optimized libx264.a & x264.h which should have been produced along with your binary. Any chance you have'em? I am at 18fps
on my Dual 2 Ghz PowerPC G5. I compiled myself and increased from 11fps to 18fps. I wonder if G5 dual-cores are better in this respect. Have you done this recently with a newer snapshot?
-
hey i think you missed my latest shootout with newer x264 builds
for both G5 and intel...and yes, it's faster again!
i'm about to release a new package soon (the results are very promising, especially for intel though) so stay tuned for more to come...
Similar Threads
-
Bitrate vs Size Calculator for x264 for ripping DVD to x264 + AC3
By Bonie81 in forum DVD RippingReplies: 7Last Post: 5th Jul 2010, 18:24 -
Color problem with x264 output + other x264 questions
By serexl in forum Newbie / General discussionsReplies: 3Last Post: 15th Mar 2010, 18:31 -
x264: -1920, -ESiR, -SEPTiC, -CiNEFiLE.... What are these x264 extentions?
By NWNewell in forum Newbie / General discussionsReplies: 7Last Post: 18th May 2009, 17:10 -
Starting programs and Office kicks in....
By rubberman in forum ComputerReplies: 2Last Post: 28th Feb 2008, 19:30 -
Toast 7 kicks out blank discs
By Going gray in forum MacReplies: 9Last Post: 22nd Aug 2007, 15:14