summaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-10-20 11:03:20 +0200
committerAnton Khirnov <anton@khirnov.net>2016-11-02 10:19:37 +0100
commitd0a603a534a0ee4b255e5e72742428a7f7f42b83 (patch)
tree17fb064987b86ecd7bf4ebb0a4cb5786164afa17 /doc/examples
parente02524025bce2c8bf8b5bffd96479785c75a70d4 (diff)
downloadffmpeg-streaming-d0a603a534a0ee4b255e5e72742428a7f7f42b83.zip
ffmpeg-streaming-d0a603a534a0ee4b255e5e72742428a7f7f42b83.tar.gz
examples/encode_video: set the framerate
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/encode_video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/encode_video.c b/doc/examples/encode_video.c
index c5f3853f..b955cce 100644
--- a/doc/examples/encode_video.c
+++ b/doc/examples/encode_video.c
@@ -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;
OpenPOWER on IntegriCloud