Opened 18 months ago

Last modified 18 months ago

#11499 new enhancement

Better handling for atypical streams (random attachment etc.) in Matroska alike

Reported by: idest Owned by:
Priority: normal Component: avformat
Version: git-master Keywords:
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: yes

Description (last modified by idest)

  1. Create a new video from the files attached to this ticket with the command:
    ffmpeg.exe -i input.mkv -attach text.txt -metadata:s:t mimetype=text/plain -c copy out.mkv
    
  2. Examine the video with
    ffprobe.exe out.mkv
    

Notice the "Unsupported codec with id 0 for input stream 1" error/warning at the end of the output.

FFmpeg version: N-118325-gea381285e7-20250119,
OS: Windows 10 Home.

Attachments (3)

input.mkv (660.1 KB ) - added by idest 18 months ago.
text.txt (18 bytes ) - added by idest 18 months ago.
DejaVuSans.ttf (739.3 KB ) - added by idest 18 months ago.

Download all attachments as: .zip

Change History (8)

by idest, 18 months ago

Attachment: input.mkv added

by idest, 18 months ago

Attachment: text.txt added

comment:1 by idest, 18 months ago

FWIW, ffprobe emits similar errors/warnings for attachments of other MIME types, for example, if I create a new video with the command

ffmpeg.exe -i input.mkv -attach DejaVuSans.ttf -metadata:s:1 mimetype=application/x-truetype-font out2.mkv

and then examine it with ffprobe:

ffprobe.exe out2.mkv

I get output that ends with "Unsupported codec with id 98304 for input stream 1".

Last edited 18 months ago by idest (previous) (diff)

by idest, 18 months ago

Attachment: DejaVuSans.ttf added

comment:2 by idest, 18 months ago

Description: modified (diff)

comment:3 by idest, 18 months ago

Description: modified (diff)

comment:4 by idest, 18 months ago

Summary: ffprobe: "Unsupported codec with id 0" for attachement streamsffprobe: "Unsupported codec" for attachement streams

comment:5 by MasterQuestionable, 18 months ago

Analyzed by developer: set
Cc: MasterQuestionable added
Component: ffprobeavformat
Summary: ffprobe: "Unsupported codec" for attachement streamsBetter handling for atypical streams (random attachment etc.) in Matroska alike
Type: defectenhancement
Version: unspecifiedgit-master

͏    Maybe it should just copy as-is. (for unknown streams)

͏    See also:
͏    https://trac.ffmpeg.org/ticket/11200#comment:8

Note: See TracTickets for help on using tickets.