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.
Can anyone help me what i should do ?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
NOTE: VIDEO is very fast ... compared to AUDIO. This is my problem. I want proper sync.
Your help is highly appreciated
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 6 of 6
Thread
-
-
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. -
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
-
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
Similar Threads
-
FLV file wrong metadata using mencoder
By Threshold_ in forum Video ConversionReplies: 1Last Post: 10th Sep 2011, 03:24 -
Mencoder - Audio / Video Sync Problem
By krishnareddy in forum Video ConversionReplies: 0Last Post: 21st Apr 2009, 23:05 -
Mux a FLV AVI + MP3 -> FLV with ffmpeg or mencoder?
By Colmino in forum Video ConversionReplies: 9Last Post: 29th Mar 2008, 22:11 -
QT movie with 2 video tracks to FLV with mencoder or ffmpeg
By bluehz in forum Video ConversionReplies: 0Last Post: 26th Mar 2008, 15:39 -
Audio out of sync FLV file.
By sk545 in forum AudioReplies: 1Last Post: 16th Mar 2008, 12:17