[FFmpeg-devel] filtering based on exif information

Clément Bœsch u at pkh.me
Tue Nov 19 15:28:53 CET 2013

On Tue, Nov 19, 2013 at 03:10:44PM +0100, Jan Pohanka wrote:
> 2013/11/19 Clément Bœsch <u at pkh.me>:
> > On Tue, Nov 19, 2013 at 02:03:31PM +0100, Jan Pohanka wrote:
> > [...]
> > Look at how a filter is initialized (libavfilter/avfilter.c,
> > avfilter_init_dict()). You can probably transmit the metadata dictionary
> > as well (by merging with the options dict or something).
> >
> Thank you for further explanation. Access to the metadata could work
> for gobal metadata for whole stream. However this does not fully fit
> on my task. In fact EACH frame can have own different metadata in my
> mjpeg. So I think I have to access them in filter_frame function
> directly.
> Now I see that AVFrame has metadata field as well, maybe this can be the way...

If you want per frame metadata that's indeed already available. And it
should be transmitted. rotate filter should work with a per-frame changing
value (you can set a rotate expression IIRC, which changes the value for
each frame), so it could be updated to use the frame metadata.

Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131119/39abb410/attachment.asc>

More information about the ffmpeg-devel mailing list