[FFmpeg-trac] #4566(avformat:closed): ffmpeg won't copy metadata ("StreamTitle") from audio live stream (transcoding)

FFmpeg trac at avcodec.org
Sat Dec 9 11:54:02 EET 2023


#4566: ffmpeg won't copy metadata ("StreamTitle") from audio live stream
(transcoding)
-------------------------------------+-------------------------------------
             Reporter:  Easydoor     |                    Owner:  (none)
                 Type:  enhancement  |                   Status:  closed
             Priority:  wish         |                Component:  avformat
              Version:  git-master   |               Resolution:  wontfix
             Keywords:  metadata     |               Blocked By:
  icecast                            |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Easydoor):

 Hi Christian,

 I just found some time to apply your patch to the actual version of the
 FFMpeg.
 Sadly, but it is not possible to compile the code. :(
 I got a lot of errors like:

 {{{
 HOSTCC  doc/print_options.o
 CC      fftools/ffmpeg_dec.o
 CC      fftools/ffmpeg_demux.o
 CC      fftools/ffmpeg_enc.o
 CC      fftools/ffmpeg_filter.o
 CC      fftools/ffmpeg_hw.o
 CC      fftools/ffmpeg_mux.o
 CC      fftools/ffmpeg_mux_init.o
 CC      fftools/ffmpeg_opt.o
 CC      fftools/objpool.o
 CC      fftools/sync_queue.o
 CC      fftools/thread_queue.o
 CC      fftools/cmdutils.o
 CC      fftools/opt_common.o
 CC      fftools/ffmpeg.o
 fftools/ffmpeg.c: In function ‘transcode’:
 fftools/ffmpeg.c:1196:5: warning: ISO C90 forbids mixed declarations and
 code [-Wdeclaration-after-statement]
  1196 |     int propagate_metadata_updates = 0;
       |     ^~~
 fftools/ffmpeg.c:1198:36: error: ‘OutputFile’ has no member named ‘ctx’
  1198 |         if (strncmp(output_files[i]->ctx->url, "icecast://", 10)
 == 0) {
       |                                    ^~
 fftools/ffmpeg.c:1236:25: error: ‘nb_input_streams’ undeclared (first use
 in this function); did you mean ‘nb_input_files’?
  1236 |         for (i = 0; i < nb_input_streams &&
 propagate_metadata_updates; i++) {
       |                         ^~~~~~~~~~~~~~~~
       |                         nb_input_files
 fftools/ffmpeg.c:1236:25: note: each undeclared identifier is reported
 only once for each function it appears in
 fftools/ffmpeg.c:1237:19: error: ‘input_streams’ undeclared (first use in
 this function); did you mean ‘InputStream’?
  1237 |             ist = input_streams[i];
       |                   ^~~~~~~~~~~~~
       |                   InputStream
 fftools/ffmpeg.c:1242:50: error: ‘OutputFile’ has no member named ‘ctx’
  1242 |                     av_dict_copy(&output_files[i]->ctx->metadata,
 input_files[ist->file_index]->ctx->metadata, 0);
       |                                                  ^~
 fftools/ffmpeg.c:1243:36: error: ‘OutputFile’ has no member named ‘ctx’
  1243 |                     output_files[i]->ctx->event_flags |=
 AVFMT_EVENT_FLAG_METADATA_UPDATED;
       |                                    ^~
 make: *** [ffbuild/common.mak:81: fftools/ffmpeg.o] Error 1
 make: *** Waiting for unfinished jobs....
 STRIP   libavutil/x86/tx_float.o
 root at vmi1513936:~/ffmpeg_sources/ffmpeg#
 }}}

 Could you please apply the new patch when you have a moment?
 Thank you in advance.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/4566#comment:15>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list