View Full Version : x264 for mac
xbox360
19th September 2010, 07:38
Is there a way to run x264 encoder on MacOSX 10.6.4 ?
J_Darnley
19th September 2010, 09:11
Compile it (or download one done for you), open whatever you guys have for a terminal, run: x264 INPUT -o OUTPUT
PiPPoNe92
19th September 2010, 19:55
See here:
http://sourceforge.net/projects/osx264/files/x264/x264_core88r1471.zip/download
Dark Shikari
19th September 2010, 22:52
See here:
http://sourceforge.net/projects/osx264/files/x264/x264_core88r1471.zip/downloadThat looks to be quite old...
xbox360
20th September 2010, 02:10
I downloaded yasm (http://www.tortall.net/projects/yasm/releases/) & GIT for Mac OSX (http://code.google.com/p/git-osx-installer/) then in terminal I typed this:
git clone git://git.videolan.org/x264.git
now I have a x264 folder with all the source code's, then I cd into the x264 sourcecode folder & type this in terminal:
./configure
Now type:
make
when completed, you will have a x264 file in the sourcecode folder, which is 100% working in MacOSX 10.6
Download:
x264 for MacOSX (http://www.mediafire.com/?1qmul320ucuoz)
vmrsss
20th September 2010, 02:58
x264 from svn/git compiles perfectly on 10.6(.4) (with gcc 4.2.1 from XCode and eg with yasm 1.0.1), including mp4 support and ffmpeg libs.
No need to --disable-asm ....
Dark Shikari
20th September 2010, 03:03
--disable-asmWe need to add a function to the configure script that reaches out of the screen and smacks your hands away from the keyboard when you do that.
Midzuki
20th September 2010, 04:17
We need to add a function to the configure script that reaches out of the screen and smacks your hands away from the keyboard when you do that.
Until that function is officially committed,
I will do its job for you. :)
http://forum.videohelp.com/images/smilies/smash.gif http://forum.videohelp.com/images/smilies/smash.gif http://forum.videohelp.com/images/smilies/smash.gif
xbox360
http://forum.doom9.org/image.php?u=105469&dateline=1210858096
xbox360
20th September 2010, 04:57
Fixed:
Download x264 for MacOSX (http://www.mediafire.com/?1qmul320ucuoz)
xbox360
20th September 2010, 05:43
how do I compile with mp4 and ffmpeg libs support ?
lucassp
20th September 2010, 07:47
For OSX,
A) install Xcode - it's on the OSX install disc or through Apple Developer Connection.
B) Install MacPorts (by following Parts 1 & 2 from http://davidbaumgold.com/tutorials/wine-mac/ - although if you want to go on to install wine feel free to).
C) Use MacPorts to install subversion, git-core, yasm, nasm, texi2html, automake, autoconf, libtool, pkg-config (might already be installed through Xcode...I can never seem to remember this), and I think that's it.
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
svn checkout http://ffmpegsource.googlecode.com/svn/trunk/ ffms2
git clone git://git.videolan.org/x264.git
cd ffmpeg
./configure --prefix=$HOME/ffms2_build --enable-gpl --enable-version3 --enable-postproc --disable-encoders \
--disable-muxers --disable-debug --disable-network --disable-hwaccels --disable-indevs --disable-outdevs \
--extra-cflags="-march=pentium3"
make
make install
cd ../ffms2
./configure --prefix=$HOME/ffms2_build PKG_CONFIG_PATH=$HOME/ffms2_build/lib/pkgconfig
make
make install
cd ../x264
wget http://vfrmaniac.fushizen.eu/OtherStuff/L-SMASH/mp4muxer.diff
patch -p1 < mp4muxer.diff
PKG_CONFIG_PATH=$HOME/ffms2_build/lib/pkgconfig ./configure --extra-cflags="-march=pentium3"
make
make install
make distclean
PKG_CONFIG_PATH=$HOME/ffms2_build/lib/pkgconfig ./configure --prefix=$HOME/x264-9bit \
--extra-cflags="-march=pentium3" --bit-depth=9
make
make install
make distclean
PKG_CONFIG_PATH=$HOME/ffms2_build/lib/pkgconfig ./configure --prefix=$HOME/x264-10bit \
--extra-cflags="-march=pentium3" --bit-depth=10
make
make install
All -march=pentium3 parts should be changed to the processor you actually have; refer to GCC's documentation for that list (http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html)...-march=native could also be used if you'd rather not take the time to target your cpu explicitly and let GCC autodetect it.
The MSYS/MinGW instructions are pretty much identical to those - the only place they differ are that ffmpeg requires two additional options: --enable-memalign-hack and -U__STRICT_ANSI__ needs to be added to the cflags, like --extra-cflags"-U__STRICT_ANSI__ -march=pentium3".
EDIT: I forgot...I have read reports that ffmpeg won't build under Snow Leopard unless --disable-asm and --arch=x86_64 are also given. I'm not entirely sure because I can't remember if I've ever built without those options, so be aware of that as well.
PS: How do you use libswscale in the command line?
kemuri-_9
20th September 2010, 13:12
PS: How do you use libswscale in the command line?
--vf resize:[opts]
see the options list in x264's long/fullhelp
xbox360
20th September 2010, 15:26
Updated ! (now only it is fully usable on MacOSX)
Download x264 for MacOSX (http://www.mediafire.com/?1qmul320ucuoz)
qyot27
22nd September 2010, 23:26
[snip]
wget http://vfrmaniac.fushizen.eu/OtherStuff/L-SMASH/mp4muxer.diff
patch -p1 < mp4muxer.diff
[snip]
PS: How do you use libswscale in the command line?
The L-SMASH patch has been a bit of a moving target in regard to its filename...so the 'mp4muxer.diff' part should now be 'x264_lsmash.diff'.
lucassp
23rd September 2010, 08:27
The L-SMASH patch has been a bit of a moving target in regard to its filename...so the 'mp4muxer.diff' part should now be 'x264_lsmash.diff'.
libswscale support in x264 comes along with FFMS or I have to compile it separately?
J_Darnley
23rd September 2010, 09:48
libswscale support in x264 comes along with FFMS or I have to compile it separately?
You don't need lavf or ffms to be able to use swscale through the resize filter. If you want to compile x264 with any of these features you will need to either download pre-compiled ones or compile them yourself.
kemuri-_9
23rd September 2010, 13:01
libswscale support in x264 comes along with FFMS or I have to compile it separately?
it's relatively the other way around:
FFMS and libavfilter are not capable of being supported without libswscale support
lucassp
5th October 2010, 14:00
I'm getting an error while trying to compile ffmpeg on 10.6
./configure --prefix=$HOME/ffms2_build --enable-gpl --enable-version3 --enable-postproc --disable-encoders --disable-muxers --disable-debug --disable-network --disable-hwaccels --disable-indevs --disable-outdevs --extra-cflags="-march=pentium3"gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from SVN. If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
Any suggestions? Thanks!
kemuri-_9
6th October 2010, 00:52
ffmpeg makes a config.log for a reason...
look at it.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.