mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
examples/encode_video: set the framerate
This commit is contained in:
parent
e02524025b
commit
d0a603a534
@ -70,6 +70,8 @@ int main(int argc, char **argv)
|
|||||||
c->height = 288;
|
c->height = 288;
|
||||||
/* frames per second */
|
/* frames per second */
|
||||||
c->time_base = (AVRational){1, 25};
|
c->time_base = (AVRational){1, 25};
|
||||||
|
c->framerate = (AVRational){25, 1};
|
||||||
|
|
||||||
c->gop_size = 10; /* emit one intra frame every ten frames */
|
c->gop_size = 10; /* emit one intra frame every ten frames */
|
||||||
c->max_b_frames=1;
|
c->max_b_frames=1;
|
||||||
c->pix_fmt = AV_PIX_FMT_YUV420P;
|
c->pix_fmt = AV_PIX_FMT_YUV420P;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user