瀏覽代碼

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
master
sam 15 年之前
父節點
當前提交
c89eae3ce4
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      examples/makemovie.c

+ 3
- 3
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;


Loading…
取消
儲存