View Full Version : FFMpeg for win32
-h
10th October 2002, 00:46
I just thought I'd post a windows build of FFMpeg for people to play with. It's from today's CVS (2002-10-09 7:30 PM EST), built with GCC 3.2. I disabled OSS audio, video4linux, network and zlib support, but didn't enable vorbis or LAME because I couldn't figure out how to (me = duh duh).
Edit: I took this build down as something seems to have gone terribly wrong with the CVS. I'll post something when I figure it out.
-h
-h
10th October 2002, 15:24
It's working now - mingw couldn't deal with bigendian or vsnprintf by default (among other things).
http://www.geocities.com/hstink
I'm not sure how much bandwidth geocities gives out per day, but seeing as the file's only 270 KB it should last a while.
-h
Wrombit
10th October 2002, 21:26
do you know how to use to compress in xvid for exenple?(could you give an example...)
-h
10th October 2002, 22:11
Well that depends on what you want to do.
To convert say a .vob file to .avi, you could do:
ffmpeg -vcodec mpeg4 -b 800 -g 128 -ab 128 -i vts_19_1.vob vts_19_1.avi
You could also add -hq and -4mv to the start of the command line for better quality. The audio will sound a bit crummy with this method though, since it's only MP2 at 128kbps.
It's also good for creating MPEG-1 files, or converting from other formats.
-h
Emp3r0r
10th October 2002, 22:47
saweet, just what I was looking for
-h
4th December 2002, 06:18
I just updated the site (http://www.geocities.com/hstink) with a checkout of today's CVS. Many things have changed - WMA decoding, Huffyuv encoding/decoding (will compress better than the Windows version thanks to codebook generation), MP3 encoding support, DV video decoding, etc.
-h
Neo Neko
4th December 2002, 08:26
Excelent........ I have some stuff I just got that I can test on it. Fun times tonight.
-h
4th December 2002, 08:40
I've just noticed it's a bit buggy in some areas, but oh well.
-h
easyfab
4th December 2002, 20:00
I try to make some test and i have a little question. How can i use the size option? i try -s 512x384 , -s 512*384 , -s cif ... none works, i have always the input size 720*576.
and Thanks -h for the win32 compile.
-h
4th December 2002, 20:33
Hm yes, something is going wrong (the code should check and say that a size of 0 is invalid, but the code never seems to be called).
I don't know if I have the time to patch this :(
-h
easyfab
7th December 2002, 18:10
how can you compile with mingw ?
I have mingw 2.0.0.
I unselected oss audio, vido4linux ...
./configure works but make stoped at ac3enc.o with this message :
ac3enc.c:887: 'M_PI' undeclared (first use this function)
make [1]: ***[ac3enc.o] Error 1
...
Is something special to do before the make ?
-h
7th December 2002, 19:38
There's a bunch of stuff from memory, it was a real pain to fish through.
In the config.h that's created in the root ffmpeg directory, make sure that "#define CONFIG_WIN32 1" is present, as the default ./configure script didn't do that for me, and adding --enable-win32 made something break. I can't remember what else off the top of my head, but I think I had to comment out some code as well.
-h
PowerMacG4
7th December 2002, 23:09
Cygwin (http://www.cygwin.com) compiles FFmpeg quite nicely. I never got MinGW32 working. However I consider myself fairly exerienced with FFmpeg. I have it on my Linux box, my Windows box, and my OSX box. :-)
easyfab
8th December 2002, 10:43
Thanks -h it's works now with win32 enable and after deleting 1 instruction :rolleyes: (hope it was no crucial one)
@powermacg4
Thanks I will try this week with cygwin
-h
8th December 2002, 18:35
Yeah I used to use Cygwin to compile it, but I just hate that extra dll!
Cygwin (http://www.cygwin.com) compiles FFmpeg quite nicely. I never got MinGW32 working. However I consider myself fairly exerienced with FFmpeg. I have it on my Linux box, my Windows box, and my OSX box. :-)
Ever attempted compiling mencoder via Cygwin? I've never touched it myself.
-h
easyfab
8th December 2002, 20:44
Ok i can now compile ffmpeg.
I try mingw and cygwin.
With cygwin it's simple but it need specific *.dll (is there any speed consequence ?)
I also enable mp3lame and i try now to enable vorbis (some message error for the moment "oggvorbis.c:29 :structure has no member named 'quality'", i think it's a vorbis*.h files that is needed (i'm not a coder :) )
I also compile mplayer but only the sound is working, the -vo option don't work and with mencoder there is no codec available (win32 codecs is found in the configure ??)
ChrissyBoy
14th April 2003, 15:02
I'll ask here because you guys seem to know your onions. Can i use ffmpeg to output demultiplex streams from a mpeg? Optionally can i upsample the audio rate whilst i'm at it. I've been trying things like:
ffmpeg -i in.mpg -y -ar 48000 -ab 224 out.mp2 out.mpv -map 1:0 -map 0:0
without any success.
Thanks in advance
easyfab
14th April 2003, 19:02
IMO ffmpeg couldn't demux files, it only encode.
Actualy if you make a mpg to a mpv it will reencode.
To demux a mpg file use Tmpeg, will be easier
ChrissyBoy
14th April 2003, 19:06
@easyfab thanks for the reply. I thought as much. I was hoping that it was demuxing on the fly to do mpg>mp2 & so the mpv stream would be there for the taking so to speak....
OK next question: I just got VS.Net C++ 2003. Anyone had any luck compiling with VS.Net? If so any pointers?....
CB
easyfab
24th June 2003, 19:23
I compile ffmpeg (win 32) from the newest cvs (gcc 3.2.3). Some great improvements.
Now resize works fine and with some compile optimisations it's rocks.
With the same settings mpeg4 in ffvfw (virtual dub fastmode)5min36 and with ffmpeg 4min52 .(on my athlon xp)
More test to do (quicktime and wmv2 decoding...)
Someone knows how to encode in mpeg2 (only the decoding is working)
can i include mpeg2enc perhaps??
superdump
24th June 2003, 19:52
easyfab: I don't suppose you could post a link to your compile could you? It sounds quite promising and I wouldn't mind playing with it a bit.
Thanks :)
easyfab
24th June 2003, 21:35
Ok here is a compile (24/06/2003 cvs)
http://perso.wanadoo.fr/easyfab.page/ffmpeg24062003.rar
superdump
24th June 2003, 23:14
Thanks for that. It's giving me a bit of grief though. I can't get it to output the correct size and aspect. Also I'm not certain the libavcodec options I'm passing are being used with the correct syntax.
My aim is to convert some vobs into an mpeg-4 video with ogg vorbis audio in either a matroska or ogm container. If this is not possible then I would just like to produce an avi output which I can mux with vorbis audio manually.
Can FFMPEG do automatic cropping? I'd like all black borders to be removed.
I'd also like to use the highest quality options for libavcodec. I know that there are no generic "ultimate" settings for any codec as situations differ so vastly. But a rough guide can usually be obtained for reasonably good quality in most situations.
Using ffvfw I have obtained good results with all the chroma opt boxes ticked, all size 2 diamonds, all motion estimation options set to SATD (as SSE crashes vdubmod using ffvfw) qpel turned on, subpel refinement quality 8, hq and 4mv checked, trellis searched h.263 quants and the default settings for the rest.
Which is faster of the mingw and cygwin compiles?
Many thanks and another other assistance will be very gratefully received.
Thanks for compiling it easyfab. (I also have an athlon xp :))
easyfab
25th June 2003, 17:14
for cropping you can use -croptop -cropbottom -cropleft -cropright but it's not automatic.
For better quality -hq -4mv ...
Here is an example of what i use:
ffmpeg.exe -i 01.mpg -f avi -vcodec mpeg4 -s 512x384 -bf 2 -b 900 -hq -4mv -acodec mp3 -ab 128 01.avi
or
ffmpeg.exe -i vts_01_1.vob -f avi -vcodec mpeg4 -b 1000 -g 300 -bf 1 -hq -s 640x360 -ab 128 01.avi -map 0:0 -map 0:2
For all the options -> ffmpeg.exe -h
superdump
25th June 2003, 18:21
I knew about the -h switch and they are the options I was playing with. Shame it can't do autocripping though. That would be fantastic. It would also be good if it supported vorbis audio. What mp3 encoder does it use? LAME?
Thanks for the command lines. :) Are the -aic and -umv switches worth playing with? I'll only ever be playing back these videos on my PC so it doesn't matter about compatibility for separate DVD players.
Thanks.
PS - Is the cygwin compile faster?
superdump
28th June 2003, 19:50
*bump*
BoNz1
17th September 2003, 17:49
I built 0.4.8 RC1 today, if anyone is interested you can get it here http://www.geocities.com/bonzi5252/ffmpeg0.4.8RC1.zip I got ffplay to work too so if you like you can try that as well. I couldn't get the nsi installer to work however so the zip will have to do. It all seems to work perfectly for me, ;)
Nibor
17th September 2003, 22:13
Cooooool!! Thanks!!!
-> test test test :D
Fl0ppy
17th September 2003, 23:13
I tried the bonzxi compiled version, but i dont'0 know if it a bad switches or something, but when i try to encode with mpeg2video only i can watch the .mpg correctly with ffplay
ffmpeg.exe -i 12xvid.avi -vcodec mpeg2video test.mpg
The same with -vcodec mpeg1video works perfect. :-|
It's mpeg2coder buggy? :confused:
deXtoRious
18th September 2003, 14:41
"Site is unavailable" :(
Can't download your build...
superdump
18th September 2003, 16:05
dextorious: Right-click and save as. That works.
Sirber
18th September 2003, 16:17
hum... I could add this to Surreal UI :D
superdump
18th September 2003, 17:29
Sirber: That would be VERY awesome. DO IT DO IT DO IT DO IT!!!!!
easyfab
18th September 2003, 18:54
Originally posted by superdump
Sirber: That would be VERY awesome. DO IT DO IT DO IT DO IT!!!!!
+1
unplugged
18th September 2003, 21:02
Originally posted by superdump
dextorious: Right-click and save as. That works.
Whoa?!?!?
strange... it works :D
superdump
18th September 2003, 21:20
lol @ easyfab :)
BoNz1
19th September 2003, 01:28
Sirber, that would be excellent if you could add it. Under Linux there are lots of nice UIs but I'm afraid there is nothing for windows.
@ Fl0ppy, I don't know what the problem is exactly but I have heard about mpeg2 having problems with compatibility a couple times before. Not sure if it is buggy or not now.
@ superdump, did you ever figure out how to turn on satd? I can't figure it out, there are absolutely zero docs or at least zero helpful docs for ffmpeg. There used to be a feature comparison on the ffmpeg site but it is gone so without it I am very lost.
superdump
19th September 2003, 01:58
BoNz1: I didn't play with it for long because it was too un-user-friendly for my liking. :) Which is another great reason for Sirber to spend some time on it and make a good job of it! :D
Anyway, to answer your question. In the command line help it says:
-me method set motion estimation method
so I suppose "-me satd" would do the job. I would imagine you just put it in amongst your other video settings.
That help thing is quite useful if you can be bothered to spend time on it. Just run ffmpeg.exe from the command line in a dos box and it'll pop it all up for you. :) (you probably already knew that, but still)
Sirber
19th September 2003, 03:53
ok ok I got the message. If it's commandline frendly, I'll add it :D. But in exchange, I want ice cream :devil:
Nibor
19th September 2003, 09:46
Here's the help with all options explained:
FFMPEG documentation (http://ffmpeg.sourceforge.net/ffmpeg-doc.html)
I don't know if it's updated to the newest version...
But according to this document, satd me is not possible!
Why are cool features like qpel not available in the windows version? :(
superdump
19th September 2003, 10:30
Originally posted by Sirber
ok ok I got the message. If it's commandline frendly, I'll add it :D. But in exchange, I want ice cream :devil:
It is fairly command line friendly and I'll find you some ice cream somewhere. :D
Nibor: I hope it's just the case that the documentation hasn't been updated. After all, if it's compiled from the same source the same features should be present. Maybe "-qpel" will do the job? Also, it may just be that they haven't put them into the command line interface yet, in which case someone who knows stuff could look at the code and add everything that's new for us to use. :)
deXtoRious
19th September 2003, 10:42
Stupid question: they haven't implemented h264 encoding, so what's the use from this version at all?
BoNz1
19th September 2003, 14:29
-qpel doesn't work, quite frankly I have no idea how to turn it on but it should be there somewhere, I am willing to bet that there is a lot of undocumented switches, ;). deXtoRious, h.264 encoding is very alpha but I think you will find if you do have some h.264 video handy that ffplay will play it although I have not tested this it should work.
deXtoRious
19th September 2003, 17:16
Yes, but I don't need FFMpeg to play h264. The codec has it's own decoder. My question was: what do u guys use this for?
Sirber
9th January 2004, 18:34
any updated build?
bond
9th January 2004, 18:50
via google i found this (http://www.dvdrhelp.com/tools?tool=263) ;)
seems it is a compile of the latest official version 0.4.8
Sirber
9th January 2004, 19:05
if it works as you said, I might remove xvid/divx/wmv9 from SUI and use FFMPEG instead... I'll have to read more about it.
bond
9th January 2004, 19:23
well its a commandline mpeg-4 encoder...
all-in-all i would remove wmv9 in any case :D
Sirber
9th January 2004, 19:26
exactly my opinion! if ffmpeg goes in, I remove WMV9 from SUI.
avih
9th January 2004, 20:09
you might be able to use ffmpeg from mplayer (or mencoder). a pretty good command line applications are available from the mplayer site (http://mplayerhq.hu) (down at the time of writing).
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.