FFMPEG
Sunday 27 February 2005 @ 2:22 pm

This tutorial is about transcoding video fom one codec into another using FFMPEG. I got deeper into FFMPEG when I wanted to transcode into FLV (Flash Video) and it works very well. I developed the Riva FLV Encoder, a GUI for FFMPEG.

Update 26.10.2006: This tutorial is a little outdated as there were many changes in FFMPEG like the switch from CVS to Subversion and the workflow to compile FFMPEG under Windows has become more difficult. For the new tweaks check this tutorial.

  1. Download MinGW ” MSYS current releases (Window Exe Binaries MSYS-1.0.10.exe & MinGW-3.1.0-1.exe)
      Install MinGW
      Install MSYS
      HINT: During the Postinstall be sure to set the right path to MinGW with a “/” instead of a Windows-”". If you did it wrong anyway re-install MSYS to the same directory and do the postinstall right (I missed it a few times)
  2. Download and compile Lame
      Extract Lame to your MSYS home-directory
      Open MSYS and change to your lame-directory (cd ../lame-XXX)
      Enter the following commands:

      ./configure //(takes a few minutes)
      make //(lame is being comiled; takes a few minutes, too)
      make install
      After installing you will recognize that there are new directories and files in MSYS/local which we will use while compiling ffmpeg with mp3-support
  3. Download Subversion Client like Tortoise SVN (http://http://tortoisesvn.tigris.org/) and install it
      Check out the sourcecode from svn://svn.mplayerhq.hu/ffmpeg
    • Compile FFMPEG
        Change the directory in MSYS to your ffmpeg-directory (cd ../ffmpeg)
        Enter the command:

        ./configure --enable-memalign-hack --enable-mingw32 --enable-mp3lame --extra-cflags=-I/local/include --extra-ldflags=-L/local/lib
        HINT: you can paste into MSYS by pressing your center mouse-button
      1. “–enabled-memalign-hack” is a Windows hack. Without this option ffmpeg always crashs with the message “removing common factors from framerate” when encoding AVIs.
      2. “–enable-mingw32″. I see no difference without it but we compile with MinGW and it would not do a harm when ffmpeg knows this
      3. “–enable-mp3lame”: Enable transcoding audio with the open-source mp3-lame-codec
      4. “–extra-cflags=-I/local/include –extra-ldflags=-L/local/lib”: The cflags- and ldflags-parameter sets the right path to your lame-installation which you did in step 3.d.
        Enter command: make (ffmpeg is being compiled; takes a few minutes)
        With “make install” you could now copy the ffmpeg.exe to c:Program Filesffmpeg. But there is no need to.
    • Use FFMPEG
        Copy your compiled ffmpeg.exe from your MSYS directory to the directory where you like to transcode with ffmpeg
        Open the Dos-Shell and change to the directory where you copied the ffmpeg.exe
        Copy a test.mpg into your directory and enter the following command:

        ffmpeg -i test.mpg -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 test.flv
        Your first FLV should be encoded now
    • Render Images from a Video
        Enter command:

        ffmpeg -an -y -t 0:0:0.001 -i test.flv -f image2 test%d.jpg
      • HINT: With -t you set the length of images to be extracted. Above we entered 1 millisecond the extract one image. If you miss this parameter all images of the video will be extracted

    ZLib Support (e.g. for TSCC and Quicktime codecs). This should be compiled into FFMPEG. It is not an explicit compile in the configure statement. Do the following steps and after configure you should see that zlib is “on”.
    Download and compile ZLib
    Extract the files to your mysys directory
    Change the directory in MSYS to that directory
    Enter command ./confugure, make and make install.
    AC3 Support
    Add “–enable-a52 –enable-gpl” to your configure command

    3GP Support
    If you want to enable 3GP support you have to add the AMR audio codec. Download the TS26.104
    REL-5 V5.1.0 26104-5??.zip here. Extract the codec into libavcodec/amr_float and add “–enable-amr_nb” to your configure command

    XVID Support (thanks to garvin.thornten at datel.co.uk)
    Download and install the codec from www.xlib.org (see xvidcore-xxxx/doc/install). Add “–enable-xvid –enable-gpl” to your configure command. When compiling with xvid codec in MinGW or cygwin you will get a “mkstemp” error when compiling “xvidff.c”. To fix this edit “libavcodec/xvidff.c” and add the following after the #includes. This will probably be fixed in a future ffmpeg release: ´

    /* Added for windows compile ----------------- */
    #include
     
    int xvid_ff_2pass(void *ref, int opt, void *p1, void *p2); void xvid_correct_framerate(AVCodecContext *avctx);
     
    int mkstemp(char* template)
    {
    char temppath[512];
    if(GetTempPath(512,temppath)!=0)
    {
    if(GetTempFileName(temppath,"fil",0,template)!=0)
    {
    FILE *pFile;
    pFile=fopen(template,"w+");
    if(pFile!=NULL)
    return (int)pFile;
    }
    }
    return -1;
    }
    /* ------------------------------------------- */

    Link about qscale
    removed “-f singlejpeg” as its identical to “-f mjpeg”

    Share this:
    • TwitThis
    • Digg
    • Facebook
    • del.icio.us
    • Google Bookmarks
    • Furl
    • Reddit
    • Slashdot
    - Posted in Uncategorized by Sönke  




    221 Responses to 'FFMPEG'

    1. Evert - March 8th, 2005 at 4:38 am

      Audio doesn’t seem to work with ffmpeg. I tried it on a linux machine, but I did it with lame, so it shouldn’t be any problem.

      Any ideas?

    2. Sönke - March 8th, 2005 at 7:40 am

      No idea. There should be no problems. Post your problem more detailed in the ffmpeg-mailinglist.

      Cheers,
      Sönke

    3. xie bo - March 15th, 2005 at 1:30 pm

      About 10.XVID Support (thanks to garvin.thornten at datel.co.uk)

      Which file should I add ur codes? xvidff.c?
      Thanks!

    4. xie bo - March 15th, 2005 at 2:30 pm

      And how about faac and faad2 enable for ffmpeg? Looking forward to it … :)

    5. Sönke - March 15th, 2005 at 3:38 pm

      The file is xvidff.c as mentioned there.
      faac and faad2 have to be enabled while configuring:
      –enable-faac
      –enable-faad
      I am not sure if extra libraries have to be installed/compiled for this. maybe you can give it a try and report.

      Cheers,
      Sönke

    6. RockAttack - March 23rd, 2005 at 2:25 am

      zlib-support is also required for many Quicktime files b/c they can have their headers compressed with Zlib. I suggest to compile *always* with zlib support

    7. Lee - March 28th, 2005 at 1:12 am

      Sönke,
      Thanks so much for your information. I found this with Google. Between your wisdom and other snippets I’ve found on the web, I have a compiled FFmpeg that I’m very happy with.

      I must say, your code addition to get –enable-xvid was a lifesaver. As far as I can tell, you are the only one on the web who has published this important info. May I ask how you learned how to do it? I’m starving for more info on FFmpeg. The code worked great once I included the full path to the windows.h include. For some reason msys couldn’t find it.

      Also, you need the extra libraries if you –enable-faac and –enable-faad.

    8. Sönke - March 28th, 2005 at 12:11 pm

      Hi,
      thanks for the kind feedback but the xvid hack wasn’t me. Look at the thanks to in the xvid part. He emailed me the code to add it to my tutorial.
      Also thanks to RockAttack. I changed the ZLib part.

    9. ahomanga - April 30th, 2005 at 7:50 am

      berrygood

    10. ちるちる - May 16th, 2005 at 8:42 am

      FFmpegでswfへ変換

      Import&Exportにswfが使えるんなんて、FFmpegって結構使えるのね。 こういうことは、学校で教えてください。つか、FLVエンコーダーもあるのかよ。 FFmepg(マルチメディア変換)の使い方 Sonke R…

    11. ADAM - May 31st, 2005 at 1:26 am

      works great - however is there a way to put the metadata into the flv at the same time as encoding? .. so it can be used with nice swf players?

    12. Sönke - May 31st, 2005 at 12:18 pm

      FFMPEG does not support metadata. You can use FLVTool2 to inject metadata into FLVs. The Riva FLV Encoder uses both tools and supports FLV 1.1

    13. Vu - May 31st, 2005 at 7:24 pm

      Thanks for a nice website. I had problems while compiling ffmpeg, but thanks to your website, many things were cleared up.

      Also, have you successfully compiled and run ffmpeg with the additional option -–enable-shared in the command line? The compiler complains that ld.exe cannot find -lmp3lame when -–enable-shared is added. If you have resolved this problem, please add the instruction to your ffmpeg guide as well.

      Thanks.

    14. Sönke - June 1st, 2005 at 7:21 am

      Hi, I haven’t tried –enable-shared yet and don’t have a solution for your problem.

    15. John Giotta - June 30th, 2005 at 6:41 pm

      FFMPEG has the ability to grab video from a live source.
      Has anyone successfully done this on a windows environment?

    16. Sönke - June 30th, 2005 at 6:45 pm

      From what I know this works only on linux machines. This was discussed in the FFMPEG mailing list.

    17. John Giotta - June 30th, 2005 at 8:47 pm

      If that’s true, then I’m back to square one.

      Know of any command line capture software?

    18. Sönke - July 1st, 2005 at 7:37 am

      I have tried a few but I don’t remember there names, sorry.

    19. RockAttack - August 21st, 2005 at 10:21 pm

      Anybody here that has build / compile instructions on howto build FAAD2 with MinGW32? I really want to build a ffmpeg version that supports as much codecs and fileformats possible, all using freely available opensource tools. To make things a bit more user-friendly I want to try and get it all working under Mingw32. Only FAAD2 is not working under Mingw32 right now. Any help / info is welcome.

    20. sean - October 16th, 2005 at 7:27 pm

      Great stuff. I too would like to build a “mega ffmpeg” on linux to handle as many video input files as possible. A turorial on this..step by step…would be great in terms of the libs necessary and the order of installs, etc.

      thanks!

    21. ritz - November 7th, 2005 at 12:57 pm

      Hi. I am trying to do the following: take an flv (audio only) file recorded with the Flash Communications Server MX and convert it to MP3 format on a

      Windows XP Pro machine. I found your site and followed your excellent instructions at http://soenkerohde.com/tutorials/ffmpeg/
      I was able to get everything to compile (although for others trying I should mention that there was one small problem not documented. When compiling LAME it

      could not find some files in C:\msys\1.0\home\Admin1\lame-3.96.1\libmp3lame. The solution was to edit line 13 of one of the header files and then LAME

      compiled fine). So after everything, I put some flv files record from the flashcom sample app into a directory called c:\video, navigated there in DOS and

      tried to run:

      ffmpeg -i a.flv m.mp3
      and got the following error:

      ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard
      configuration: –enable-memalign-hack –enable-mingw32 –enable-mp3lame –extra-cflags=-I/local/include –extra-ldflags=-L/local/lib
      built on Nov 6 2005 21:04:20, gcc: 3.4.2 (mingw-special)
      [flv @ 006C5D14]Unsupported audio codec (5)
      Input #0, flv, from ‘a.flv’:
      Duration: N/A, bitrate: N/A
      Stream #0.0: Audio: 0×0005, 8000 Hz, mono
      Output #0, mp3, to ‘a.mp3′:
      Stream #0.0: Audio: mp3, 8000 Hz, mono, 64 kb/s
      Stream mapping:
      Stream #0.0 -> #0.0
      Unsupported codec (id=0) for input stream #0.0
      I tried a lot of other ffmpeg parameters but could not get anything to work. Do you have any ideas how to make this work? I know it can be done because I

      have seen other sites doing this. Thanks very much for any help - you seem to be the resident guru on this topic!

      Also, I should mention that I found some other suggestions such as using:

      ffmpeg -i $input_dir$movie -hq -acodec mp3 -ar $22050 -ab 56 -f flv -s 320×240 -aspect 4:3 -y $output_dir$filename.flv

      which supposedly is based off your own software! However when I try:
      ffmpeg -i a.flv -hq -acodec mp3 -ar $22050 -ab 56 -f flv -s 320×240 -aspect 4:3 -y a.mp3

      this I get:

      ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard
      configuration: –enable-memalign-hack –enable-mingw32 –enable-mp3lame –extra-cflags=-I/local/include –extra-ldflags=-L/local/lib
      built on Nov 6 2005 21:04:20, gcc: 3.4.2 (mingw-special)
      [flv @ 006C5D14]Unsupported audio codec (5)
      Input #0, flv, from ‘a.flv’:
      Duration: N/A, bitrate: N/A
      Stream #0.0: Audio: 0×0005, 8000 Hz, mono
      c:\ffmpeg\ffmpeg.exe: unrecognized option ‘-hq’

      which I don’t understand at all! If I take out the -hq I will get this error:

      $ ffmpeg -i a.flv -acodec mp3 -ar $22050 -ab 56 -f flv -s 320×240 -aspect 4:3 -y a.mp3
      ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard
      configuration: –enable-memalign-hack –enable-mingw32 –enable-mp3lame –extra-cflags=-I/local/include –extra-ldflags=-L/local/lib
      built on Nov 6 2005 21:04:20, gcc: 3.4.2 (mingw-special)
      [flv @ 006C5D14]Unsupported audio codec (5)
      Input #0, flv, from ‘a.flv’:
      Duration: N/A, bitrate: N/A
      Stream #0.0: Audio: 0×0005, 8000 Hz, mono
      Output #0, flv, to ‘a.mp3′:
      Stream #0.0: Audio: mp3, 2050 Hz, mono, 56 kb/s
      Stream mapping:
      Stream #0.0 -> #0.0
      Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

      Of course I tried Riva but I get the following error:
      Encoding has failed
      This can be caused by a not supported combination of parameters or by a not supported video codec
      and the log file says:

      ffmpeg version 0.4.9-pre1, build 4751, Copyright (c) 2000-2004 Fabrice Bellard
      configuration: –enable-memalign-hack –enable-mp3lame –enable-mingw32 –extra-cflags=-I/local/include –extra-ldflags=-L/local/lib –enable-amr_nb
      built on Mar 29 2005 07:26:02, gcc: 3.2.3 (mingw special 20030504-1)
      [flv @ 0040F954]Unsupported audio codec (5)
      Input #0, flv, from ‘C:\video\a.flv’:
      Duration: N/A, bitrate: N/A
      Stream #0.0: Audio: 0×0005, 8000 Hz, mono
      Output #0, flv, to ‘C:\video\a.flv’:
      Stream #0.0: Audio: mp3, 22050 Hz, mono, 56 kb/s
      Stream mapping:
      Stream #0.0 -> #0.0
      Unsupported codec (id=0) for input stream #0.0

      which I don’t understand either. Could you offer any suggestions? Thanks very much for any help.

    22. Sönke - November 7th, 2005 at 6:51 pm

      Hi,
      sorry no idea but I would try to ask the ffmpeg-mailinglist.

    23. Phil - November 12th, 2005 at 9:44 pm

      Your website is absolutely been a savior. It’s held the solutions to many of the problems that were encountered while compiling ffmpeg.

      lame failed to compile with the following changes listed below.

      the compiler does not have lame/mpglib in its list for include files. simple fix: edit libmp3lame/mpglib_interface.c line 13 to #include “../mpglib/interface.h”

      May I suggest that you take this wonderful page and start a compressive wiki page to help people with their attempts to compile and use ffmpeg I’d be willing to help as well.

    24. Jeremy - November 14th, 2005 at 7:20 am

      To get –enable-shared to work, I had to copy libxvidcore.a and libmp3lame.a to the MinGW\lib folder .. for some reason it wasn’t accepting the
      –extra-ldflags=-L/local/lib

      *shrugs* once I copied them the enable-shared option worked.

      -jeremy

    25. video - December 1st, 2005 at 2:50 pm

      How can I conver a flv file to 3gp format file?

    26. firefox - December 1st, 2005 at 2:57 pm

      I found the way myself.
      ./configure –enable-memalign-hack –enable-amr_nb

    27. Zakwer - December 3rd, 2005 at 10:40 pm

      http://www.xlib.org is down.
      I wonder if xvidcore-1.1.0-beta2.zip from http://www.xvid.org/downloads.html can be used instead… I will give it a try

    28. Zakwer - December 4th, 2005 at 2:25 am

      I have just compiled it with all the options you mention, using your excellent instructions.

      A couple of hints:

      I jumped into an error about lrintf, similar to this : http://permalink.gmane.org/gmane.comp.video.ffmpeg.devel/23188

      I fixed it (I think) the same way: replace
      static always_inline long int lrintf(float x)
      with
      static inline long int lrintf(float x)
      in file libavutil/common.h.
      (Maybe it wouldn´t have been necessary if I had done the next change before…)

      Also, lame 3.96a was giving me trouble, I tried several older versions but finally achieved it with lame-3.97beta2, which I download form sourceforge. http://lame.sourceforge.net/ is outdated, use http://sourceforge.net/projects/lame and get it from to the Files section

      Good luck!

    29. firefox - December 6th, 2005 at 4:46 am

      I can’t add –enable-mp3lame to build the ffmpeg.Why?Should I download a lame and build?What I should do?

    30. Sönke - December 6th, 2005 at 1:27 pm

      Yes, please check part 2. of my tutorial.

    31. Joxean943 - December 8th, 2005 at 12:49 am

      Thanks for your great site!
      I need to build ffmpeg with AC3 encoding capabilities. I know i need to add ‘-enable-a52bin -extra-libs=”-la52″‘ to the line of configure. I’d installed A52DEC but I don’t know why, it’s not enough. Do you know what I must do now?
      Cheers

    32. Sönke - December 8th, 2005 at 12:56 am

      You are welome but sorry, I dont know what you exactly have to do to include AC3

    33. uno - December 8th, 2005 at 6:12 pm

      Great tutorial! very appriciated! Now one question :-) Lets say i put a swf containing a flv-player on site A 10mbit host and some flv files on a site B 100mbit host. i tell the flv-player at site A to play the flv’s at site B. Now some user goes watching the clip on my site, does he download the flv from site B or does the swf download the flv and broadcast it via site A?

    34. uno - December 8th, 2005 at 7:32 pm

      Hi again. i have one more question. My movies encode succesfully with ffmpeg in linux but when i watch them with some flv player on my site, the “progressbar”-thing isnt “scrollable” until the whole movie is downloaded, i guess its because there’s no cue points added in the movie with ffmpeg. is this fixable with flvtool2? if so, whats the commando? i like your riva encoder though i must do this in linux since its takes forever to download the movie from my server and then reupload it. any help appriciated.

    35. abstract - December 9th, 2005 at 3:25 pm

      Hi ! thanx for the tut!

      i did everything mentioned, but when i want to do the make command for the ffmpeg.exe, i get a bunch of parse errors like this:
      avcodec.h:1987: warning: data definition has no type or storage class
      avcodec.h:1988: parse error before “flv_decoder”
      avcodec.h:1988: warning: type defaults to `int’ in declaration of `flv_decoder’
      avcodec.h:1988: warning: data definition has no type or storage class
      avcodec.h:1989: parse error before “rv10_decoder”
      avcodec.h:1989: warning: type defaults to `int’ in declaration of `rv10_decoder’
      avcodec.h:1989: warning: data definition has no type or storage class
      avcodec.h:1990: parse error before “rv20_decoder”

      Anyone an idea?

    36. Sönke - December 9th, 2005 at 3:31 pm

      Hi,
      @32: There is no broadcast but simply a download when you don’t use a special server like the Flash Media Server.
      @33: it’s not because of the cuepoints but because of the missing metadata. you can inject the missing metadata with flvtool2: http://inlet-media.de
      @34: sorry, no idea. I would ask the ffmpeg-mailinglist …

    37. abstract - December 9th, 2005 at 3:44 pm

      Ähmm it starts like this:
      make[1]: Entering directory `/c/msys/1.0/home/ffmpeg/libavcodec’
      gcc -O3 -g -Wall -Wno-switch -I/local/include -DHAVE_AV_CONFIG_H -I.. -I’/../c/ msys/1.0/home/ffmpeg’/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GN U_SOURCE -c -o bitstream.o bitstream.c
      In file included from bitstream.c:28:
      avcodec.h:14:20: avutil.h: No such file or directory
      In file included from bitstream.c:28:
      avcodec.h:436: parse error before “int16_t”
      avcodec.h:436: warning: no semicolon at end of struct or union
      avcodec.h:437: warning: type defaults to `int’ in declaration of `AVPanScan’
      avcodec.h:437: warning: data definition has no type or storage class
      avcodec.h:672: parse error before “uint8_t”

      do i have to put the specified files to the same folder ?

    38. Sönke - December 16th, 2005 at 3:00 pm

      Do you try the latest version from CVS?
      I would ask the FFMPEG list for such questions …

      Cheers,
      Sönke

    39. that_guy - January 10th, 2006 at 11:49 am

      Hi,

      Just wondering if you had any info on compiling ffmpeg for Windows Mobile. I’ve asked at the ffmpeg mailing list and at corecodec.com (tcpmp uses ffmpeg) but have not received any replies. I’ve tried a number of things (wince toolchains, configure options) but nothing has worked. Any help would be very much appreciated.

      P.S. Great guide for compiling for Win32. It saved my butt.

    40. Sönke - January 10th, 2006 at 1:38 pm

      Sorry, no idea. but good luck!

    41. gugcula - January 18th, 2006 at 11:43 am

      Hi, i’m just follow your instruction and
      after compiling and installing of ffmpeg.
      The error message popup was shown and it say that
      “This application has failed to stard because libmp3lame-0.dll was not found.Re-installing the application may fix this problem”

      Anyone an idea?

    42. Blakieto - January 19th, 2006 at 7:10 am

      Thanks for the great tutorial. I followed the instructions for everything except xvid, and it all worked fine. Now I can create flv’s with video AND audio. NICE!

      Do you, or anyone reading this, have any links to or examples of the command line to make ffmpeg generate a 3gp with both video and audio?

      I have 15 second video clip that I’ve broken into a series of jpegs and a single .wav file. I can now, thanks to this site, encode that as a flv with both the video and audio, but I’m not able to figure out the right set of command line parameters to encode it as a 3gp. I have an earlier version of ffmpeg (precompiled from the Gallery2 source forge project) that I am able to generate an mp4 with, and by simply changing the extension to .3gp the file plays on my Samsung cellphone, but it does not have audio.

      Any advice, links or examples anyone?

    43. Blakieto - January 19th, 2006 at 7:15 am

      Hey gugcula:

      I had the same problem. Simply look in your msys’s local\bin and the libmp3lame-0.dll file is there. Copy that into the same directory as your ffmpeg.exe and you are good to go.

      On my setup, that directory is C:\msys\1.0\local\bin

    44. gugcula - January 20th, 2006 at 10:47 am

      After compiling and copying lib are completed, i’m trying
      to convert but it always display these message

      C:\Program Files\FFmpeg>ffmpeg.exe -y -i legendheroes_ot_psp_101805.mpg sample.flv
      Input #0, mpeg, from ‘legendheroes_ot_psp_101805.mpg’:
      Duration: 00:01:06.7, bitrate: 1528 kb/s
      Stream #0.0: Video: mpeg1video, 320×240, 29.97 fps, 1350 kb/s
      Stream #0.1: Audio: mp2, 48000 Hz, stereo, 128 kb/s
      Output #0, flv, to ’sample.flv’:
      Stream #0.0: Video: flv, 320×240, 29.97 fps, q=2-31, 200 kb/s
      Stream #0.1: Audio: mp3, 48000 Hz, stereo, 64 kb/s
      Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
      Fatal error: mp3 data is not padded!

      Could you guys offer any solutions?

    45. Sönke - January 20th, 2006 at 11:09 am

      hi gugcula,
      sorry no idea. I would ask in the ffmpeg-mailinglist.

    46. gugcula - January 20th, 2006 at 7:21 pm

      ok i’ll go there thank you for provide this good tutorial

    47. chandra - January 21st, 2006 at 8:13 am

      Hi,
      i want to do video processing using opencv and VC++
      i don’t now how to install ffmpeg for windows and how to use ffmpeg with opencv and vc++ to do video processing could please anyone give me the stepwise procedure to do this.

    48. Hans - February 11th, 2006 at 7:42 pm

      I want to use ffmpeg to convert from 3GP to FLV. Unfortunatly the video-stream is not converted correctly. The video of the resulting FLV runs almost twice as fast, as in the origianl 3GP. I a,lso notice this in ffmpeg’s output:

      …Input
      Stream #0.0: Video: h263, 176×144, 11.51 fps
      …Output
      Stream #0.0: Video: flv, 176×144, 20.00 fps, q=2-31, 200 kb/s

      I use the following command:
      ffmpeg -i 77493_1139671907306.3pg -y -ar 22050 test.flv

      Does anyone have an idea about this? The option -r does not fix my problem.
      I use ffmpeg version 0.4.9-pre1, build 4718

      Thnaks alot and kind regards, hans

    49. Hans - February 11th, 2006 at 7:45 pm

      Ah, sorry. I need to add, that this tutorial helped me alot getting ffmpeg started ;)

    50. Sönke - February 11th, 2006 at 7:54 pm

      Hi Hans,
      i don’t know where the problem is. I would ask the ffmpeg-mailinglist.

    51. Hans - February 12th, 2006 at 11:42 am

      Hi Sönke,

      thanks for your quick answer. I should have checked out the latest version from the CVS-Repository in first place. After a little bit of struggeling with the make-process I compiled it and everything is running fine now.

      Kind regards, Hans

    52. Odders - February 16th, 2006 at 2:52 am

      Hi Sonke,

      Just wanted to thanks for the great info.

    53. aeropriest - February 16th, 2006 at 4:39 pm

      Thank you so much for great tutorial here. I have been trying to compile ffmpeg with AAC on windows. I followed everything as you explained but somehow ffmpeg failed to find the ffmpeg libraries. I am able to compile AAC and xvid sepertly and set the path. I used follwing configure command

      ./configure –enable-shared –disable-static –enable-memalign-hack –enable-
      faac –extra-cflags=-I/C/mplayer/msys/faac/include –extra-ldflags=-L/c/mplayer
      /msys/faac/libfaac/Debug

      but got the following build error

      make -C libavutil all
      make[1]: Entering directory `/ffmpeg/libavutil’
      gcc -shared -Wl,-soname,avutil.dll.49 -Wl,–output-def,avutil.def,–out-implib,libavutil.dll.a -o avutil.dll mathematics.o integer.o rational.o intfloat_readwrite.o -lm -lfaac -lz
      c:\mplayer\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lfaac
      collect2: ld returned 1 exit status
      make[1]: *** [avutil.dll] Error 1
      make[1]: Leaving directory `/ffmpeg/libavutil’
      make: *** [lib] Error 2

      I am sure you can help me here. Thanks in advance

    54. aeropriest - February 17th, 2006 at 6:45 am

      I could solve the problem by copying libfacc.dll into Mingw32 include directory i.e. MinGW/lib/gcc/mingw32/3.4.2 and use the following config to build ffmpeg with xvid and aac

      ./configure –enable-shared –disable-static –enable-memalign-hack –enable-
      xvid –enable-gpl –extra-cflags=-I/C/mplayer/msys/xvidcore/src –extra-ldflags
      =-L/C/mplayer/msys/xvidcore/build/win32/bin –enable-faac –extra-cflags=-I/C/
      mplayer/msys/faac/include –extra-ldflags=-L/c/mplayer/msys/faac/libfaac/Debug

      now i get following errors

      Cannot export .idata$4: symbol not found
      Cannot export .idata$5: symbol not found
      Cannot export .idata$6: symbol not found
      Cannot export .text: symbol not found
      Cannot export xvidcore_NULL_THUNK_DATA: symbol not found
      Creating library file: libavcodec.dll.a
      faac.o(.text+0×3f): In function `Faac_encode_init’:
      C:/mplayer/msys/ffmpeg/libavcodec/faac.c:42: undefined reference to `faacEncOpen@16′
      faac.o(.text+0×4c):C:/mplayer/msys/ffmpeg/libavcodec/faac.c:47: undefined reference to `faacEncGetCurrentConfiguration@4′
      faac.o(.text+0xdb):C:/mplayer/msys/ffmpeg/libavcodec/faac.c:88: undefined reference to `faacEncSetConfiguration@8′
      faac.o(.text+0×134):C:/mplayer/msys/ffmpeg/libavcodec/faac.c:80: undefined reference to `faacEncGetDecoderSpecificInfo@12′
      faac.o(.text+0×181):C:/mplayer/msys/ffmpeg/libavcodec/faac.c:50: undefined reference to `faacEncClose@4′
      faac.o(.text+0×1f5): In function `Faac_encode_frame’:
      C:/mplayer/msys/ffmpeg/libavcodec/faac.c:102: undefined reference to `faacEncEncode@20′
      faac.o(.text+0×224): In function `Faac_encode_close’:
      C:/mplayer/msys/ffmpeg/libavcodec/faac.c:119: undefined reference to `faacEncClose@4′
      collect2: ld returned 1 exit status
      make[1]: *** [avcodec.dll] Error 1

      I compiled faac using visual studio 7

    55. lasse - February 18th, 2006 at 8:42 pm

      hi, really good stuff both this and the riva gui!
      i do have problems with my ffmpeg install, as the sound comes out all distorted and uhm buzzy. ive installed amr_nb and lame. riva converts the file just fine though. ever noticed anything like this?

    56. stevewu - February 20th, 2006 at 2:42 pm

      thanks for your information on –enable-xvid.
      It is really helpful. there is nobody provided such information on internet exept here.
      I share some my experience on –enable-xvid here:
      First, I changed in ffmpeg configure:
      1, point to right xvidcore library directory:
      –enable-xvid) xvid=”yes”
      extralibs=”$extralibs -L/usr/local/lib -lxvidcore”
      2. if test “$?” != “0″ ; then
      rm config.h
      mv -f $TMPH config.h
      else
      echo “config.h is unchanged”
      fi
      because it can not mv to config.h.
      3. here is my configure command line:
      ./configure –disable-static –enable-shared –enable-memalign-hack –enable-
      xvid –enable-gpl –enable-mingw32 –extra-cflags=-I/local/include –extra-ldfl
      ags=-L/local/lib
      4.
      make change in xvidff.c and xvid_rc.c
      pointing xvid.h to right position.
      On my pc this is the case, different from PC to PC:
      #include “../../../../local/include/xvid.h”
      5.
      add the scripts mentioned above in xvidff.c
      6,make

    57. lasse - February 23rd, 2006 at 1:44 pm

      just found out why i got distorted buzz instead of the correct audio. turns out i needed to compile with amr_nb-fixed as well.

    58. Tvpeople - March 6th, 2006 at 11:13 pm

      There’s a space between “windows” and “.h” in your code.
      Just found that out cuz cp & paste didn’t work
      #include

    59. Sönke - March 7th, 2006 at 11:55 am

      Thanks for the hint but this is a problem of the blogsoftware I am using. I have to upgrade to a newer version but had no time yet.

    60. AaronYue - March 12th, 2006 at 8:30 am

      Does ffmpeg can convert the file with extends “.wmv”, what is the command line.

    61. Sönke - March 12th, 2006 at 11:23 am

      yes, but only wmv7/8.
      http://ffmpeg.sourceforge.net/ffmpeg-doc.html#SEC19

    62. msonsuz - March 13th, 2006 at 12:36 am

      For people who want to install faad2 on msys
      Download faad2 using cvs
      After downloading ./bootstrap then ./configure and finally make

    63. Kani - March 16th, 2006 at 6:19 pm

      Thanks Man! :) this is was so simple and powerful for me… got things get started….

      i get can not find video graber device?
      any idea about what i am missing?

      thanks
      Kani

    64. Sönke - March 16th, 2006 at 6:24 pm

      from what i know grabbing does not work under windows. to be sure i would ask in the ffmpeg mailinglist.

    65. Kani - March 17th, 2006 at 5:46 pm

      that’s fine!
      now i am able to covert the videos but there is no audio in my output flv, what i am missing? :(
      i have followed everything you said above…
      upto 6 …

      i didn’t do anything after 6
      ZLib Support (e.g. for TSCC and Quicktime codecs).

      please help me.

    66. Sönke - March 17th, 2006 at 6:03 pm

      Which command did you use.
      I would recommend asking this in the ffmpeg mailinglist.

    67. Andrea - March 22nd, 2006 at 11:29 am

      Great guide, I fololow it in all steps but when i digit make for compile ffmpeg I obtain
      this stack with 2 error at the end? can i resolve it? how? thanks
      $ make
      make -C libavutil all
      make[1]: Entering directory `/c/ffmpeg/libavutil’
      make[1]: Nothing to be done for `all’.
      make[1]: Leaving directory `/c/ffmpeg/libavutil’
      make -C libavcodec all
      make[1]: Entering directory `/c/ffmpeg/libavcodec’
      gcc -O3 -g -Wall -Wno-switch -I/local/include -Wdeclaration-after-statement -DHAVE_AV_CONFIG_H -I.. -I/c/ffmpeg/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mpegvideo.o mpegvideo.c
      In file included from c:/ffmpeg/libavutil/avutil.h:24,
      from avcodec.h:14,
      from mpegvideo.c:28:
      c:/ffmpeg/libavutil/common.h:596: warning: static declaration of ‘lrintf’ follows non-static declaration
      mpegvideo.c: In function `MPV_encode_picture’:
      c:/ffmpeg/libavutil/common.h:596: sorry, unimplemented: inlining failed in call to ‘lrintf’: redefined extern inline functions are not considered for inlining
      mpegvideo.c:2554: sorry, unimplemented: called from here
      make[1]: *** [mpegvideo.o] Error 1
      make[1]: Leaving directory `/c/ffmpeg/libavcodec’
      make: *** [lib] Error 2

    68. Sönke - March 22nd, 2006 at 11:35 am

      Did you use the latest CVS version?
      I would recommend asking this in the ffmpeg mailinglist.

    69. Andrea - March 22nd, 2006 at 1:09 pm

      i use the WinCVS 2.0.2.4 build 4 and for download ffmpeg i use the string that you have posted

    70. Derek - March 24th, 2006 at 5:22 am

      i have installed ffmpeg and lame in Linux, and enabled mp3lame using ./configure –enable-mp3lame, but i still got a message like “Unsupported codec for output stream #0.0″ when i trying to transfer a .wmv file or .wav file to mp3. any idea?

      the whole messages are:

      [root@xl2 ffmpeg-0.4.9-pre1]# ffmpeg -i input/kids.wav -acodec mp3 zz.mp3
      ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard
      built on Mar 22 2006 13:19:59, gcc: 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
      Input #0, wav, from ‘input/kids.wav’:
      Duration: 00:01:26.6, bitrate: 88 kb/s
      Stream #0.0: Audio: pcm_u8, 11025 Hz, mono, 88 kb/s
      Output #0, mp2, to ‘zz.mp3′:
      Stream #0.0: Audio: 0×0000, 11025 Hz, mono, 64 kb/s
      Stream mapping:
      Stream #0.0 -> #0.0
      Unsupported codec for output stream #0.0

    71. Derek - March 24th, 2006 at 5:26 am

      lame is woking fine in my Linux and i can transfer a .wav file to .mp3 useing command lame kids.wav test.mp3.

      and in /usr/local/lib/ directory, i can see :

      libmp3lame.la
      libmp3lame.so -> libmp3lame.so.0.0.0
      libmp3lame.so.0 -> libmp3lame.so.0.0.0
      libmp3lame.so.0.0.0

      please help me.

    72. Andrew - March 25th, 2006 at 6:34 am

      Derek, do you receieve any linking errors when you compile with the lame lib files? - my only concern is, is that its not actually linking into the ffmpeg executable, - have you tried to convert from wave to mp3 using just the lame binary? and if so does it work

    73. edward - March 30th, 2006 at 7:33 pm

      I have no idea about these,
      I just follow the ZLib support then make again.

      C:/msys/1.0/home/Administrator/ffmpeg/qt-faststart.c:152: undefined reference to `fseeko64′
      C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccg5baaa.o(.text+0×516):C:/msys/1.0/home/Administrator/ffmpeg/qt-faststart.c:164: undefined reference to `fseeko64′
      C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccg5baaa.o(.text+0×51e):C:/msys/1.0/home/Administrator/ffmpeg/qt-faststart.c:16

    74. Ken - April 1st, 2006 at 1:05 am

      an alternative is
      int mkstemp(char* template)
      {
      mkstemps(template,0);
      }

      then add the library libiberty ( -liberty )

      gcc -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mtune=pentium3 -p
      ipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
      -I. -Ig:/MinGW/include/freetype2 -Ig:/MinGW/include -I./libavutil -
      I./libavcodec -o mplayer.exe mplayer.o m_property.o mp_msg.o asxparser.o code
      c-cfg.o cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o parser-cf
      g.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarli
      b.o mixer.o parser-mpcmd.o subopt-helper.o osdep/mplayer-rc.o libvo/libvo.a li
      bao2/libao2.a vidix/libvidix.a libmpcodecs/libmpcodecs.a loader/libloader.a l
      oader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a libaf/libaf.a libmpdemux/
      libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvd
      kit2 -lmpdvdkit libavcodec/libavcodec.a libavformat/libavformat.a libavutil/l
      ibavutil.a libavcodec/libpostproc/libpostproc.a -ltheora -lmp3lame -lxvi
      dcore -lpng -lz -static -lz -ljpeg -lx264 -Lg:/MinGW/lib -lfreetype /m
      ingw/share/live//liveMedia/libliveMedia.a /mingw/share/live//groupsock/libgroup
      sock.a /mingw/share/live//UsageEnvironment/libUsageEnvironment.a /mingw/share/l
      ive//BasicUsageEnvironment/libBasicUsageEnvironment.a -lstdc++ -lws2_32 -lgdi
      32 -lgdi32 -lwinmm -ladvapi32 -lole32 -lungif libfaad2/libfaad2.a mp3li
      b/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a -static
      -lopengl32 -lgdi32 -lws2_32 -static -liconv -lm -liberty

    75. Ken - April 1st, 2006 at 1:07 am

      sorry

      int mkstemp(char* template)
      {
      return mkstemps(template,0);
      }

    76. ryuken - April 6th, 2006 at 2:34 pm

      How can I use FFMPEG libs to create jpg files from a video file?

      I have write some code to get a frame from video, but I do not know how to convert this frame to a jpeg file. I have tryed to convert FFMPEG AVFrame to a GD gdImage, and then save this GD gdImage to a jpeg file(ffmpeg-php use this kind of method), but the jpeg file I generated is incorrect.

      Can you help me? thanks a lot.

    77. Sönke - April 6th, 2006 at 3:49 pm

      you can extract the first image with
      ffmpeg -an -y -t 0:0:0.001 -i test.flv -f image2 test%d.jpg
      without -t 0:0:0.001 all frames are extraced.

    78. swansun - April 11th, 2006 at 8:05 pm

      i have installed ffmpeg into my linux system.

      and i am able to covert the videos,

      but there is no audio in my output flv, what i am missing?

      what’s wrong ?

      here are my commands , but both can’t create the flv file with audio . can u help me ? :(
      thank you!

      ffmpeg -i test.mpg -ab 56 -ar 22050 -b 500 -r 15 -s 320×240 test.flv

      ffmpeg -i test.mpg test.flv

    79. swansun - April 11th, 2006 at 8:22 pm

      i have enabled AC5 in config command line already

    80. Keynes - April 12th, 2006 at 2:50 am

      ffmpeg -i amc.avi amc.flv

      But amc.flv there is no audio in it, I don’t know why… who can tell me, thanks!!!!!

      liukai-1982.5.11@vip.citiz.net

      Thanks!!!

    81. - April 12th, 2006 at 3:55 am

      在学校的时English没有好好学,现在看不懂洋鬼子的文章,哪个好心看的懂中文的人加加我教小弟一下..
      QQ:925483

    82. swansun - April 12th, 2006 at 4:42 am

      Keynes , i get the same thing with you .
      there is no audio in my flv file .
      i’m using redhat linux , and found that the soundcard can’t be initialized correctly .

      is that the reason ?? not sure …

      can somebody tell me ? thanks !

    83. Sönke - April 12th, 2006 at 9:17 am

      Hi,
      if you have problems with ffmpeg-commands I recommend asking the ffmpeg-mailinglist.

    84. Phani - May 3rd, 2006 at 1:06 pm

      I want convert JPEG,GIF,WBMP files formats to various resolutions of JPEG formats. Can u suggest me how I can do in java?

    85. Sönke - May 3rd, 2006 at 1:27 pm

      No idea, sorry

    86. xiaosheng - May 18th, 2006 at 10:00 am

      Keynes , i get the same thing with you .
      there is no audio in my flv file .
      i’m using redhat linux , and found that the soundcard can’t be initialized correctly

    87. Sönke - May 18th, 2006 at 10:02 am

      again, this is a tutorial for compiling ffmpeg under windows. for such specific questions i recommend the ffmpeg-mailinglist.

    88. chuanying - May 24th, 2006 at 9:44 am

      how to convert avi(yuv422p mjpeg) to avi(simple profile no b frames)

    89. chuanying - May 25th, 2006 at 5:50 am

      how to compile ffmpeg.c under mingw studio developer?
      please tell me how to setup lib or h?thx.

    90. Paul Berry - June 2nd, 2006 at 3:38 pm

      Hi guys — is it possible to download a copy of FFMPEG that is already compiled to have LAME enabled? It would be awesome, not sure if its possible, sorry i’m very new to this

      Thanks!!
      Paul

    91. Paul Berry - June 2nd, 2006 at 8:49 pm

      Ok so also — CODE:
      cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg

      This part returns to me that the server is actively refusing the connection. it seems that that server is down, is there an alternative out there?

    92. jinquan - June 9th, 2006 at 3:27 pm

      First off, thanks for sharing this. This step-by-step is awesome.

      I got
      MinGW-3.1.0-1
      MSYS-1.0.10
      lame-3.97
      FFMPEG - got it from TortoiseSVN and input the link on ffmpeg(svn://svn.mplayerhq.hu/ffmpeg/trunk)(i can’t get it from step 3)

      Following the steps, but got stuck when try to “make” ffmpeg with following error

      mp3lameaudio.c:27:23: lame/lame.h: No such file or directory
      mp3lameaudio.c:31: parse error before “lame_global_flags”
      mp3lameaudio.c:31: warning: no semicolon at end of struct or union
      mp3lameaudio.c:35: parse error before ‘}’ token
      mp3lameaudio.c:35: warning: type defaults to `int’ in declaration of `Mp3AudioContext’
      mp3lameaudio.c:35: warning: data definition has no type or storage class
      mp3lameaudio.c: In function `MP3lame_encode_init’:
      mp3lameaudio.c:39: `s’ undeclared (first use in this function)
      mp3lameaudio.c:39: (Each undeclared identifier is reported only once
      mp3lameaudio.c:39: for each function it appears in.)
      mp3lameaudio.c:46: warning: implicit declaration of function `lame_init’
      mp3lameaudio.c:48: warning: implicit declaration of function `lame_set_in_samplerate’
      mp3lameaudio.c:49: warning: implicit declaration of function `lame_set_out_samplerate’
      mp3lameaudio.c:50: warning: implicit declaration of function `lame_set_num_channels’
      mp3lameaudio.c:52: warning: implicit declaration of function `lame_set_quality’
      mp3lameaudio.c:54: warning: implicit declaration of function `lame_set_mode’
      mp3lameaudio.c:54: `JOINT_STEREO’ undeclared (first use in this function)
      mp3lameaudio.c:55: warning: implicit declaration of function `lame_set_brate’
      mp3lameaudio.c:58: warning: implicit declaration of function `lame_set_VBR’
      mp3lameaudio.c:58: `vbr_default’ undeclared (first use in this function)
      mp3lameaudio.c:59: warning: implicit declaration of function `lame_set_VBR_q’
      mp3lameaudio.c:61: warning: implicit declaration of function `lame_set_bWriteVbrTag’
      mp3lameaudio.c:62: warning: implicit declaration of function `lame_init_params’
      mp3lameaudio.c:65: warning: implicit declaration of function `lame_get_framesize’
      mp3lameaudio.c:73: warning: implicit declaration of function `lame_close’
      mp3lameaudio.c: In function `MP3lame_encode_frame’:
      mp3lameaudio.c:139: `s’ undeclared (first use in this function)
      mp3lameaudio.c:147: warning: implicit declaration of function `lame_encode_buffer_interleaved’
      mp3lameaudio.c:155: warning: implicit declaration of function `lame_encode_buffer’
      mp3lameaudio.c:165: warning: implicit declaration of function `lame_encode_flush’
      mp3lameaudio.c: In function `MP3lame_encode_close’:
      mp3lameaudio.c:201: `s’ undeclared (first use in this function)
      make[1]: *** [mp3lameaudio.o] Error 1
      make[1]: Leaving directory `/home/ffmpeg/libavcodec’
      make: *** [lib] Error 2

      Anyone has an idea?

    93. Mike - June 11th, 2006 at 5:00 pm

      My files are being converted …. but they output with a 0kb file size… none of the videos work.. but they do output to that 0kb file size.. What could be the problem?

    94. Daveren - June 12th, 2006 at 5:26 am

      Also I’m not really familiar with MSYS and MinGW. Using them can I compile ffmpeg so that I can used it on Debian?

      Thanks for your help!

      Daveren

    95. Daveren - June 12th, 2006 at 5:55 am

      This seems to be the best place for information on ffmpeg. Thanks Sonke!

      I’m using Debian and I’m installing all my packages using apt-get. But I can’t figure out where the ffmpeg directory has been created. So I’m having a hard time trying to figure out how to configure ffmpeg to work with lame. Does anybody have any idea how to do this.

      Thanks in advance for any help that anybody can provide!

      Daveren

    96. nick - June 17th, 2006 at 7:43 pm

      I have some problem:
      ffmpeg -i xxx.3gp -ss 00:00:05 -t 00:00:01 -s 100×100 -r 1 -f jpeg image%d.jpg
      I got
      Unknown input or output format: jpeg

      Anyone has an idea?

    97. Sönke - June 18th, 2006 at 8:41 am

      I am not sure but try “-f mjpeg”

    98. nick - June 18th, 2006 at 9:34 am

      Thnx, it works :)

    99. 我不是小白 - July 9th, 2006 at 4:02 am

      [FLASH]Flash视频播放…

      看了土豆的视频播放,了解了一下基于Flash的视频解决方案。大致就是把各种格式的视频上传到服务器后进行转化成flv文件,然后用Flash播放。
      查了一下目前转换格式的方案,如下:
      客户端…

    100. zwei1121 - July 15th, 2006 at 7:19 am

      Flash 视频(FLV)编码,转换,录制,播放方案一网打尽…

      Flash 视频(FLV)编码,转换,录制,播放方案一网打尽…

    101. 如来 - July 21st, 2006 at 10:42 am

      Flash 视频(FLV)编码,转换,录制,播放方案一网打尽…

      Collected links to Flash Video Encoding Tools …

    102. IT快餐——–发现,分享,关注互联网 » 7-31 - July 31st, 2006 at 5:18 am

      [...] http://www.xvid.org/downloads.html http://soenkerohde.com/tutorials/ffmpeg/ [...]

    103. suilam - August 31st, 2006 at 7:24 am

      Flash 视频(FLV)编码,转换,录制,播放方案一网打尽…

      Flash 视频(FLV)编码,转换,录制,播放方案一网打尽…

    104. Jeyaseelan - October 11th, 2006 at 2:01 pm

      Hi,
      This surely helped me lot for working in command line to create thumnail from video files

    105. Sruthi - October 12th, 2006 at 12:53 pm

      Hi dudes,

      We need to convert video files into flash files.for this we are using ffmpeg.Can anyone suggest me how can we use ffmpeg in asp and in windows enviornment.we used riva encoder it woirked fine but we need to embed in our server so that whenever user uploads it will automatically will convert into .flv files.can anyone please guide me.

    106. niying - October 14th, 2006 at 8:03 am

      How to disable the version of the output filename?
      as:avcodec-51.17.0.dll->avcodec.dll
      In the last version it output three the same file but except the version, it must out put them? Can i only output one usefull file? THX!

    107. Meteo - October 26th, 2006 at 7:05 pm

      Luogo interessante, buon disegno, lo gradisco, signore! =)

    108. Jeff - November 1st, 2006 at 5:15 am

      Is there any way you guys could put together an “idiots guide to installing ffmpeg on windows”??
      This tutorial is all giberish to me :)

    109. Sönke - November 1st, 2006 at 3:12 pm

      Sorry but this is free information which I produced in my freetime.
      If you look for commercial consulting drop me a mail.

    110. Ferran - November 6th, 2006 at 11:29 am

      Hello! Thanks for this post I think it is very useful!
      I have a problem converting a video to FLV. The audio is not included in flv file. Below you can find the FFMPEG output:
      command: ffmpeg -i test.mpg -ab 56 -ar 22050 -b 500 -r 15 -s 320×240 test.flv

      FFmpeg version SVN-r6891, Copyright (c) 2000-2006 Fabrice Bellard, et al.
      configuration: –enable-shared –disable-static –enable-memalign-hack –enable-amr_wb –enable-amr_nb
      libavutil version: 49.0.2
      libavcodec version: 51.24.0
      libavformat version: 51.6.0
      built on Nov 6 2006 10:56:33, gcc: 3.4.5 (mingw special)
      Input #0, mpeg, from ‘test.mpg’:
      Duration: 00:00:01.8, start: 0.000000, bitrate: 1802 kb/s
      Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352×288, 104857 kb/s, 25.00 fps(r)
      Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, stereo, 64 kb/s
      Output #0, flv, to ‘test.flv’:
      Stream #0.0: Video: flv, yuv420p, 320×240, q=2-31, 0 kb/s, 15.00 fps(c)
      Stream mapping:
      Stream #0.0 -> #0.0 frame= 77 q=31.0 Lsize= 79kB time=5.1 bitrate= 126.4kbits/s video:78kB audio:0kB global headers:0kB muxing overhead 1.752008%

      I think AMR audio codec is properly enabled because it appears when I run “ffmpeg -formats”.

      Thanks for your help.

    111. Ferran - November 6th, 2006 at 12:06 pm

      Sorry for previous question. I solved the problem. I had not mp3 lame enabled.

    112. Simon - November 10th, 2006 at 1:25 pm

      How come when i try to execute ./configure the console says “./configure exec: bash: not found”

    113. Sönke - November 10th, 2006 at 2:21 pm

      Check the tutorial I linked at the beginning of my tutorial (Update …)

    114. YannX - November 22nd, 2006 at 10:19 am

      About Riva FLV Encoder 2.0, I’ve found a bug about ffmpeg not detecting ac3 audio format when trying to convert an mpeg to FLV vidéo.

      I’ve tried with an other ffmpeg.exe but it doesn’t accept the -hq ans the quality is really poor !!!

      Any idear ?

      Thanks in advance

    115. Sönke - November 22nd, 2006 at 8:00 pm

      -hq is not supported in the latest ffmpeg-builds.
      I am afraid this could only work if the Riva FLV Encoder get an update because -hq is set by default.

    116. YannX - November 23rd, 2006 at 10:20 am

      Thanks a lot Sönke for your quick answer !

      Yes , I’ve seen that Riva FLV Encoder put the -hq in the command line.
      For testing, I’ve remove the -hq in the file “encode.bat” generate, and then it works but the quality is really poor !!
      So I’m asking me how to keep a good quality without the -hq option …

      Thanks again.

    117. Sönke - November 23rd, 2006 at 7:55 pm

      Hi YannX,

      sorry, but I have no idea and I would recommend your ask in the ffmpeg mailing list.

    118. michael galon - December 1st, 2006 at 11:25 am

      Hi,

      Please help me. When i convert my movie file(wmv,mpg etc) to flv, it doesnt have a sound/audio. I already install LAME, mencoder. I follow this line:

      ffmpeg -i test.mpg -ab 56 -ar 22050 -b 500 -r 15 -s 320×240 test.flv

      Thanks,

      mike

    119. Sönke - December 1st, 2006 at 6:55 pm

      Please ask in the ffmpeg mailinglist.

    120. michael galon - December 1st, 2006 at 10:06 pm

      Hi,

      ok thanks, But just for an info. I think avi, wmv wont be properly converted since it is made from windows. I try to install a ffmpeg to windows and generated .flv works fine. I already triend install a LAME and MPlayer to my CENTOS box but still no sounds. Thanks anyways.

      mke

    121. Zaid Crowe - December 2nd, 2006 at 7:45 pm

      Hey Guys,
      When i got to ./configure ffmpeg from MSYS im returned the following error:

      No compatible shell script interpreter found
      The configure script requires a POSIX compatible shell such as bash or ksh
      This bash version (2.04.0.(1)-release)is broken on your platform.
      Upgrade to a later version if available.

      Im not evern sure where to start with this…anyone help :???

    122. Zaid Crowe - December 3rd, 2006 at 2:41 am

      Well…firstly thansk for a great tute…I got this working, at least locally.

      Im trying to run this from a web server now, sending the command line option using PHP.

      For some reason, its seems to work (the videos encoded!) But my browser out puts:
      CGI Error
      The specified CGI application misbehaved by not returning a complete set of HTTP headers.

      I cant work this out at alll…any help?

    123. Sönke - December 3rd, 2006 at 10:36 am

      Hi,

      I did not try it but this looks promising: http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2006-October/004773.html

    124. Dominique Vergin - December 4th, 2006 at 3:11 pm

      Hi,
      thanks for this great tutorial…
      Well, i needed some days to compile ffmpeg and all the needed libraries on my Windows-Machine (cause im not familar with MSYS & MINGW).
      But now i’ve made my first stable build today (from SVN revision 7218) including avisynth-support and lame-mp3 encoding.

      Feel free to download my build here: http://vergin.org/files/FFInstall.exe

      greetings,
      Dominique ;)

    125. dosibule - December 6th, 2006 at 4:04 am

      nice job !

    126. krig - December 7th, 2006 at 9:24 pm

      LAME installed successfully, but when I try to configure ffmpeg I get error =(

      krig@KRIG-LAPTOP /ffmpeg_svn
      $ ./configure –enable-memalign-hack –enable-mingw32 –enable-mp3lame –extra-
      cflags=-I/local/include –extra-ldflags=-L/local/lib
      No compatible shell script interpreter found.
      This configure script requires a POSIX compatible shell
      such as bash or ksh.
      This bash version (2.04.0(1)-release) is broken on your platform.
      Upgrade to a later version if available.

    127. Dominique Vergin - December 8th, 2006 at 1:05 pm

      @krig: you have to use a bash > 2.04 for MSYS.
      this one works fine: bash-3.1-MSYS-1.0.11-snapshot.tar.bz2

    128. noom » Blog Archive » FFMPEG - December 16th, 2006 at 10:47 am

      [...] FFMPEG Sunday 27 February 2005 @ 2:22pm [...]

    129. vinayak - December 23rd, 2006 at 8:17 am

      I tried with given command but did not found audio with
      flv converted file.Can anybody help me?

    130. Paul - January 2nd, 2007 at 4:43 pm

      Please help me!!!I have successfully compiled ffmpeg, but how can I add ,ffmpeg support(ffmpeg-php) extension to my PHP 5.1.6. I am working under Windows XP. I compiled and built ffmpeg under Msys+MingW.Please help me!!!

    131. Sönke Rohde - January 2nd, 2007 at 5:46 pm

      Hi Paul,

      sorry but this is no support forum. please use the ffmpeg mailinglists for this purpose.

    132. Krishna - February 1st, 2007 at 9:17 am

      hi I am using ffmpeg in debian I stuck in a problem regarding conversion of 3gp, mov and avi. plzz tell me the proper command for linux.

    133. Sönke - February 1st, 2007 at 9:29 am

      as I am not a linux user it would make sense to ask in the ffmpeg mailinglist

    134. zubin - February 12th, 2007 at 6:41 am

      great one and the code worked too.I made thumbnails and also converted movie to .flv format

    135. ZRong and Orphen’s Blog - 正文 - 两个免费转换视频的软件,实现服务器端Video2FLV - RIA,Flash,FCS,FMS,Office,Flash Media Server,ASP.net - February 25th, 2007 at 3:59 am

      [...] FFMPEG tutorial(英文) [...]

    136. jonbarton.net - FFMpeg Executables in a Zip - March 7th, 2007 at 6:25 am

      [...] weblink Posted on Wednesday, March 7th, 2007 at 1:58 am In Uncategorized | Comments RSS [...]

    137. Andrea - March 8th, 2007 at 5:22 pm

      Hi,
      I’m trying to use ffmpeg launching it from java. Though I’m able to use it from the command line, I receive the following error from Java

      Executing c:\ffmpeg.exe -i c:\test.mov -b 40k -r 10 -s qcif -target pal-vcd c:\test.3gp
      ERROR>FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
      ERROR> configuration: –enable-memalign-hack –extra-cflags=-I/local/include –extra-ldflags=-L/local/lib
      ExitValue: 1
      ERROR> libavutil version: 49.3.0
      ERROR> libavcodec version: 51.38.0
      ERROR> libavformat version: 51.10.0
      ERROR> built on Mar 6 2007 12:40:35, gcc: 3.2.3 (mingw special 20030504-1)
      ERROR>c:\ffmpeg.exe: unrecognized option ‘-i c:\test.mov’

      Please help me!!

    138. Sönke - March 8th, 2007 at 6:59 pm

      sorry but this is no support forum. please use the ffmpeg mailinglists for this purpose.

    139. Kreez - April 7th, 2007 at 9:42 pm

      Hi Soenke,

      Great Work !! The info that u’ve published is helping me a lot.
      I am a newbie to video encoding - audio encoding stuff .
      I know that u’ve mentioned it a cpl of times earlier as a response that this isn’t a support forum but pls can u just write in the command to generate an flv output from two or more video[mpg ..] files using ffmpeg.

      I want to concatenate two video files and write an flv output.

      Any help would be greatly appreciated.

      Thanks in Advance.

      Kreez.

    140. Sönke - April 10th, 2007 at 4:03 pm

      I do not know the exact command and recommend searching the ffmpeg maillinglist archive. I remember that this usecase was mentioned a few times.

    141. How to convert video files to Flash video - April 12th, 2007 at 11:15 am

      [...] All three use the excellent ffmpeg tool, which is available for all major operating systems. Sönke Rohde wrote a nice tutorial on how to use it to convert videos to flash video files. Although that particular tutorial is for Windows users, it is still relevant for Mac and Linux. [...]

    142. Wie man Videos in Flash Videos konvertiert - April 12th, 2007 at 11:30 am

      [...] Alle drei Tools basieren auf der freien ffmpeg Software, welche es für alle Betriebssysteme gibt. Sönke Rohde hat eine gute Anleitung (auf Englisch) zum Thema Flash Video konvertierung geschrieben, welches nicht nur für Windows Nutzer zutreffend ist. [...]

    143. Rahul - April 17th, 2007 at 1:29 pm

      Hello,

      This was really helpful to me but i have doubt in it after creating a flv file from mpeg, when extracting a screen shot it extracts a .jpg file of the same dimensions as the flv file is their any method or any parameter to use to specify my own parameters in the command

      ffmpeg -an -y -t 0:0:0.001 -i test.flv -f image2 test%d.jpg .

      ie. i want a screen shot of 50×50 dimension

      thank you for ur help in advance

    144. Sönke - April 17th, 2007 at 6:54 pm

      Execute ffmpeg.exe in the command line and you see all options. There is the option -s for size and also an option -img to specify an image format.

    145. George - April 19th, 2007 at 3:03 am

      When I compile ffmpeg in mingw32,How to configure ffmpeg to support with vhook?
      Thanks a lot for your help

    146. Sönke - April 19th, 2007 at 8:58 am

      George, I would recommend you ask the ffmpeg mailinglist

    147. alleluia - May 10th, 2007 at 10:02 pm

      Hey thanks for the tuto.

      I haven’t finished yet. I reach to compile lame!
      But as i didn’t find solution on internet for my compilation problem and get it done, yeah i feel really good, here is some help:

      I had this error for make:
      ../libtool: cygpath: command not found

      so i re-install msys and minGW out of Program Files directory. The space was to much possibility of path difficulty. to be sure i re-install cygwin too. All this in c:/dev/.

      From that i followed your instruction and it works!
      thank you all.

    148. Videos zu Flash-8-FLV-Dateien konvertieren unter Linux - TP Hilfe Forum - May 15th, 2007 at 12:13 pm

      [...] Da gibt es doch was von … klick __________________ Gru

    149. Mert - May 17th, 2007 at 8:26 am

      First of all I would like to thank you for this great tutorial. The original ffmpeg does not seem to output any good information while converting video files. Its hard to track for errors and I would like the change how this works since I’ll be calling ffmpeg from my application and I need to know if the video is converted successfully or not. What is your suggestion? Where should I start?

    150. FFMPEG » Gone with the wind - June 6th, 2007 at 5:15 pm

      [...] FFMPEG  by Sönke [...]

    151. ShowMeDo Blog » Blog Archive » Compiling ffmpeg on RedHat - July 16th, 2007 at 11:27 pm

      [...] For the makefile to see the source and libs for libmp3lame I had to read-up on adding cflags and ldflags to the configure line: [...]

    152. Mart - August 1st, 2007 at 10:08 am

      Hi,
      I have this error, I can’t encode videos with sound :

      linux-1vl9:/home/chirac/ffmpeg/ffmpeg # ./configure –enable-shared –prefix=/usr –enable-mp3lame
      Unknown option “–enable-mp3lame”.
      See ./configure –help for available options.

      I cannot configure ffmpeg with mp3lame, I know lame is installed, the command lame is ok.

      What should I do ?

    153. Alex - August 2nd, 2007 at 1:23 am

      Hi,
      I’d install ffmpeg with faac, faad, lame, etc support. avi, mpg, wmv converting to flv without problems. but I cant convert mov to flv.
      I’m trying:
      ffmpeg -i 772581Soshiok19mb.mov -ar 44100 -acodec mpeg4aac test.flv
      I’m get:
      [libfaac @ 0x818894]libfaac doesn’t support this output format!
      Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
      Stream #0.0(eng): Audio: mpeg4aac, 48000 Hz, stereo
      Stream #0.1(eng): Video: rpza, rgb555, 220×176, 7.99 fps(r)

      Also I tried:
      ffmpeg -i 772581Soshiok19mb.mov -ar 44100 -y test.flv
      Got:
      much of “faac: frame decoding failed: Unexpected channel configuration change
      Error while decoding stream #0.0
      ” errors

      What should I do?

    154. andre - August 21st, 2007 at 4:42 am

      its libmp3lame

    155. Anders - August 23rd, 2007 at 4:31 pm

      Has anyone successfully compiled ffmpeg has a lib instead of a exe-file?

      I would like to call the Main method directly from my own program instead of calling it from the cmd

    156. seb - September 20th, 2007 at 2:26 am

      mpeg to flash with ffmpeg worked w/ copy and paste.
      thank you very much.

    157. Prabhu - October 5th, 2007 at 12:03 pm

      Hi,
      I need lame.exe file.I searched it. I got lame-3.97 & lame-3.92. but these two things doesnt contain lame.exe
      file.Because I want compile that file.Because already i did installation of MinGw & Msys.I want to compile lame.exe.Please give me right passage to this one.

    158. Prabhu - October 5th, 2007 at 12:29 pm

      Hi,
      I want to compile lame.exe file. I have got two things
      like lame-3.92 & lame-3.97.I dont know how to compile lame.exe and where that lame.exe file ll be resides on folder.As soon as possible please give me right solution…

    159. Prabhu - October 5th, 2007 at 1:03 pm

      Hi,
      I am not familar with ffmpeg concepts. How to extract lame to my Msys home directory.Please give me right solution to me and where do i write the following things
      like “Enter the following commands:
      CODE:

      1. ./configure //(takes a few minutes)
      2. make //(lame is being comiled; takes a few minutes, too)
      3. make install”
      Please give me right solution…

    160. Sönke - October 5th, 2007 at 1:52 pm

      Lame itself has nothing to do with ffmpeg. it can be compiled into ffmeg. just download the lame sourcecode and extract it to the directoy where you installed msys and there into the subdirectory where you home dir is located. Then follow my tutorial.

    161. Prabhu - October 8th, 2007 at 3:55 pm

      Hi,
      I got the err when I was configured Lame in msys.

      ERR:
      $ ./configure
      creating cache ./config.cache
      checking host system type… i686-pc-mingw32
      checking target system type… i686-pc-mingw32
      checking build system type… i686-pc-mingw32
      checking cached system tuple… ok
      checking for a BSD compatible install… /bin/install -c
      checking whether build environment is sane… yes
      checking for mawk… no
      checking for gawk… gawk
      checking whether make sets ${MAKE}… yes
      checking whether to enable maintainer-specific portions of Makefiles… no
      checking for style of include used by make… GNU
      checking for ranlib… :
      checking for gcc… no
      checking for cc… no
      configure: error: no acceptable cc found in $PATH

      Please how can i rectify that err let me know. I need it urgently.

    162. Prabhu - October 9th, 2007 at 5:58 am

      hi,
      I got subversion package.I dont know how to install and
      where to install. Please give me right solution.

    163. Prabhu - October 9th, 2007 at 9:19 am

      Hi,
      please help me.
      I downloaded subversion.I dont know how to install.
      I am doing step 3. but i could not do.please guide me.

      Download Subversion Client like Tortoise SVN (http://http://tortoisesvn.tigris.org/) and install it

      Check out the sourcecode from svn://svn.mplayerhq.hu/ffmpeg

    164. Sönke - October 9th, 2007 at 10:55 am

      Then please check the subversion manual for this and the Lame mailinglist for your Lame problems.

    165. Prabhu - October 10th, 2007 at 2:11 pm

      Hi,
      Thank you your help. I have Installed subversion.but I dont know the following step.

      “Check out the sourcecode from svn://svn.mplayerhq.hu/ffmpeg ”

      What Should i do? How can I accomplish thrid step.Pls guide me.

    166. Sönke - October 10th, 2007 at 3:03 pm

      subversion comes with help so please check it there how how can check out projects.

    167. Prabhu - October 13th, 2007 at 2:57 pm

      Hi,
      When i do fourth step i got the err and like,

      $ ./configure –enable-memalign-hack –enable-mingw32 –enable-mp3lame –extra-cflags=-I/local/include –extra-ldflags=-L/lo
      cal/lib
      Broken shell detected. Trying alternatives.
      Trying shell bash
      Trying shell ksh
      Trying shell /usr/xpg4/bin/sh
      No compatible shell script interpreter found.
      This configure script requires a POSIX-compatible shell
      such as bash or ksh.
      THIS IS NOT A BUG IN FFMPEG, DO NOT REPORT IT AS SUCH.
      Instead, install a working POSIX-compatible shell.
      Disabling this configure test will create a broken FFmpeg.
      This bash version (2.04.0(1)-release) is broken on your platform.
      Upgrade to a later version if available.

      What should i do resolve? How can i resolve this err.Please guide me.

    168. Danny - October 31st, 2007 at 2:57 am

      Prabhu, you need to use a newer version of bash shell, i.e. bash3.1. It can be downloaded from http://prdownloads.sourceforge.net/mingw/bash-3.1-MSYS-1.0.11-snapshot.tar.bz2?download

      BTW, I would recommend a very detailed tutorial at http://arrozcru.no-ip.org/ffmpeg_wiki/tiki-index.php?page=HomePage

      Cheers,
      -Danny

    169. Cheap Web Hosting - November 4th, 2007 at 5:57 am

      When I used FFMPEG only a part of file is converted. how to change the length of file to be converted.

    170. ffmpeg hakk - November 8th, 2007 at 3:01 am

      [...] FFMPEG kurulumu? - Zoque.Forum ayn

    171. Thank you - November 12th, 2007 at 2:22 pm

      Thank you for your help! I managed to get it going thanks to this guide :) I did however get the same problem as listed about “Broken shell detected. Trying alternatives…” so I compiled an older version and that worked fine!

    172. xVisage - December 10th, 2007 at 6:48 pm

      For Prabhu:
      Download updated bash for MSYS from:
      http://sourceforge.net/project/showfiles.php?group_id=2435

      right now, last version is bash-3.1-MSYS-1.0.11-1.tar.bz2

      Copy bash-3.1-MSYS-1.0.11-1.tar.bz2 to c:\msys\1.0 and extract it (bash.exe should go into C:\MSYS\1.0\bin).
      You need to do this because ffmpeg’s configure script doesn’t work with bash 2.0.4 that comes with MSYS.

    173. Internet TV Blog » Blog Archive » Make your own YouTube Clone using Free and Open Source software - February 18th, 2008 at 8:42 pm

      [...] Sönke Rohde’s Tutorial on Transcoding Video with FFmpeg [...]

    174. Eric - March 16th, 2008 at 8:02 pm

      when i configure lame it gives me a load of errors. is this compatible with windowsxp?

      $ lame-3.97/configure
      checking build system type… i686-pc-mingw32
      checking host system type… i686-pc-mingw32
      checking for a BSD-compatible install… /bin/install -c
      checking whether build environment is sane… yes
      checking for gawk… gawk
      checking whether make sets $(MAKE)… yes
      checking whether to enable maintainer-specific portions of Makefiles… no
      checking for style of include used by make… GNU
      checking for gcc… gcc
      checking for C compiler default output file name… configure: error: C compiler cannot create executables
      See `config.log’ for more details.

    175. Jake - March 21st, 2008 at 2:29 pm

      I followed this tut. step by step, compiled LAME as described, but when I try to compile ffmepg with:
      ./configure –enable-memalign-hack –enable-mingw32 –enable-mp3lame –extra-cflags=-I/local/include –extra-ldflags=-L/local/lib
      I get:
      Unknown option “–enable-mingw32″
      Unknown option “–enable-mp3lame”

      How do i fix this?

    176. danceguy - April 6th, 2008 at 8:26 am

      Jake: Try –enable-mingw32 (one extra dash) !

    177. hehe - April 27th, 2008 at 1:43 pm

      No voice ??

      //————————————————–

      [root@localhost temp]# ffmpeg -i 86Machi_Shirakawa.3gp -y -ab 56 -ar 11025 -ac 2 -qscale 9 -t 900 -r 15 -s 320*240 86Machi_Shirakawa.flv
      FFmpeg version SVN-r7763, Copyright (c) 2000-2006 Fabrice Bellard, et al.
      configuration: –prefix=/usr –enable-gpl –enable-shared –enable-mp3lame –enable-amr_nb –enable-amr_wb –enable-amr_if2 –enable-libogg –enable-vorbis –enable-xvid –enable-a52 –enable-a52bin –enable-faadbin –enable-dts –enable-pp –enable-faad –enable-faac –enable-x264 –enable-pthreads –disable-ffserver
      libavutil version: 49.2.0
      libavcodec version: 51.29.0
      libavformat version: 51.8.0
      built on Apr 27 2008 17:36:43, gcc: 3.4.6 20060404 (Red Hat 3.4.6-8)

      Seems stream 0 codec frame rate differs from container frame rate: 29.97 (30000/1001) -> 10.00 (10/1)
      Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘86Machi_Shirakawa.3gp’:
      Duration: 00:00:45.1, start: 0.000000, bitrate: 88 kb/s
      Stream #0.0(und): Video: h263, yuv420p, 128×96, 10.00 fps(r)
      Stream #0.1(und): Audio: amr_nb, 8000 Hz, mono
      Output #0, flv, to ‘86Machi_Shirakawa.flv’:
      Stream #0.0: Video: flv, yuv420p, 320×240, q=2-31, 200 kb/s, 15.00 fps(c)
      Stream #0.1: Audio: mp3, 11025 Hz, stereo, 56 kb/s
      Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
      Press [q] to stop encoding
      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.
      frame= 675 q=9.0 Lsize= 1089kB time=45.0 bitrate= 198.4kbits/s

      //————————————————–

    178. Amit - May 7th, 2008 at 2:49 pm

      hi,
      Its a fantastic help for installing ffmpeg on window. but i am still facing a problem. i can not run following command
      ./configure –enable-memalign-hack –enable-mingw32 –enable-mp3lame –extra-cflags=-I/local/include –extra-ldflags=-L/local/lib
      as in my ffmpeg directory i am not getting configure file. So from where i can get ffmpeg directory wich have all needed file. waiting for your help. as it has become an hectic for me now.

    179. John - May 8th, 2008 at 11:41 pm

      Hi Jake, I also had this problem, try using –enable- not -enable-, also use “–target-os=mingw32″.
      Now I have a problem in that I cot through the Configure stage however when I tried to Make I got the message “No rule to make target ‘libavdevice/avdevide.dll’needed by ‘all’ .Stop’ Can anyone help please?
      regards John

    180. DanM - May 13th, 2008 at 10:17 am

      Hi,

      Congratulations for your great site.

      I would like to know if FFMPeg works 100% fine in Windows Vista. Does anyone hear about any problems ?

      Thanks.

    181. 流式flash格式——FLV的制作和转换 | 世纪领域 |酷卡 Cokar.com - May 18th, 2008 at 6:06 pm

      [...] 场景:想把 MPG 或 AVI 上传到你的服务器并自动转换成 FLV 吗? 1,FFmpeg | 教程一 | 教程二(Google Video 使用的就是这个东东.) 2,Flix Engine | 教程 | 范例 3,Turbine [...]

    182. David G - May 19th, 2008 at 6:36 am

      where is the best place to post a high paying consulting job for an ffmpeg developer?

    183. Sönke - May 19th, 2008 at 10:33 am

      You should try the ffmpeg mailinglist. I guess all experts are subscribed to that list.

    184. Jan - May 22nd, 2008 at 3:17 am

      Brilliant guide which still is relevant in 2008.

      AMR has changed in ffmpeg, and this guide allowed me to include it on debian.

      http://ubuntuforums.org/showthread.php?t=491885

    185. indonesian plywood - May 22nd, 2008 at 4:50 pm

      Congratulations for your great site.

      I would like to know if FFMPeg works 100% fine in Windows Vista

    186. links for 2008-06-12 « test - June 12th, 2008 at 5:31 am

      [...] Sönke Rohde » FFMPEG (tags: flv ffmpeg) [...]

    187. Arun George - June 17th, 2008 at 2:17 pm

      Hi Sonke,
      This was the best guide i have seen in using ffmpeg. Brilliant work. The exe is working fine for me. But now I am facing an issue as I wanted to do the ffmpeg conversion inside the webserver and it is not advisable to call the exe from a server script. Hence was wondering, whether there is any way of creating a java class or api for ffmpeg. Have you ever thought about such a possibility. If so, could you please advise me on that.
      Thanks in advance,
      Arun George

    188. Sönke - June 17th, 2008 at 4:27 pm

      Hi Arun, sorry but I have no thoughts on that. There was a project called ffmpeg-php which had ffmpeg as a php module. you might want to check how they solved it.

    189. akin - June 30th, 2008 at 3:50 pm

      hey guys. ı try to install ffmpeg and ı dont know where will a write
      //./configure //(takes a few minutes)
      //make //(lame is being comiled; takes a few minutes, //too)
      //make install

      please help

    190. Sönke - June 30th, 2008 at 4:47 pm

      This has to be entered in the MinGW console

    191. akin - July 1st, 2008 at 12:25 pm

      ı wrote it but doesnt anything.
      see you it
      “$ ./ configure
      sh: ./: is a directory”

      did you see?
      you said you need to wait for a few minutes but nothing

    192. Sönke - July 1st, 2008 at 2:01 pm

      you have got a space between ./” “configure
      has to be ./configure
      and you see a lot of output after this command so you have to wait until the output says “finished” or something like that …

    193. akin - July 1st, 2008 at 2:57 pm

      akn@EFLATUN–AKıN ~
      $ ./configure
      sh: ./configure: No such file or directory

      akn@EFLATUN–AKıN ~
      $ ./ configure
      sh: ./: is a directory

      my friend ı tried it so many times and ıt never says “finished”.
      do you know anythinga bout it Sönke
      thanks

    194. Sönke - July 1st, 2008 at 4:18 pm

      Then you are simply in the wrong directory.
      Which configure do you want to execute and where is it located on your filesystem and did you change to this directory within MinGW?

    195. akin - July 1st, 2008 at 4:52 pm

      no ı did not change any directory in minGW .
      do ı need to change it.
      (if ı can solve that problem ı will so pleasure to you)
      thanks.

    196. akin - July 1st, 2008 at 4:57 pm

      and ı cant use a real server my server works in my pc for this present. also ı dont use riva flv encoder, does it induce those mistakes?

    197. Sönke - July 1st, 2008 at 4:58 pm

      of course you have to change to the directory in your case to the dir where you extracted lame.

    198. akin - July 1st, 2008 at 5:07 pm

      can you explain me more specific . what will ı change in minGW?
      thanks

    199. Sönke - July 2nd, 2008 at 9:42 am

      sorry, no time.

    200. akin - July 2nd, 2008 at 10:32 am

      thanks for everthing sönke

    201. Fatih - July 2nd, 2008 at 11:34 am

      hi,
      FAT˜H@FATIHBALIKCI /home/lame-3.98b8
      $ ./configure
      checking build system type… i686-pc-mingw32
      checking host system type… i686-pc-mingw32
      checking for a BSD-compatible install… /bin/install -c
      checking whether build environment is sane… yes
      checking for a thread-safe mkdir -p… /bin/mkdir -p
      checking for gawk… gawk
      checking whether make sets $(MAKE)… yes
      checking whether to enable maintainer-specific portions of Makefiles… no
      checking for style of include used by make… GNU
      checking for gcc… no
      checking for cc… no
      checking for cl.exe… no
      configure: error: no acceptable C compiler found in $PATH
      See `config.log’ for more details.

      when i configure lame it gives me this error.how can i compile it ? or fix the mistake
      thanks

    202. ffmpeg使用实例 | arziv.com - July 10th, 2008 at 6:39 am

      [...] FLV 吗? 1,FFmpeg (http://sourceforge.net/projects/ffmpeg) | 教程一 (http://soenkerohde.com/tutorials/ffmpeg) | 教程二 (http://klaus.geekserver.net/flash/streaming.html)(Google Video [...]

    203. adek - July 19th, 2008 at 1:49 pm

      hai there,,
      anybody here know how to get input from TV turner with ffmpeg in windows? how can i get the device to define in ffmpeg?

      this is my configuration and example sintaks :
      1.Video codec MPEG-4, Simple Profile Level 1 dengan konfigurasi :
      Video Codec MPEG-4 SP
      Video Codec Level Automatic
      Video Mode Normal Motion Video
      Max Key Frame Distance 5000 ms
      Frame Rate 10 fps
      Picture Size (Frame Resolution) 176 x 220 pixel
      Packet Length 1000 Bytes
      Bit Rate 34 kbps, CBR
      2.Audio codec AAC-LC dengan konfigurasi :
      Audio Codec AAC-LC
      Bit Rate (Sample Size) 16 kbps
      Channel Mode Mono
      Frekwensi Rate 22.050 kHz

      Input : TV Turner
      Max duration : 1 second
      Max File Size : 7 KB, 9 KB, 11 KB
      =====================

      ffmpeg -g 3 -i E:\wmvideo.wmv -vcodec mpeg4 -b 34k -r 10 -bf 2 -acodec libfaac -ar 8000 -ab 16k -ac 1 -s 176×220 -ss 0 -t 1 -y -fs 7000 -f 3gp tes0.3gp

      the problem is :
      -fs 7000 –> not work, can get output 7KB
      -i E:\wmvideo.wmv –> change this to TV turner source

    204. Anupam - July 23rd, 2008 at 9:53 am

      Hi,

      i had transcoded flv to wav, but wav file does not get played.

      any idea???

    205. jack - August 26th, 2008 at 8:18 am

      Hi,I had trandscoded .avi to .flv By ffmpeg,But it does not get played too and shown nothing?why?

    206. Sönke - August 26th, 2008 at 9:40 am

      This also depends on the player you have used. Not all players support FFMPEG generated FLVs.

    207. Flashsoldier » Blog Archive » FFMpeg - September 27th, 2008 at 8:30 pm

      [...] Nếu bạn có nhu cầu sử dụng thì hoặc là vào trang chủ của sản phẩm hoặc vào http://soenkerohde.com/tutorials/ffmpeg/ [...]

    208. ghprod - December 6th, 2008 at 8:43 pm

      Can anyone can give this script full in PHP Code?

      Regards

    209. Sönke - December 7th, 2008 at 1:20 pm

      What about this: http://ffmpeg-php.sourceforge.net/

    210. Jay - December 31st, 2008 at 7:55 am

      Sönke,

      Very nice. I followed your tut but with lame-398-2 I don’t see that a local directory is created under msys home. I use the following command to run the make since there is no default Makefile :

      make -f make -f Makefile.unix UNAME=MSDOS

      After running the make and I did the following but didn’t see local directory is created under msys home:

      make -f Makefile.unix UNAME=MSDOS install

    211. waqasdaar - January 13th, 2009 at 5:35 pm

      I am getting this error. Can you please tell me whats the problem ?
      ./configure –enable-memalign-hack –extra-cflags=-I/local/include –extra-ld
      flags=-L/local/lib
      Broken shell detected. Trying alternatives.
      Trying shell bash
      ./configure: line 226: pr: command not found
      ./configure: line 226: pr: command not found
      ./configure: line 226: pr: command not found
      ERROR: avisynth and vfwcap_demuxer require w32api version 3.13 or later.
      If you think configure made a mistake, make sure you are using the latest
      version from SVN. If the latest version fails, report the problem to the
      ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
      Include the log file “config.err” produced by configure as this will help
      solving the problem.

    212. waqasdaar - January 14th, 2009 at 4:18 am

      any one can solve my problem ?
      please

    213. FFMPEG How to Install. - all things L337 - January 19th, 2009 at 12:43 pm

      [...] http://soenkerohde.com/tutorials/ffmpeg/ [...]

    214. Wie man Videos in Flash Videos konvertiert | Axel Segebrecht - March 2nd, 2009 at 12:58 pm

      [...] drei Tools basieren auf der freien ffmpeg Software, welche es für alle Betriebssysteme gibt. Sönke Rohde hat eine gute Anleitung (auf Englisch) zum Thema Flash Video konvertierung geschrieben, welches nicht nur für Windows [...]

    215. How to convert video files to Flash video | Axel Segebrecht - March 2nd, 2009 at 1:00 pm

      [...] three use the excellent ffmpeg tool, which is available for all major operating systems. Sönke Rohde wrote a nice tutorial on how to use it to convert videos to flash video files. Although that particular tutorial is for [...]

    216. martin fairall - April 23rd, 2009 at 4:11 pm

      hi,

      all i used ffmpeg on my jobpipe site. The good people at rackspace were really helpfull and pretty much did all the instalation for me but… I couldent get i to work with .3gp files. to get this to work i had to recompile the RPM for ffmpeg to link against libamrnb and libamrwb:

      [root@180125-web1 x86_64]# ldd /usr/bin/ffmpeg | grep amr
      libamrnb.so.3 => /usr/lib64/libamrnb.so.3 (0×00002b8d36f2c000)
      libamrwb.so.3 => /usr/lib64/libamrwb.so.3 (0×00002b8d37169000)

    217. Mike Clarke - May 8th, 2009 at 4:40 pm

      Do you have any info about running ffserver under windows?

    218. Sönke - May 8th, 2009 at 4:58 pm

      No, haven’t played with ffserver yet

    219. Osama - May 29th, 2009 at 11:27 am

      Hi there!

      Thanks for such a great help! I really really appriciate this. I can convert my videos and grab the thumbnails. But the only I am having is the audio encoding which fails due to “output buffer too small”.

      I have tried the 3.97 veriosn of lame to o but was not helpful. Please help me with this too.

      There is another question too. I have the binaries from Ramiro Polla for ffmpeg which I am using. When I applied the code it was not working obviously cuz there were no configure and other c files only binaries. So I got a zip of version ffmpeg-0.4.7. I pasted em in the same folder as the binaries. Compiling ffmpeg generates non executables so do i have to use the binaries which I am already using? How does this connects?

      Please I really need your help!

      Thanks in advance

    220. NBA - June 10th, 2009 at 9:18 pm

      Thank you so much for great tutorial here :)

    221. jfarissi - June 24th, 2009 at 5:36 pm

      ffmpeg -i 10.wmv -ab 56k -ar 22050 -b 500k -r 15 -s 320×240 -sameq 10.f
      lv

      FFmpeg version SVN-r18077, Copyright (c) 2000-2009 Fabrice Bellard, et al.
      configuration: –enable-memalign-hack –enable-postproc –enable-gpl –enable-libfaac –enable-libfaad –disable-decoder=aac –enable-libgsm –enable-libmp3lame –enable-libnut –enable-libvorbis –enable-libtheora –enable-libxvid –enable-libx264 –disable-ffserver –disable-ffplay –enable-avisynth –enable-small –enable-pthreads –extra-ldflags=-static –extra-cflags=-mtune=core2 -mfpmath=sse -msse -fno-tree-ch -fno-common
      libavutil 50. 0. 0 / 50. 0. 0
      libavcodec 52.22. 0 / 52.22. 0
      libavformat 52.32. 0 / 52.32. 0
      libavdevice 52. 1. 0 / 52. 1. 0
      libswscale 0. 7. 1 / 0. 7. 1
      libpostproc 51. 2. 0 / 51. 2. 0
      built on Mar 21 2009 03:10:09, gcc: 4.3.3

      Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 5.00 (5/1)
      Input #0, asf, from ‘01.wmv’:
      Duration: 00:28:34.83, start: 3.000000, bitrate: 93 kb/s
      Stream #0.0: Audio: wmav2, 44100 Hz, mono, s16, 32 kb/s
      Stream #0.1: Video: MSS2 / 0×3253534D, 800×600, 250 kb/s, 5 tbr, 1k tbn, 1k tbc
      swScaler: Unknown format is not supported as input pixel format
      Cannot get resampling context

      can’i have any help ???


    Leave a Reply