[FFmpeg-trac] #6602(undetermined:new): Can't set or remove encoder metadata

FFmpeg trac at avcodec.org
Fri Sep 8 02:23:00 EEST 2017


#6602: Can't set or remove encoder metadata
-------------------------------------+-------------------------------------
             Reporter:  Psychonaut   |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by michelel):

 I suggest marking this ticket as invalid.

 I debugged the issue and found that "encoder" metadata is flagged with
 "AV_DICT_DONT_OVERWRITE".

 That means you cannot change the "encoder" label.  However, you can
 provide a user-defined label if you're so inclined with the following
 command:

           $ ffmpeg -i in.264 -metadata myEncoder=h265  -y out.h264

 You'll get this output:
           Metadata:
             myEncoder       : h265
             encoder         : Lavf57.78.100


 Here's the code snippet I'm referring to:

             ist = input_streams[output_streams[i]->source_index];
             av_dict_copy(&output_streams[i]->st->metadata,
 ist->st->metadata, AV_DICT_DONT_OVERWRITE);
             if (!output_streams[i]->stream_copy) {
                 av_dict_set(&output_streams[i]->st->metadata, "encoder",
 NULL, 0);
             }

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6602#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list