Log in

View Full Version : Compile FFMPEG x64?


rack04
26th January 2010, 03:34
I couldn't find the best place for this question but this seemed most logical. I'm looking for a little guidance on how to compile FFMPEG 64-bit.

For 32-bit I use the following configuration:
./configure --enable-gpl --enable-postproc --enable-memalign-hack --enable-runtime-cpudetect --disable-devices --disable-filters --disable-encoders --disable-muxers --disable-network --disable-decoder=aac,ac3,adpcm_*,alac,als,ape,atrac?,cook,dca,dsicinaudio,dxa,eac3,flac,interplay_dpcm,mlp,mp1,mp2,mp3,mp3*,mpc?,pcm_*,qcelp,ra_*,sipr,truehd,truespeech,tta,vorbis,wavpack,wma*,twinvq --disable-demuxer=aac,ac3,pcm_*,ape,amr,ass,au,avs,dts,eac3,flac,mp3,mpc,mpc8,truehd,tta,w64,wav,wv --disable-parser=aac,ac3,dca,mlp,mpegaudio

I was wondering what I would have to change to build a 64-bit version. I tried adding --cross-prefix="x86_64-pc-mingw32-" --host="x86_64-pc-mingw32" but that didn't work. Any help is appreciated.

EDIT: I think this should have gone in the "New and alternative video codecs". My mistake.

MasterNobody
26th January 2010, 19:24
Add this to your options:
--arch=x86_64 --enable-cross-compile --cross-prefix=x86_64-pc-mingw32-
Also swscale have problems with compilation in x64 so I would suggest to use this patch: sws_x64_fix.diff (http://stashbox.org/778279/sws_x64_fix.diff)

rack04
26th January 2010, 19:39
Add this to your options:
--arch=x86_64 --enable-cross-compile --cross-prefix=x86_64-pc-mingw32-
Also swscale have problems with compilation in x64 so I would suggest to use this patch: sws_x64_fix.diff (http://stashbox.org/778279/sws_x64_fix.diff)

I get Hunk #1 FAILED at 2497 with this patch.

Dark Shikari
26th January 2010, 20:19
I wouldn't recommend it on Windows; ffmpeg does not properly follow the win64 calling convention in its asm.

rack04
26th January 2010, 20:20
I wouldn't recommend it on Windows; ffmpeg does not properly follow the win64 calling convention in its asm.

Very well. Thank you.