Link to home
Start Free TrialLog in
Avatar of gyra
gyra

asked on

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
Avatar of ch2
ch2

This Shoul Work

ffmpeg -i "MovieToConvert.wmv" -y -f flv -ar 44100 -ab 128 -ac 1 -acodec mp3 -vol 100 "ConvertedMovie.flv"
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
Avatar of gyra

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of ch2
ch2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial