[FFmpeg-user] How to specify the Varible Frame rate mode with ffmpeg ?

Calvin Park carrot at shinsegae.com
Wed Jan 30 08:51:42 CET 2013


Hello ffmpeg users.

I use the following cmd to convert an avi file to be a mp4 file:
ffmpeg -y -i  './scs0707.avi' -acodec aac -ac 2 -strict experimental -vcodec
libx264 -preset slow -profile:v baseline -level 30 -threads 0 -report -b:a
192k   -maxrate 1500K -bufsize 1500K -b:v 1300K -pix_fmt yuv420p -f mp4
'./scs0707-1.mp4'

But scs0707-1.mp4 file comes to be Constant Frame rate mode. ( Plz see below
results )

Is there any way to specify the Variable Frame Rate mode in ffmpeg ?
Cos my set-top box player does not support Constant Frame rate mode.


Thanks.
-------------------------------------------
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline at L3.0
Format settings, CABAC                   : No
Format settings, ReFrames                : 5 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 15mn 39s
Bit rate                                 : 1 500 Kbps
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Original display aspect ratio            : 4:3
Original display aspect ratio            : 4:3
Frame rate mode                          : Constant
Frame rate                               : 29.970 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.145
Stream size                              : 166 MiB (89%)
Writing library                          : x264 core 129 r2 bc13772
--------------------------------------------------------------------------



ooOoooooooooooooooo
Calvin Park
carrot at shinsegae.com
+82-10-4597-9312
oooooooooOooooooooo




More information about the ffmpeg-user mailing list