Commit f560dd82 authored by Michael Niedermayer's avatar Michael Niedermayer

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
parent 368eb094
......@@ -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", "" },
......
......@@ -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 },
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment