mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
doc/examples/avcodec: information regarding gop_size ignored if frame->pic-type is AV_PICTURE_TYPE_I
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1cd107f637
commit
6d25e90262
@ -375,7 +375,13 @@ static void video_encode_example(const char *filename, int codec_id)
|
|||||||
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->gop_size = 10; /* emit one intra frame every ten frames */
|
/* emit one intra frame every ten frames
|
||||||
|
* check frame pict_type before passing frame
|
||||||
|
* to encoder, if frame->pict_type is AV_PICTURE_TYPE_I
|
||||||
|
* then gop_size is ignored and the output of encoder
|
||||||
|
* will always be I frame irrespective to gop_size
|
||||||
|
*/
|
||||||
|
c->gop_size = 10;
|
||||||
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…
Reference in New Issue
Block a user