VideoHelp.com Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Member
    Join Date: Apr 2009
    Location: Switzerland
    I have installed MENCODER, FLVTOOLS2 and FFMPEG on my dedicated linux redhat server.

    When i convert any files( say AVI) to FLV format ... some how the Video is faster than the audio.

    I use the following to convert AVI file to FLV file.

    Code:
    mencoder ./Screenshots.avi -o test222.flv -of lavf -oac mp3lame -lameopts abr:br=56  -ovc lavc -lavcopts  vcodec=flv:vbitrate=400:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -of lavf -lavfopts format=flv -srate 22050
    Can anyone help me what i should do ?

    NOTE: VIDEO is very fast ... compared to AUDIO. This is my problem. I want proper sync.

    Your help is highly appreciated
    Quote Quote  

  2. Member
    Join Date: Aug 2005
    Location: Palo Alto, California USA
    This is the ffmpegx forum, which is not exactly the same thing (it's a gui wrapper for ffmpeg and other tools). And it's been a very long time since I used ffmpeg, so this is a guess: Your command line doesn't include any info about framerate. From the description of your problem, it is apparently the source of your problem. So, find the frame rate of your source, and make sure that you convert to same. At minimum, you'll need to add a switch like "-ofps 24000/1001" or some such thing (replace 24000/1001 by the desired output framerate).

    I'm sure others with more experience with ffmpeg will chime in with better advice shortly.
    Quote Quote  

  3. Member
    Join Date: Apr 2009
    Location: Switzerland
    Hi, thanks for your reply.

    I have tried using your suggestion as follows.

    Code:
    mencoder ./Screenshots.avi -o test333.flv -of lavf -oac mp3lame -lameopts abr:br=56  -ovc lavc -lavcopts  vcodec=flv:vbitrate=400:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -of lavf -lavfopts format=flv -srate 22050 -ofps 24000/1001
    BUT it does not help in anyway. The video is so fast and audio is normal - same as before


    Quote Quote  

  4. Member
    Join Date: Apr 2009
    Location: Switzerland
    Can any one help with this ?
    Quote Quote  

  5. Explorer Case's Avatar
    Join Date: Feb 2004
    Location: Middle Earth
    ffmpegX (the Mac GUI app) uses ffmpeg for FLV encodings, not mencoder. I suppose the developer did that for a reason.
    Quote Quote  

  6. Explorer Case's Avatar
    Join Date: Feb 2004
    Location: Middle Earth
    Code:
    ffmpeg -i source.avi -y -map 0.0:0.0 -f flv -vcodec flv -b 400 -aspect 4:3 -s 320x240 -r ntsc-film -g 240 -me epzs -qmin 2 -qmax 15 -acodec mp3 -ab 56 -ar 22050 -ac 2  -map 0.1:0.1 -benchmark target.flv
    
    flvtool2 -UP target.flv
    Quote Quote  




Similar Threads

  1. FLV file wrong metadata using mencoder
    By Threshold_ in forum Video Conversion
    Replies: 1
    Last Post: 10th Sep 2011, 03:24
  2. Mencoder - Audio / Video Sync Problem
    By krishnareddy in forum Video Conversion
    Replies: 0
    Last Post: 21st Apr 2009, 23:05
  3. Mux a FLV AVI + MP3 -> FLV with ffmpeg or mencoder?
    By Colmino in forum Video Conversion
    Replies: 9
    Last Post: 29th Mar 2008, 22:11
  4. Replies: 0
    Last Post: 26th Mar 2008, 15:39
  5. Audio out of sync FLV file.
    By sk545 in forum Audio
    Replies: 1
    Last Post: 16th Mar 2008, 12:17
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools