[Libav-user] No metadata in adts container using libavformat API

Igor Serganov iserganoff at gmail.com
Mon Nov 28 19:30:34 EET 2022

Hello Carl,

Thank you for your reply. I think now I have realised that I have 2 issues in my scenario:

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.
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 avformat_alloc_output_context2 and avformat_write_header .  That doesn’t work neither for mp3 nor for adts muxer.

> On 27 Nov 2022, at 17:00, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> Am Sa., 26. Nov. 2022 um 19:08 Uhr schrieb Igor Serganov <iserganoff at gmail.com>:
>> Hello team!
>> I would appreciate your help on the following issue.
> I believe you should provide code that can be compiled stand-alone.
> It seems very unlikely that you found a bug, much more likely that
> something is missing in your code (assuming it works with ffmpeg,
> the application).
> Carl Eugen
> _______________________________________________
> 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/20221128/41b21d43/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: metadata.cpp
Type: application/octet-stream
Size: 2699 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20221128/41b21d43/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20221128/41b21d43/attachment-0001.htm>

More information about the Libav-user mailing list