From fddf215e9ddbfc803d902d4a74f49e2186b4a4da Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 15 Nov 2013 13:48:25 +0000 Subject: changed to NODEID --- rotord/src/libavwrapper.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'rotord/src/libavwrapper.cpp') diff --git a/rotord/src/libavwrapper.cpp b/rotord/src/libavwrapper.cpp index e70fddc..225d01e 100644 --- a/rotord/src/libavwrapper.cpp +++ b/rotord/src/libavwrapper.cpp @@ -207,15 +207,16 @@ bool libav::exporter::record(std::string filename){ video_st->codec->gop_size = 75; /* emit one intra frame every 75 frames */ video_st->codec->pix_fmt = PIX_FMT_YUV420P; - cerr<<"Libav::exporter setting bitrate to "<codec->bit_rate = bitRate; //need to deal with resolution etc + video_st->codec->rc_max_rate = bitRate; + video_st->codec->rc_min_rate = 0; - video_st->codec->bit_rate = bitRate; //need to deal with resolution etc - video_st->codec->rc_max_rate = bitRate; - video_st->codec->rc_min_rate = 0; - - //added 131113 - video_st->codec->rc_buffer_size = bitRate * 2; + //added 131113 + video_st->codec->rc_buffer_size = bitRate * 2; + } //av_dict_set(&options, "profile", "baseline", 0); //video_st->codec->flags2 = CODEC_FLAG2_FASTPSKIP; -- cgit v1.2.3