From 995abf233bdff53f7066b0d9917b1296108a13c3 Mon Sep 17 00:00:00 2001 From: Comment Date: Wed, 9 Oct 2013 08:35:46 -0700 Subject: default to non fragmented movie --- rotord/src/libavwrapper.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'rotord/src/libavwrapper.cpp') diff --git a/rotord/src/libavwrapper.cpp b/rotord/src/libavwrapper.cpp index fa09b7f..d9207bb 100644 --- a/rotord/src/libavwrapper.cpp +++ b/rotord/src/libavwrapper.cpp @@ -168,7 +168,7 @@ bool libav::exporter::record(std::string filename){ video_st->time_base = video_st->codec->time_base; //audioStream->time_base = codecCtx->time_base; //???has the capability of crashing - video_st->codec->gop_size = 75; /* emit one intra frame every ten frames */ + video_st->codec->gop_size = 75; /* emit one intra frame every 75 frames */ video_st->codec->pix_fmt = PIX_FMT_YUV420P; @@ -217,7 +217,7 @@ bool libav::exporter::record(std::string filename){ //THIS DOES SEEM TO SET CONTAINER OPTS= AS MOOV_SIZE MAKES THE MOVIE BANJAXED //av_dict_set(&opts, "moov_size", "20000", 0); if (fragmentation) { - av_dict_set(&opts, "movflags","frag_keyframe", 0); + av_dict_set(&opts, "movflags","frag_keyframe", 0); } @@ -361,12 +361,18 @@ AVStream* libav::exporter::add_stream(AVFormatContext *oc, AVCodec **codec,enum case AVMEDIA_TYPE_VIDEO: c->codec_id = codec_id; + + c->bit_rate = bitRate; //need to deal with resolution etc c->rc_max_rate = bitRate; c->rc_min_rate = 0; //c->rc_buffer_size = Profile()->m_videoMaxVopSize; //?? + /* + all taken out 091113 to try to stop making incompatible movies + */ + // Resolution must be a multiple of two. // //c->width = 352; -- cgit v1.2.3