[FFmpeg-user] mpegts metadata not set

Moritz Barsnick barsnick at gmx.net
Mon Jul 2 12:24:18 EEST 2018

On Wed, Jun 27, 2018 at 16:28:26 +0200, Christian Knoefel | Ilm-Provider wrote:
> Hello,

Hi Christian,
thanks for providing the info.

As Carl Eugen mentioned, it's a bug/shortcoming of the rtp_mpegts
muxer. It's not passing the metadata on to the underlying mpegts muxer.
I have created trac ticket #7293 for you[*].

A fix for rtpenc_mpegts.c would look *something* like this:

     mpegts_ctx->oformat   = mpegts_format;
     mpegts_ctx->max_delay = s->max_delay;
+    mpegts_ctx->metadata = s->metadata;
     for (i = 0; i < s->nb_streams; i++) {
         AVStream* st = avformat_new_stream(mpegts_ctx, NULL);
         if (!st)

Note that this fix is probably not fully correct!!! It's just a proof
of concept. I tested it (just with one of your two metadatas), and it
"worked for me" (bug segfaults on exit).


[*] https://trac.ffmpeg.org/ticket/7293

More information about the ffmpeg-user mailing list