|
|
@@ -30,7 +30,7 @@ |
|
|
|
#define PAR_NUM 64 |
|
|
|
#define PAR_DEN 45 |
|
|
|
#define FPS 25 |
|
|
|
#define BITRATE 8000000 |
|
|
|
#define BITRATE 16*1024*1024 |
|
|
|
|
|
|
|
int main(int argc, char *argv[]) |
|
|
|
{ |
|
|
@@ -73,12 +73,12 @@ int main(int argc, char *argv[]) |
|
|
|
ctx->height = HEIGHT; |
|
|
|
ctx->sample_aspect_ratio.num = PAR_NUM; |
|
|
|
ctx->sample_aspect_ratio.den = PAR_DEN; |
|
|
|
//ctx->codec_id = fmt->oformat->video_codec; |
|
|
|
ctx->codec_id = fmt->oformat->video_codec; |
|
|
|
//ctx->codec_id = CODEC_ID_FFV1; |
|
|
|
//ctx->codec_id = CODEC_ID_THEORA; |
|
|
|
//ctx->codec_id = CODEC_ID_SNOW; |
|
|
|
//ctx->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL; /* Snow */ |
|
|
|
ctx->codec_id = CODEC_ID_MJPEG; |
|
|
|
//ctx->codec_id = CODEC_ID_MJPEG; |
|
|
|
ctx->codec_type = CODEC_TYPE_VIDEO; |
|
|
|
ctx->bit_rate = BITRATE; |
|
|
|
ctx->time_base.num = 1; |
|
|
|