summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-12-27 11:42:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-12-27 11:42:52 +0000
commitf560dd8279e84c85f9d75cf411e2eb7316662a0b (patch)
tree197370636b390e31e70fa53d59635f6ad72292fb
parent368eb094232fdda28c17a0d9698264108712ff4d (diff)
huffyuv 4cc & -strict
(huffyuv still doesnt work with ffmpeg (it does work with mencoder though) someone should fix the avi de(muxer)) Originally committed as revision 1363 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c8
-rw-r--r--libavformat/avienc.c2
2 files changed, 10 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 4042bb77c3..eae34d6e6c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -125,6 +125,7 @@ static int dct_algo = 0;
static int idct_algo = 0;
static int use_part = 0;
static int packet_size = 0;
+static int strict = 0;
static int debug = 0;
static int gop_size = 12;
@@ -1819,6 +1820,11 @@ void opt_packet_size(const char *arg)
packet_size= atoi(arg);
}
+void opt_strict(const char *arg)
+{
+ strict= atoi(arg);
+}
+
void opt_audio_bitrate(const char *arg)
{
audio_bit_rate = atoi(arg) * 1000;
@@ -2241,6 +2247,7 @@ void opt_output_file(const char *filename)
video_enc->b_quant_offset = video_b_qoffset;
video_enc->dct_algo = dct_algo;
video_enc->idct_algo = idct_algo;
+ video_enc->strict_std_compliance = strict;
if(packet_size){
video_enc->rtp_mode= 1;
video_enc->rtp_payload_size= packet_size;
@@ -2645,6 +2652,7 @@ const OptionDef options[] = {
{ "part", OPT_BOOL | OPT_EXPERT, {(void*)&use_part}, "use data partitioning (only MPEG-4)" },
{ "bug", HAS_ARG | OPT_EXPERT, {(void*)opt_workaround_bugs}, "workaround not auto detected encoder bugs", "param" },
{ "ps", HAS_ARG | OPT_EXPERT, {(void*)opt_packet_size}, "packet size", "size in bits" },
+ { "strict", HAS_ARG | OPT_EXPERT, {(void*)opt_strict}, "strictness", "how strictly to follow the standarts" },
{ "sameq", OPT_BOOL, {(void*)&same_quality},
"use same video quality as source (implies VBR)" },
{ "debug", HAS_ARG | OPT_EXPERT, {(void*)opt_debug}, "print specific debug info", "" },
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index f14b1cb274..66cf1dd249 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -84,6 +84,8 @@ const CodecTag codec_bmp_tags[] = {
{ CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', 'g', '2') },
{ CODEC_ID_MPEG1VIDEO, MKTAG('P', 'I', 'M', '1') },
{ CODEC_ID_MJPEG, MKTAG('M', 'J', 'P', 'G') },
+ { CODEC_ID_HUFFYUV, MKTAG('H', 'F', 'Y', 'U') },
+ { CODEC_ID_HUFFYUV, MKTAG('h', 'f', 'y', 'u') },
{ 0, 0 },
};