From c89eae3ce412df4691bcbacb3b949bcce5cc8d7e Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 8 Jul 2009 23:38:52 +0000 Subject: [PATCH] Don't force MJPEG in makemovie. Other codecs work just fine. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3548 92316355-f0b4-4df1-b90c-862c8a59935f --- examples/makemovie.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/makemovie.c b/examples/makemovie.c index 2b048ac..b5f2a24 100644 --- a/examples/makemovie.c +++ b/examples/makemovie.c @@ -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;