[Libav-user] How to write metadata tags in the audio file using API functions?

hamza ouldji houldji at gmail.com
Tue Jan 10 09:48:24 EET 2023

Look at av_dict_get() and av_dict_set() API

Ex: av_dict_set(&program->metadata, "service_provider", p2, 0); for
example mpegts file

On Tue, Jan 10, 2023, 03:20 m b <mvetnk at email.com> wrote:

> Hello,
> I want to write a tag Genre=Classic in an aac file using ffmpeg API
> functions, I don't know how to do, and I did not find any useful example in
> the folder of source ffmpeg>doc>examples,  there is only an example file
> named metadata.c which it iterates the metadata tags by using 4 API
> functions: avformat_open_input(), avformat_find_stream_info(),
> av_dict_iterate(), avformat_close_input(). I also searched online, and no
> results.
> Who could give me some examples of how to write a tag in the auido file
> using the FFMPEG API? Thank you for your help!
> Regards,
> Ben
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230110/196ef8cb/attachment.htm>

More information about the Libav-user mailing list