Log in

View Full Version : Fast h.264 encoding on mac?


gozu
25th May 2010, 10:04
Handbrake gives me 18 fps on a 2.8Ghz core2duo macbook pro for a 720x576 avi file.

That's pretty slow. Is there a faster encoder available?

If not, which is the fastest one on windows?

Thanks.

kypec
25th May 2010, 10:30
Is the speed your only concern? Try Badaboom or ATI Avivo encoders then.
Do you care about quality of output video too? Use x264 then, find the preset & settings that give you desired quality at reasonable speed (for you) and go encode your videos.

creamyhorror
25th May 2010, 15:15
Handbrake gives me 18 fps on a 2.8Ghz core2duo macbook pro for a 720x576 avi file.

That's pretty slow. Is there a faster encoder available?
Use faster settings in Handbrake. They're x264 settings so you can find equivalents around this forum.

Dark Shikari
25th May 2010, 16:59
Take a faster x264 preset from the official documentation (x264 --fullhelp) and stuff it in Handbrake. And complain to the devs that the presets aren't in Handbrake.

AlekseiV
25th May 2010, 23:08
Is the speed your only concern? Try Badaboom or ATI Avivo encoders then.x264 can easily hit Badaboom's speed.

MyCometG3
26th May 2010, 11:23
Try x264Encoder with MPEG Streamclip
- http://forum.doom9.org/showthread.php?t=153821

Source : LosslessMaikaze.mkv
Source Video : H.264 (lossless x264)
rectangle : 720x480, 23.976fps, 03:28.29, 4994 frames

Destination : output.mp4
Destination Video : x264 (x264Encoder, No B frame, Single pass, preset: Ultra Fast, tune: Fast Decode)

Perian 1.2.1(importer + decoder) + x264Encoder 1.2.9(encoder) + MPEG Streamclip 1.9.3b3 (muxer)
Machine : MacOS X 10.6.3 on MacBook Pro Mid 2007 (Core 2 Duo T7700 2.4GHz, FSB 800MHz, 4GB Mem)

result : 69.0 sec = 72.37fps

I guess you will get over 100 fps with latest h/w.

[libx264 @ 0x997e00]using SAR=1/1
[libx264 @ 0x997e00]using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x997e00]profile Baseline, level 3.0
[libx264 @ 0x997e00]x264 - core 96 r1602M 69588a7 - H.264/MPEG-4 AVC codec - Copyleft 2003-2010 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=0.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 constrained_intra=0 bframes=0 weightp=0 keyint=120 keyint_min=12 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.40 aq=0
[libx264 @ 0x997e00]frame I:42 Avg QP:14.26 size: 77649
[libx264 @ 0x997e00]frame P:4952 Avg QP:17.33 size: 5973
[libx264 @ 0x997e00]mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x997e00]mb P I16..4: 3.1% 0.0% 0.0% P16..4: 26.7% 0.0% 0.0% 0.0% 0.0% skip:70.2%
[libx264 @ 0x997e00]coded y,uvDC,uvAC intra: 49.1% 51.1% 30.1% inter: 13.0% 11.8% 3.2%
[libx264 @ 0x997e00]i16 v,h,dc,p: 44% 27% 13% 17%
[libx264 @ 0x997e00]i8c dc,h,v,p: 44% 23% 26% 8%
[libx264 @ 0x997e00]kb/s:1261.20
INFO : lavcEncoder: - Total time: 69.0 sec.

Note: preset/tune behavior is not exactly same as x264 binary, due to implementation difference.

CpT
26th May 2010, 14:46
If not, which is the fastest one on windows?
Thanks.

For windows you may wanna try either Hybrid or StatRip.
Both work well and both can use presets.

Hybrid:
http://forum.doom9.org/showthread.php?t=153035

StatRip:
http://forum.doom9.org/showthread.php?t=102652

I've only tried handbrake on windows and wasn't impressed. But apparently the mac version is more actively developed.

Honestly getting 18 fps running on a dual core 2.8Ghz isn't all that bad depending on the settings used.

Definitely look into using presets, their very handy, especially for testing/benching.