Hi,
Thank you hamza ouldji for your tips! I try the av_dict_set().
Regards,
Ben
Sent: Tuesday, January 10, 2023 at 3:48 PM
From: "hamza ouldji" <[email protected]>
To: "This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter." <[email protected]>
Subject: Re: [Libav-user] How to write metadata tags in the audio file using API functions?
From: "hamza ouldji" <[email protected]>
To: "This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter." <[email protected]>
Subject: Re: [Libav-user] How to write metadata tags in the audio file using API functions?
Look at av_dict_get() and av_dict_set() API
Ex: av_dict_set(&program->metadata, "service_provider", p2, 0); for example mpegts file
_______________________________________________ Libav-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".On Tue, Jan 10, 2023, 03:20 m b <[email protected]> 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
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
_______________________________________________ Libav-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
