[FFmpeg-devel] imagepipe filter (was [PATCH] avfilter: add dynoverlay filter.)
Priebe, Jason
jpriebe at cbcnewmedia.com
Wed Sep 28 18:13:21 EEST 2016
On 9/23/16, Paul B Mahol <onemda at gmail.com> wrote:
> On 9/28/16, Priebe, Jason <jpriebe at cbcnewmedia.com> wrote:
>
> > If there's a better way to decode these still images without using
> > an intermediate temp file, please point me to it, and I'll make the
> > change.
>
> Using avformat/avcodec calls to decode input from named pipe into AVFrame.
OK. I was able to synthesize the code from ff_load_image() and the code
from this example:
http://www.ffmpeg.org/doxygen/trunk/doc_2examples_2avio_reading_8c-example.html
It took 130 lines of code to read an image from a memory buffer, and
about 40 of those lines are essentially duplicated from ff_load_image().
It seems like a function like this should be in the lavfutils, not
buried in a random filter. And maybe those 40 lines could be shared
between this new function an dthe ff_load_image() function?
Jason Priebe
CBC New Media
More information about the ffmpeg-devel
mailing list