xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 9 years ago

Closed 8 years ago

Last modified 5 months ago

#168 closed task (duplicate)

Build ffmpeg for win32

Reported by: ahuillet Owned by: Antoine Martin
Priority: major Milestone: 0.8
Component: platforms Version: 0.3.2
Keywords: Cc:


We have many problems with the pre-made builds of ffmpeg for win32, and they are much bigger than our needs. It therefore makes sense to build it ourselves, using only the components we need, and a stable release number instead of git revisions.

To build ffmpeg for win32, you need to set up mingw32.

Then, until the following ticket is fixed, you need to patch the "configure" script.

# must change
#        SLIB_EXTRA_CMD='-lib.exe /machine:$(LIBTARGET)  def:$$(@:$(SLIBSUF)=.def) /out:$(SUBDIR)$(SLIBNAME:$(SLIBSUF)=.lib)'
#to         SLIB_EXTRA_CMD=-'i486-mingw32-dlltool -m $(LIBTARGET) -d $$(@:$(SLIBSUF)=.def) -l $(SUBDIR)$(SLIBNAME:$(SLIBSUF)=.lib) -D $(SLIBNAME_WITH_MAJOR)'

Change "i486-mingw32-dlltool" to the name for your mingw32 dlltool. (Sometimes i686-pc-mingw32-dlltool, ...).


./configure --disable-filters --disable-indevs --disable-encoders --disable-muxers --disable-avfilter --enable-runtime-cpudetect --disable-network --enable-gpl --enable-shared --enable-memalign-hack --disable-ffplay --disable-ffprobe --disable-ffserver --disable-ffmpeg --disable-dxva2 --cross-prefix=i486-mingw32- --enable-cross-compile --target-os=mingw32 --arch=x86  --prefix=/tmp/mingw32_ffmpeg_ah 
make install


  • build hasn't been tested yet
  • dxva2 is not built but it should - my mingw is missing dxva headers and I don't know where to find them

Change History (5)

comment:1 Changed 9 years ago by Antoine Martin

See also #159

comment:2 Changed 8 years ago by Antoine Martin

Resolution: duplicate
Status: newclosed

Moving to #253 (ahuillet: this is months old!)

comment:3 Changed 4 years ago by Antoine Martin

See also #678 as we now get our ffmpeg win32 builds from msys2.

comment:4 Changed 4 years ago by Antoine Martin

Milestone: future0.8

comment:5 Changed 5 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/168

Note: See TracTickets for help on using tickets.