[FFmpeg-devel] [PATCH] encoder for adobe's flash ScreenVideo2 codec

Daniel Verkamp daniel
Fri Nov 20 19:01:05 CET 2009


On Fri, Nov 20, 2009 at 9:14 AM, Benjamin Larsson <banan at ludd.ltu.se> wrote:
> Daniel Verkamp wrote:
> Can you provide some samples that you encoded with the encoder patch? One of
> the main reason we don't have a codec is that we don't have any samples. The
> patch looks ok but it has to at least be able to decode the files that the
> encoder can produce.
>

I will upload some later, but you can also create some with the
encoder patch from this thread. ;) I don't have any samples not
created by this encoder.

Please note, though, that the decoder as it currently stands *cannot*
decode even the samples created by the encoder in this thread - it
does not support the zlib priming feature from the previous frame,
which the encoder does use.  This is just meant as a starting point
for somebody with more time/motivation.

[...]
>> diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
>> index 27062dc..2be5e2d 100644
>> --- a/libavformat/flvdec.c
>> +++ b/libavformat/flvdec.c
>> @@ -82,6 +82,7 @@ static int flv_set_video_codec(AVFormatContext *s,
>> AVStream *vstream, int flv_co
>> ? ? switch(flv_codecid) {
>> ? ? ? ? case FLV_CODECID_H263 ?: vcodec->codec_id = CODEC_ID_FLV1 ? ;
>> break;
>> ? ? ? ? case FLV_CODECID_SCREEN: vcodec->codec_id = CODEC_ID_FLASHSV;
>> break;
>> + ? ? ? ?case FLV_CODECID_SCREEN2: vcodec->codec_id = CODEC_ID_FLASHSV2;
>> break;
>> ? ? ? ? case FLV_CODECID_VP6 ? : vcodec->codec_id = CODEC_ID_VP6F ? ;
>> ? ? ? ? case FLV_CODECID_VP6A ?:
>> ? ? ? ? ? ? if(flv_codecid == FLV_CODECID_VP6A)
>>
>
> This hunk looks ok, but I'm not the maintainer.
>

There is a similarly simple hunk for the encoder portion that would
allow at least -vcodec copy, I think - patch forthcoming after
testing...

Thanks,
-- Daniel Verkamp



More information about the ffmpeg-devel mailing list