<div dir="ltr"><div dir="ltr"></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><div>Does this mean that muxing a KLV stream in an mp4 is not yet supported by libav or is there a workaround for this? If the former, would muxing a datastream with a different codec be supported in an mp4?</div><div><br></div><div>It would be great if the muxing.c example could be expanded to include a data stream.<br></div></div></div></div></blockquote><div><br></div><div>I have been making a bit of progress on this in the sense that I now have a minimal working example with timed string-based metadata within a mov (or ts file):<br></div><div><a href="https://gist.github.com/tvercaut/890c9c78159189d685f9f9911a098278">https://gist.github.com/tvercaut/890c9c78159189d685f9f9911a098278</a> </div><div><br></div><div>Unfortunately, it doesn't work with mp4 files and I have had to a codec_tag corresponding to gopro metadata: gpmd or rather MKTAG('g', 'p', 'm', 'd')</div><div>This came after reading this blog post:</div><div><a href="https://coderunner.io/how-to-compress-gopro-movies-and-keep-metadata/">https://coderunner.io/how-to-compress-gopro-movies-and-keep-metadata/</a></div><div>While they seem to be able to create an mp4 with the metadata, that hasn't been my experience so far. Maybe that behaviour of ffmpeg changed with new releases since the blog post? I see there is a related bug report here:</div><div><a href="https://trac.ffmpeg.org/ticket/8338">https://trac.ffmpeg.org/ticket/8338</a></div><div><br></div><div>If there is an alternative that would work with mp4 files (and ideally without hacking the gopro metadata tag), I would be intersted to investigate further.<br></div></div></div>