[Ffmpeg-devel] [PATCH] support for VP6 and FLASHSV in the flv muxer

Allan Hsu allan
Sat Dec 16 01:59:31 CET 2006


On Dec 15, 2006, at 4:30 PM, Michael Niedermayer wrote:

[...]
>> ===================================================================
>> --- libavformat/flvenc.c	(revision 7320)
>> +++ libavformat/flvenc.c	(working copy)
>> @@ -235,7 +235,17 @@
>>
>>      if (enc->codec_type == CODEC_TYPE_VIDEO) {
>>          put_byte(pb, FLV_TAG_TYPE_VIDEO);
>> -        flags = FLV_CODECID_H263;
>> +
>> +        switch (enc->codec_id) {
>> +            case CODEC_ID_FLV1:     flags = FLV_CODECID_H263; break;
>> +            case CODEC_ID_FLASHSV:  flags = FLV_CODECID_SCREEN;  
>> break;
>> +            case CODEC_ID_VP6F:
>> +            case CODEC_ID_VP6:      flags = FLV_CODECID_VP6; break;
>> +
>> +            default:
>> +                av_log(s, AV_LOG_INFO, "Unsupported video codec (% 
>> x)\n", enc->codec_id);
>> +                return -1;
>> +        }
>
> wasnt there a CODEC_ID <-> FLV_CODECID table somewhere? if no it  
> should be
> added and used in muxer and demuxer
[...]

I created a table for my flvenc.c metadata patch (subject: "[PATCH]  
flv muxer metadata"), but there hasn't been any activity on that  
thread since I sent the last revision of the patch.

	-Allan
--
Allan Hsu <allan at counterpop dot net>
1E64 E20F 34D9 CBA7 1300  1457 AC37 CBBB 0E92 C779






More information about the ffmpeg-devel mailing list