ffmpeg WMV > FLV on win2k

hey all. I have WMV's and Quicktime movies, and i downloaded the ffmpeg command-line tool and i really don't know how to use it, but i went online and i tried to do something like this:

ffmpeg -i a.wmv a.flv

and it doesn't seem to work. How can i get this thing to work. And even more importantly, maybe even get it automated, like when someone uploads , to convert whatever file to flv. AND... how do i use the flv so i can put it in a player online? This is the error i get from ffmpeg when i run the script above....

C:\>ffmpeg -i a.wmv a.flv
FFmpeg version SVN-r5969, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-mp3lame --enable-libogg --enable-vorbis --enable-faad
 --enable-faac --enable-xvid --enable-x264 --enable-mingw32 --enable-a52 --enabl
e-dts --enable-pp --enable-gpl --enable-memalign-hack --enable-amr_nb --enable-a
mr_wb --enable-pthreads
  libavutil version: 49.0.0
  libavcodec version: 51.11.0
  libavformat version: 50.5.0
  built on Aug 10 2006 16:51:18, gcc: 4.1.1
[wmv3 @ 0090E6C0]Header: 4FF90A11

Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 29.97 (30000/100
1)
Input #0, asf, from 'a.wmv':
  Duration: 00:48:27.8, start: 5.000000, bitrate: 556 kb/s
  Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 80 kb/s
  Stream #0.1: Video: wmv3, yuv420p, 320x240, 29.97 fps(r)
Output #0, flv, to 'a.flv':
  Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 29.97 fps(c)
  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
[wmv3 @ 0090E6C0]Header: 4FF90A11
Error while decoding stream #0.1kB time=999.6 bitrate= 274.7kbits/s
Error while decoding stream #0.1kB time=1659.2 bitrate= 273.9kbits/s
Internal buffer inconsistency. flushbits <> ResvSizebit reservoir error:
l3_side->main_data_begin: 264
Resvoir size:             -99568
resv drain (post)         -5
resv drain (pre)          0
header and sideinfo:      288
data bits:                1271
total bits:               1554 (remainder: 2)
bitsperframe:             1672
This is a fatal error.  It has several possible causes:90AME compiled with buggy
 version of gcc using advanced optimizations 9Your system is overclocked 1bug in
 LAME encoding libraryInternal buffer inconsistency. flushbits <> ResvSizeIntern
al buffer inconsistency. flushbits <> ResvSizeInternal buffer inconsistency. flu
shbits <> ResvSizeInternal buffer inconsistency. flushbits <> ResvSize

Thanx all!!!!

gyra
LVL 1
gyraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ch2Commented:
This Shoul Work

ffmpeg -i "MovieToConvert.wmv" -y -f flv -ar 44100 -ab 128 -ac 1 -acodec mp3 -vol 100 "ConvertedMovie.flv"
ch2Commented:
Download and install this FREE software http://www.erightsoft.net/Superdc.html and use the FFMPEG located in SUPER installation folder C:\Program Files\eRightSoft\SUPER\


ffmpeg -i "a.wmv" -y -f flv -ar 44100 - ab 128 -ac 1 -acodec mp3 -vol 100 "ConvertedMovie.flv"

The output for the above command:

ffmpeg version 0.5.0-pre2, build 613 Copyright (c) 2000-2005 Fabrice Bellard
  configuration:  --enable-mp3lame --enable-faac --enable-faad --enable-amr_nb -
-enable-amr_wb --disable-ffserver --disable-ffplay --enable-small --enable-memal
ign-hack --enable-gpl --enable-xvid --enable-dts --enable-a52 --enable-vhook --e
nable-pthread
  built on Nov 13 2005 21:13:33, gcc: 3.3.1 (cygming special)

Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from 'a.wmv':
  Duration: 00:20:07.2, start: 3.100000, bitrate: 363 kb/s
  Stream #0.0: Audio: wmav2, 32000 Hz, stereo, 48 kb/s
  Stream #0.1: Video: wmv1, 320x240, 1000.00 fps
Output #0, flv, to 'ConvertedMovie.flv':
  Stream #0.0: Video: flv, 320x240, 25.00 fps, q=2-31, 200 kb/s
  Stream #0.1: Audio: mp3, 44100 Hz, mono, 128 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
frame= 1703 q=0.0 size=    3059kB time=67.9 bitrate= 369.1kbits/s
gyraAuthor Commented:
Here's what i did...

C:\Program Files\eRightSoft\SUPER>ffmpeg -i "c:\a.wmv" -y -f flv -ar 44100 -ab 1
28 -ac 1 -acodec mp3 -vol 100 "c:\a.flv"


and here's what i got...

ffmpeg version 0.5.0-pre2, build 613 Copyright (c) 2000-2005 Fabrice Bellard
  configuration:  --enable-mp3lame --enable-faac --enable-faad --enable-amr_nb -
-enable-amr_wb --disable-ffserver --disable-ffplay --enable-small --enable-memal
ign-hack --enable-gpl --enable-xvid --enable-dts --enable-a52 --enable-vhook --e
nable-pthread
  built on Nov 13 2005 21:13:33, gcc: 3.3.1 (cygming special)

Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 30.00 (30/1)
Input #0, asf, from 'c:\a.wmv':
  Duration: 00:48:22.9, start: 5.000000, bitrate: 557 kb/s
  Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 80 kb/s
  Stream #0.1: Video: WMV3, 320x240, 1000.00 fps
Output #0, flv, to 'c:\a.flv':
  Stream #0.0: Video: flv, 320x240, 30.00 fps, q=2-31, 200 kb/s
  Stream #0.1: Audio: mp3, 44100 Hz, mono, 128 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
A>Unsupported codec (id=73) for input stream #0.1


Thanx.
ch2Commented:
WMV3 is not supported for FFMPEG. To see supported files type FFMPEG -formats

WMV1, WMV 2 can be converted with FFMPEG, to convert WMV3, WMV7 & WMV8 you can use "Mencoder" located in SUPER installation folder C:\Program Files\eRightSoft\SUPER\Mencoder\

For help try, mencoder -[option] help

An example of Mencoder;

mencoder movie.wmv -o movie.flv -of lavf -ovc lavc -oac lavc -lavcopts vcodec=flv:vbitrate=250:autoaspect:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:turbo:acodec=mp3:abitrate=56 -vf scale=320:240 -srate 22050 -af lavcresample=22050 -ofps 15

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.