From 501294dbc06931c71d386f28901cc9e36a98f0c8 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 1 May 2005 09:33:47 +0000 Subject: *** empty log message *** --- src/mov_encoder.cc | 12 ++++++------ src/videowidget.h | 9 +++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/mov_encoder.cc b/src/mov_encoder.cc index 01a5c5a..7de264d 100644 --- a/src/mov_encoder.cc +++ b/src/mov_encoder.cc @@ -66,18 +66,18 @@ MovEncoder::MovEncoder(const char *filename) exit(1); } - enc_codec = avcodec_find_encoder(CODEC_ID_MPEG4); - // enc_codec = avcodec_find_encoder(CODEC_ID_MPEG2VIDEO); + //enc_codec = avcodec_find_encoder(CODEC_ID_MPEG4); + enc_codec = avcodec_find_encoder(CODEC_ID_MPEG2VIDEO); if(!enc_codec) { fprintf(stderr, "Unsupported codec for output stream\n"); fflush(stderr); exit(1); } avcodec_get_context_defaults(&st->codec); ecc = &st->codec; - ecc->codec_id = CODEC_ID_MPEG4; - // ecc->codec_id = CODEC_ID_MPEG2VIDEO; - // ecc->bit_rate = 8192*1000; - ecc->bit_rate = 4096*1000; + //ecc->codec_id = CODEC_ID_MPEG4; + ecc->codec_id = CODEC_ID_MPEG2VIDEO; + ecc->bit_rate = 8192*1000; + //ecc->bit_rate = 4096*1000; ecc->bit_rate_tolerance = 8000*1000; ecc->frame_rate = 25; ecc->frame_rate_base = 1; diff --git a/src/videowidget.h b/src/videowidget.h index 52669ed..ecf15bd 100644 --- a/src/videowidget.h +++ b/src/videowidget.h @@ -21,6 +21,15 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* + * $Id$ + */ +/* + * $Log$ + * Revision 1.2 2005/05/01 09:33:47 deva + * *** empty log message *** + * + */ #include #ifdef USE_GUI -- cgit v1.2.3