提交 d0a603a5 编写于 作者: A Anton Khirnov

examples/encode_video: set the framerate

上级 e0252402
......@@ -69,7 +69,9 @@ int main(int argc, char **argv)
c->width = 352;
c->height = 288;
/* 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->max_b_frames=1;
c->pix_fmt = AV_PIX_FMT_YUV420P;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册