[vlc-devel] [PATCH] vaapi: add support for VP8/9 decoding
Mathieu Velten
matmaul at gmail.com
Tue Nov 29 10:09:10 CET 2016
https://github.com/FFmpeg/FFmpeg/commit/8655c54160767de1a6b96f8bc310d6e4eaceff48
Seems to be there since ffmpeg 2.8, does VLC master support earlier
versions ?
Le mar. 29 nov. 2016 à 09:12, Steve Lhomme <robux4 at gmail.com> a écrit :
On Tue, Nov 29, 2016 at 9:07 AM, Mathieu Velten <matmaul at gmail.com> wrote:
> Hi Jean Baptiste,
>
> It is rejected later in ffmpeg_GetFormat and fallback to software if not
> supported by ffmpeg.
But when was FF_PROFILE_VP9_0 added in libavcodec ?
> Le mar. 29 nov. 2016 à 01:45, Jean-Baptiste Kempf <jb at videolan.org> a
écrit
> :
>>
>> Hello Mathieu,
>>
>> Doesn't this require some #ifdefery then?
>>
>> Bes,
>>
>> On Mon, 28 Nov 2016, at 22:24, Mathieu Velten wrote:
>> > Tested with VP9, both profiles.
>> > Profile 2 needs this ffmpeg patch to be merged to work.
>> > http://ffmpeg.org/pipermail/ffmpeg-devel/2016-November/203581.html
>> >
>> > VP8 untested, the needed code is coming to ffmpeg soon.
>> > http://ffmpeg.org/pipermail/ffmpeg-devel/2016-November/202722.html
>> >
>> > ---
>> > modules/codec/avcodec/vaapi.c | 13 +++++++++++++
>> > 1 file changed, 13 insertions(+)
>> >
>> > diff --git a/modules/codec/avcodec/vaapi.c
>> > b/modules/codec/avcodec/vaapi.c
>> > index c9e51fe..f2459bc 100644
>> > --- a/modules/codec/avcodec/vaapi.c
>> > +++ b/modules/codec/avcodec/vaapi.c
>> > @@ -327,6 +327,19 @@ static int Create( vlc_va_t *va, AVCodecContext
>> > *ctx, enum PixelFormat pix_fmt,
>> > return VLC_EGENERIC;
>> > count = 18;
>> > break;
>> > + case AV_CODEC_ID_VP8:
>> > + i_profile = VAProfileVP8Version0_3;
>> > + count = 5;
>> > + break;
>> > + case AV_CODEC_ID_VP9:
>> > + if (ctx->profile == FF_PROFILE_VP9_0)
>> > + i_profile = VAProfileVP9Profile0;
>> > + else if (ctx->profile == FF_PROFILE_VP9_2)
>> > + i_profile = VAProfileVP9Profile2;
>> > + else
>> > + return VLC_EGENERIC;
>> > + count = 10;
>> > + break;
>> > default:
>> > return VLC_EGENERIC;
>> > }
>> > --
>> > 2.9.3
>> >
>> > _______________________________________________
>> > vlc-devel mailing list
>> > To unsubscribe or modify your subscription options:
>> > https://mailman.videolan.org/listinfo/vlc-devel
>>
>>
>> --
>> Jean-Baptiste Kempf - President
>> +33 672 704 734
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20161129/5ce34965/attachment.html>
More information about the vlc-devel
mailing list