2017-01-03 5:06 GMT+08:00 Christo Grozev <cgro...@gmail.com>: > > >You can use hls_ts_options to set the mpegts metadata. > I am sorry, but won't this simply copy the metadata to the resulting mgets > segments - but if the stream metadata is not updated following the initial > copy, wouldn't that be the same (initial) metadata, and not the updated one > as it comes in on the input stream? > I just found the describe of metadata for hls in IETF *3.5. WebVTT*
So i think you can save it into two place: 1. mpegts 2. webvtt Is that right? > > Thanks! > > Christo > > > -----Original Message----- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Steven Liu > Sent: Monday, January 2, 2017 12:04 PM > To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> > Subject: Re: [FFmpeg-devel] Input metadata not updated inside mux context > > 2017-01-02 17:10 GMT+08:00 Christo Grozev <cgro...@gmail.com>: > > > > > Happy New Year to all! > > > > I am trying to create a patch for metadata-aware hls splitting. > > Unfortunately, i cannot seem to get updated metadata from the > > AVFormatContext object inside the muxer scope. For example, within > > hlsenc.c I have this:: > > > > static int hls_start(AVFormatContext *s) > > { > > HLSContext *c = s->priv_data; > > AVFormatContext *oc = c->avf; > > AVFormatContext *vtt_oc = c->vtt_avf; > > AVDictionary *options = NULL; > > char *filename, iv_string[KEYSIZE*2 + 1]; > > int err = 0; > > int ret = 0; > > AVDictionaryEntry *tag = NULL; > > > > av_log(s, AV_LOG_DEBUG, "Lets check if there's metadata now.. "); > > > > tag = av_dict_get(oc->metadata, "StreamTitle", tag, > > AV_DICT_IGNORE_SUFFIX); > > printf("%s\n",tag->value); > > > > > > > > However, what is logged is always the original StreamTitle that was > > valid when the initial connection to the input url was made, and is > > not updating it further. Granted, this is the output stream context, > > but it does contain the initial metadata, apparently. What would be > > the way to update it, or to access the input context's metadata? Or is > > the only solution to re-poll the input stream in a separate process? > > > > You can use hls_ts_options to set the mpegts metadata. > > > > > > > > > Thanks in advance > > > > Christo > > > > > > > > _______________________________________________ > > ffmpeg-devel mailing list > > ffmpeg-devel@ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel