[FFmpeg-trac] #9515(ffmpeg:closed): Error on remuxing mkv file

FFmpeg trac at avcodec.org
Thu Nov 18 11:04:17 EET 2021


#9515: Error on remuxing mkv file
---------------------------------------+-----------------------------------
             Reporter:  Markus Hempel  |                    Owner:  (none)
                 Type:  defect         |                   Status:  closed
             Priority:  normal         |                Component:  ffmpeg
              Version:  4.4.1          |               Resolution:  invalid
             Keywords:  subtitles      |               Blocked By:
             Blocking:                 |  Reproduced by developer:  0
Analyzed by developer:  0              |
---------------------------------------+-----------------------------------
Changes (by mkver):

 * status:  new => closed
 * resolution:   => invalid

Comment:

 The stream specifier that you have to use with -codec are for your output
 file, not the input file. The order of streams in your output file is
 determined by the order of the map options: Output stream #0 is your video
 stream, output stream #1 is your audio and output stream #2 is the first
 dvd subtitle stream (input stream #1). -codec:0 copy copies the video
 stream, -codec:1 copy copies output stream #1, i.e. the audio stream (but
 was apparently meant to copy the subtitle stream) whereas -codec:4 copy
 does not match any stream as there are only three output streams. Output
 stream #2 does not have an explicitly set -codec, so it is tried to
 convert it to ass (which is the default subtitle codec for Matroska). And
 this leads to the error message you get.
 Given that you don't want to reencode at all, you can just use -c copy
 which applies to all output streams. Or you can use -codec:2 copy.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9515#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list