[gstreamer-bugs] [Bug 563651] gst-ffmpeg crashes under windows

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Dec 26 07:32:57 PST 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=563651

  GStreamer | gst-ffmpeg | Ver: 0.10.21




------- Comment #4 from Damien Lespiau  2008-12-26 15:32 UTC -------
a bit more about this bug:

I suspect that very few people have actually *tested* gst-ffmpeg 0.10.5 /
0.10.6 on windows. As for me, I only made them compile.

I used to cross-compile gst-ffmpeg for windows on my linux box with:
i586-mingw32mvsc-gcc 3.4.5 (debian package)
i586-mingw32mvsc binutils 2.17.50 (debian package)

FAIL. The resulting gst-ffmpeg has SSE2 unaligned memory accesses.

So I tried a very different approach:
- compile ffmpeg DLLs *on windows* following this wiki:
http://ffmpeg.arrozcru.com/wiki/index.php?title=Main_Page
- used ffmpeg r15986
- gcc 4.2.1-sjlj-2 and binutils 2.18.50-20080109-2
- patched ffmpeg to make it generate gcc import libraries (.dll.a)
- configured it with something very close to what gst-ffmpeg does
./configure --enable-gpl --enable-postproc --enable-swscale --disable-ffserver
--disable-vhook --disable-protocols --disable-devices --disable-net
work --enable-shared --disable-static --enable-memalign-hack
--extra-cflags="-fno-common" --disable-encoder=flac --disable-decoder=cavs
- then I configured gst-ffmpeg with --host=i586-mingw32msvc
--with-system-ffmpeg (cross-compiling it and using the newly generated ffmpeg
DLLs, tweaking the prefix in .pc flles)

and ... It works quite well!

Now, I'll try to narrow down what I was doing wrong among:
- gcc's version
- binutils' version
- which versions of gcc are affected by
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216 (3.4.5 ? 4.2.x ? both ?)
- the fact that I was cross-compiling ffmpeg
- the fact that libgstffmpeg.dll wraps a static ffmpeg
- the SVN revision used


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=563651.




More information about the gstreamer-bugs mailing list