[FFmpeg-trac] #2260(ffmpeg:new): FFmpeg doesn't auto-select subtitle codec for MP4

FFmpeg trac at avcodec.org
Sat Dec 31 18:01:33 EET 2022


#2260: FFmpeg doesn't auto-select subtitle codec for MP4
------------------------------------+----------------------------------
             Reporter:  slhck       |                    Owner:  (none)
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  ffmpeg
              Version:  git-master  |               Resolution:
             Keywords:  mov mp4     |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+----------------------------------
Changes (by colemarc):

 * cc: colemarc (added)
 * keywords:  mov => mov mp4

Comment:

 Six years after this issue is still present.


 {{{
 ffmpeg -i vidaud.mp4 -i subs.srt -map 0 -map 1 -c:v copy -c:a copy
 output.mp4
 ffmpeg version 2022-11-28-git-becbb22eb0-full_build-www.gyan.dev Copyright
 (c) 2000-2022 the FFmpeg developers
 [...]
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'JPK - Black.Sails.S01E02.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf59.34.102
   Duration: 00:00:47.51, start: 0.000000, bitrate: 11153 kb/s
   Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661),
 yuv420p(tv, bt709, progressive), 1620x1080 [SAR 1:1 DAR 3:2], 11020 kb/s,
 24 fps, 24 tbr, 90k tbn (default)
     Metadata:
       handler_name    : VideoHandler
       vendor_id       : [0][0][0][0]
   Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 128 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
       vendor_id       : [0][0][0][0]
   Stream #0:2[0x3](und): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s
 (default)
     Metadata:
       handler_name    : SubtitleHandler
 Input #1, srt, from 'JPK - Black.Sails.S01E02.srt':
   Duration: N/A, bitrate: N/A
   Stream #1:0: Subtitle: subrip
 Automatic encoder selection failed for output stream #0:2. Default encoder
 for format mp4 (codec none) is probably disabled. Please choose an encoder
 manually.
 Error selecting an encoder for stream 0:2

 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/2260#comment:13>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list