[Libav-user] may I use ffmpeg API just for decoding

YIRAN LI mrfun.china at gmail.com
Tue Mar 27 05:47:41 EEST 2018


2018-03-24 21:13 GMT+11:00 YIRAN LI <mrfun.china at gmail.com>:

> Hi guys,
>
>
> Want to confirm one thing. May I write my own demuxer (for example for
> AVI) and only use ffmpeg API for video/audio decoding?
>
>
> Thanks
>

​
Hi guys,

I've found an example video_decode_example at avcodec.c (mine is an old
version so this might have been moved to another place)

in which the codeccontext is initialized with avcodec_alloc_context3 so no
avformat context is needed.

That way I can call av_decode_frame with my own demuxer.


Thanks​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180327/97ac0a07/attachment.html>


More information about the Libav-user mailing list