-#include "libavformat/avformat.h"
+/*
+ * Copyright (c) 2008 Luca Abeni
+ *
+ * This is free software; see GPL.txt
+ */
+#include <libavformat/avformat.h>
AVFormatContext *open_output_stream(const char *dst, int port, enum CodecType codec_type)
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;
}
+int close_output_stream(AVFormatContext *s)
+{
+ url_fclose(s->pb);
+ return 0;
+}
+
int pkt_send(AVFormatContext *ctx, AVPacket *pkt)
{
static int inited; /* FIXME: HACK! */