<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello Carl,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thank you for your reply. I think now I have realised that I have 2 issues in my scenario:</div><div class=""><br class=""></div><div class="">1. The code attached (metadata.cpp) writes perfectly some static header during mp3 => mp3 transcoding, however if I use ADTS muxer with AAC output stream inside, metadata is not written.</div><div class="">2. Since one of the tags contains start time of the segment, I need to update its value multiple times (as many as I have 10s segments during transcoding) after calling <span style="color: rgb(99, 99, 36); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre; background-color: rgb(255, 255, 255);" class="">avformat_alloc_output_context2</span> and <span style="color: rgb(99, 99, 36); font-family: Menlo, Monaco, "Courier New", monospace; white-space: pre; background-color: rgb(255, 255, 255);" class="">avformat_write_header</span> . That doesn’t work neither for mp3 nor for adts muxer.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""></div></body></html>