VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  2. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    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?
    Quote Quote  
  3. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  4. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    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"
    Quote Quote  
  5. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  6. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    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.
    Quote Quote  
  7. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  8. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    I found a compiled version of gmp made for mingw at sourceforge. Now I'm looking for mpfr. gcc configure says I need them.
    Quote Quote  
  9. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  10. I am also trying to compile the latest ffmpeg from svn and have some problems with gcc. Could you please give me the links and list of the packages you installed for mingw.
    Quote Quote  
  11. Member
    Join Date
    Sep 2006
    Location
    United States
    Search Comp PM
    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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!