sunshine_august
16th September 2009, 06:02
hi, all:
I use the following cmd to convert an wmv file to be a mp4 file:
$ffmpeg -i foo.avi -acodec libfaac -ac 2 -ar 44100 -ab 32k -vcodec libx264 -coder 1 -g 250 -keyint_min 25 -sc_threshold 40 -flags +loop -deblockalpha 0 -deblockbeta 0 -flags2 +fastpskip+wpred-dct8x8 -me_method hex -me_range 16 -subq 6 -trellis 1 -b 280k -qcomp 0.6 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -r 20 -s $size -y foo.mp4"
but the foo.mp4 file comes to be Variable Frame Rate Mode:
Frame rate mode : Variable
Frame rate : 19.779 fps
Minimum frame rate : 1.429 fps
Maximum frame rate : 20.000 fps
Original frame rate : 20.000 fps
Is there any way to specify the Constant Frame Rate Mode in ffmpeg?
BTW: The Variable Frame Rate mode can supply better quality and less file size, but When I play it with lighttpd + mod_h264_streaming, audio/video are out of sync.
I use the following cmd to convert an wmv file to be a mp4 file:
$ffmpeg -i foo.avi -acodec libfaac -ac 2 -ar 44100 -ab 32k -vcodec libx264 -coder 1 -g 250 -keyint_min 25 -sc_threshold 40 -flags +loop -deblockalpha 0 -deblockbeta 0 -flags2 +fastpskip+wpred-dct8x8 -me_method hex -me_range 16 -subq 6 -trellis 1 -b 280k -qcomp 0.6 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -r 20 -s $size -y foo.mp4"
but the foo.mp4 file comes to be Variable Frame Rate Mode:
Frame rate mode : Variable
Frame rate : 19.779 fps
Minimum frame rate : 1.429 fps
Maximum frame rate : 20.000 fps
Original frame rate : 20.000 fps
Is there any way to specify the Constant Frame Rate Mode in ffmpeg?
BTW: The Variable Frame Rate mode can supply better quality and less file size, but When I play it with lighttpd + mod_h264_streaming, audio/video are out of sync.