[FFmpeg-devel] [PATCH] Enable parser in FLV demuxer for H264 codec

Alex Sukhanov alx.sukhanov at gmail.com
Fri Dec 13 04:05:49 CET 2013


On Thu, Dec 12, 2013 at 6:44 PM, Alex Sukhanov <alx.sukhanov at gmail.com>wrote:

>
>
>
> On Thu, Dec 12, 2013 at 6:09 PM, Michael Niedermayer <michaelni at gmx.at>wrote:
>
>> On Thu, Dec 12, 2013 at 03:10:10PM -0800, Alex Sukhanov wrote:
>> > ---
>> >  libavformat/flvdec.c | 1 +
>> >  1 file changed, 1 insertion(+)
>> >
>> > diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
>> > index 1024001..4401652 100644
>> > --- a/libavformat/flvdec.c
>> > +++ b/libavformat/flvdec.c
>> > @@ -256,6 +256,7 @@ static int flv_set_video_codec(AVFormatContext *s,
>> AVStream *vstream,
>> >          return 1;     // 1 byte body size adjustment for
>> flv_read_packet()
>> >      case FLV_CODECID_H264:
>> >          vcodec->codec_id = AV_CODEC_ID_H264;
>> > +        vstream->need_parsing = AVSTREAM_PARSE_HEADERS;
>> >          return 3;     // not 4, reading packet type will consume one
>> byte
>> >      case FLV_CODECID_MPEG4:
>> >          vcodec->codec_id = AV_CODEC_ID_MPEG4;
>>
>> breaks
>> ffmpeg -i Enigma_Principles_of_Lust.flv test.flv
>>
>> before the patch:
>> frame= 6300 fps=1441 q=31.0 Lsize=    7266kB time=00:03:30.65 bitrate=
>> 282.6kbits/s
>> after the patch
>> frame= 4531 fps=1180 q=9.8 Lsize=    6987kB time=00:03:30.65 bitrate=
>> 271.7kbits/s dup=0 drop=1769
>>
>> [....]
>>
>> --
>> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>>
>> The misfortune of the wise is better than the prosperity of the fool.
>> -- Epicurus
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>>
>
> Hi Michael,
>
> sad to hear that. I ran FATE test before sending this patch to you, and it
> passed. A few questions:
> - Where can I find this Enigma_Principles_of_Lust.flv file?
> - fps = 1180 or 1441 doesn't look like sane. Is file corrupted?
>
> Thanks
>


Ops, fps is not video framerate, but transcode speed. I see now the problem.


More information about the ffmpeg-devel mailing list