Help setting up MinGW and MSys

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Help setting up MinGW and MSys

Post by s.dot »

I need to install MinGW and MSys so I can build ffmpeg on windows to tinkle around with videos. (this is correct, right?)

Anyhoo, I don't know what to download and install.

I am following this tutorial: http://www.salyens.com/mingw/

Firstly, I downloaded and installed MSys, which installed just fine. It left me with a directory in c:\msys\1.0\ which contained the following directories.

/bin
/doc
/home
/mingw
/uninstall

And, the shell works fine.


Now, I need to set up MinGW. But I don't know what to download! The downloading page is confusing (to me at least).

http://www.mingw.org/download.shtml <-- download page

I downloaded the gcc-ada-3.4.2-20040916-1.tar.gz binary from the "current" section. Then, I unzipped it in the /mingw directory of MSys.. which according to the tutorial is what I should've done.

The tutorial then tells me to edit the /etc/fstab file. Ok. I didn't have an /etc directory. So I created it and then created the fstab file with the lines in the tutorial... editing them to point to my actual installation directories.

So I THOUGHT everything was fine.

So then I downloaded the ffmpeg library, and followed the tutorial for how to make it.
Windows/MSys:
./configure --extra-cflags="-mno-cygwin -mms-bitfields" --extra-ldflags="-Wl,--add-stdcall-alias" --enable-mingw32 --enable-shared --disable-a52 --disable-pp --disable-ffserver --disable-ffplay
cd libavcodec
make
The output:

Code: Select all

HP_Administrator@SCOTT /home/Administrator/ffmpeg-0.4.7
$ ./configure --extra-cflags="-mno-cygwin -mms-bitfields" --extra-ldflags="-Wl,
--add-stdcall-alias" --enable-mingw32 --enable-shared --disable-a52 --disable-p
p --disable-ffserver -disable-ffplay

big/little test failed
./configure: sdl-config: command not found
./configure: sdl-config: command not found
Install prefix   /usr/local
Source path      /home/Administrator/ffmpeg-0.4.7
C compiler       gcc
make             make
CPU              x86 (generic)
Big Endian       no
MMX enabled      yes
Vector Builtins  no
gprof enabled    no
zlib enabled     no
mp3lame enabled  no
vorbis enabled   no
faad enabled     no
faadbin enabled  no
a52 support      no
a52 dlopened     no
pp support       no
shared pp        no
Video hooking    no
SDL support      no
risky / patent encumbered codecs yes
optimize for size no
Sun medialib support no
AMR-NB float support no
AMR-NB fixed support no
Creating config.mak and config.h

HP_Administrator@SCOTT /home/Administrator/ffmpeg-0.4.7
$ cd libavcodec

HP_Administrator@SCOTT /home/Administrator/ffmpeg-0.4.7/libavcodec
$ make
sh: make: command not found

HP_Administrator@SCOTT /home/Administrator/ffmpeg-0.4.7/libavcodec
$
These lines from the above output are what I don't understand.

Code: Select all

big/little test failed
./configure: sdl-config: command not found
./configure: sdl-config: command not found
Why did it fail and why is the sdl-config command not found?

And also...

Code: Select all

sh: make: command not found
Why?

My guess is I didn't download the proper files for MinGW, or maybe not all of them. Has anyone had any experience with this? Can lend me any pointers or tell me what's going wrong?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Do I even need this programs to use ffmpeg on windows? Maybe I'm just installing these to be able to "build" ffmpeg. Can ffmpeg be downloaded as an executable?

(i really have no clue what i'm talking about here)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Ok, so after a few days of reading docs i finally got it set up and working and a nice ffmpeg directory that I added to my PATH.

Now I am having troubles understanding how to use the program.

Code: Select all

admin > ffmpeg -i C:\10.ASF C:\10.FLV
That's about all I know how to do. It makes the file but with lots of errors and I can't play it. Does anyone know of any site with help on how to actually use ffmpeg? Explaining the options with maybe a few tutorials? My google search(es) turned up fruitless.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

I guess nobody has any experience with ffmpeg. :(
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply