I have an error during usage of the compiled ffmpegs I compile.
I used the instructions to install mingw/msys at
http://arrozcru.no-ip.org/ffmpeg_wiki/tiki-index.php.
I used the link ‘Building FFmpeg SVN statically’ to install it.
When I compile I get a usable exe. Videos I convert with it are okay; but during the convert I get this error:
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. Do not report crashes to FFmpeg developers.
Also, when I compile my –version cmd-line option ffmpeg returns SVN-rUNKNOWN.
How do you fix these two problems?
Thymej
+ Reply to Thread
Results 1 to 11 of 11
-
-
SVN-rUNKNOWN is probably because you don't have svn installed, so the version script can't get the svn revision.
The other problem. What build of gcc are you using? -
Here are the versions I installed:
MSYS-1.0.11-2004.04.30-1.exe
MSYS-1.0.11-20060807.tar.bz2
bash-3.1-MSYS-1.0.11-snapshot.tar.bz2
binutils-2.17.50-20060824-1.tar.gz
gcc-core-3.4.5-20060117-1.tar.gz
gcc-g++-3.4.5-20060117-1.tar.gz
mingw-runtime-3.11.tar.gz
w32api-3.8.tar.gz
I used TortoiseSVN-1.4.1.7992-win32-svn-1.4.2.msi to get the svn checkout of ffmpeg and to keep it up to date. Is there some other SVN install I should be using or some environment variable that I need to set?
ThymeJ -
Actually looking at version.sh, svn isn't actually required since if that fails it should use "grep revision .svn/entries | cut -d '"' -f2" to get it. Guess you must also be missing grep or cut.
Try:
svn --version
grep --version
cut --version
You might also want to try updating gcc.
This is the config I use:
./configure --enable-mp3lame --enable-libnut --enable-libogg --enable-vorbis \
--enable-faad --enable-faac --enable-libgsm --enable-xvid --enable-x264 \
--enable-mingw32 --enable-a52 --enable-dts --enable-pp --enable-amr_nb \
--enable-amr_wb --enable-swscaler --enable-avisynth --enable-pthreads \
--enable-gpl --enable-memalign-hack --cpu=i686 --extra-ldflags="-static" -
I'm new to this msys/mingw stuff, just start a week ago.
Where do I get a newer version of gcc?
My copy of msys shell excepts the grep and cut commands. How do I test them with ffmpeg. What I have been doing is editing version.sh changing 'test $svn_revision || svn_revision='UNKNOWN'
to 'test $svn_revision || svn_revision={curent rev}'
ThymeJ -
http://gcc.gnu.org/ <-- gcc. Few places I think with mingw binaries for download.
Odd, about grep/cut. Maybe a problem with the script. Never been a problem here since I have svn which means "svn info | grep Revision | cut -d' ' -f2" gets used. -
Thanks for all the info.
Since I'm so new to this stuff I dont know how to compile gcc 4.1.1. I could not find compiled versions. I guess I'm stuck with gcc 3.4.5 until I can find a binaries. -
I found a compiled version of gmp made for mingw at sourceforge. Now I'm looking for mpfr. gcc configure says I need them.
-
I found experimental version of gcc that got rid of the following error during convert:
>Compiler did not align stack variables. Libavcodec has been miscompiled
>and may be very slow or crash. This is not a bug in libavcodec,
>but in the compiler. Do not report crashes to FFmpeg developers.
The experimental version of gcc is: gcc: 4.3.0 20061118 (experimental)
Thymej -
Here you go. Hope it helps, let me know.
http://www.mingw.org/MinGWiki/index.php/How%20to%20Compile%20GCC%204.1?PHPSESSID=fade9...8851660d3e5227
Note, even though I had msys/mingw install I uninstalled and start fresh with the above. I don't remember but I may have used the newer version of ming-runtime-3.11 then the 3.10 link they have. Also on the win32api I may have used v3.8 then the link they have that is 3.7. If I find the link I had that had all the links to the latest versions I will post it
Thymej
Similar Threads
-
libavcodec x264 profiles
By Spearmint in forum ProgrammingReplies: 0Last Post: 2nd May 2011, 20:57 -
Problem with libavcodec.dll
By Mitchum22 in forum Newbie / General discussionsReplies: 8Last Post: 31st Mar 2011, 09:15 -
mencoder x264 vs libavcodec for h.264 encoding
By chconnor in forum Video ConversionReplies: 0Last Post: 2nd Mar 2011, 15:31 -
Does Theora Decoder in libavcodec (FFMPEG V0.5) support YUV422 YUV444 modes
By goldenmean in forum Newbie / General discussionsReplies: 0Last Post: 15th Feb 2010, 22:35 -
FreeEnc can't find libavcodec
By zakman in forum Video ConversionReplies: 2Last Post: 31st Jan 2009, 08:38