]> rtime.felk.cvut.cz Git - frescor/streamer.git/blobdiff - output.c
License
[frescor/streamer.git] / output.c
index 939be997898f9ff0c26a2639fae0662eb9bb7b50..738f654a57dfcb5577f9b114aed8d176b8ff7585 100644 (file)
--- a/output.c
+++ b/output.c
@@ -1,3 +1,8 @@
+/*
+ *  Copyright (c) 2008 Luca Abeni
+ *
+ *  This is free software; see GPL.txt
+ */
 #include "libavformat/avformat.h"
 
 
@@ -36,6 +41,10 @@ AVFormatContext *open_output_stream(const char *dst, int port, enum CodecType co
     s->streams[0]->codec->codec_id = av_guess_codec(s->oformat, NULL, s->filename, NULL, codec_type);
     s->streams[0]->codec->codec_id = CODEC_ID_MPEG4;
     s->streams[0]->codec->pix_fmt  = PIX_FMT_YUV420P;
+    s->streams[0]->codec->mb_decision = 2;
+    s->streams[0]->codec->me_cmp = 2;
+    //s->streams[0]->codec->me_sub_cmp = 6;
+    s->streams[0]->codec->trellis = 1;
 
     return s;
 }