[FFmpeg-user] the subtitles is gone after video converted

Tony Song ssaoying at gmail.com
Mon Oct 1 16:30:25 CEST 2012


Hi,all

I converted a mkv video file,but the subtitles of the output file is gone.
Following is the information of the video and the command line:

 #ffmpeg -y -i /data/a.mkv -codec copy -scodec copy -bsf:v h264_mp4toannexb
-f mpegts /data/sub.ts
 ffmpeg version N-44805-g00e1afd Copyright (c) 2000-2012 the FFmpeg
developers
  built on Sep 27 2012 19:06:35 with gcc 4.4.4 (GCC) 20100726 (Red Hat
4.4.4-13)
  configuration: --disable-yasm --enable-libx264 --enable-gpl
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.101 / 54. 29.101
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from '/data/a.mkv':
  Metadata:
    creation_time   : 2010-07-15 08:10:08
  Duration: 02:01:50.21, start: 0.000000, bitrate: 2752 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s (default)
    Stream #0:2: Subtitle: ssa (default)
    Metadata:
      title           : 中英字幕
    Stream #0:3: Subtitle: ssa
    Metadata:
      title           : 英中字幕
    Stream #0:4: Subtitle: ssa
    Metadata:
      title           : 中文简体
    Stream #0:5: Subtitle: ssa
    Metadata:
      title           : 中文ç¹ä½“
    Stream #0:6: Subtitle: ssa
    Metadata:
      title           : 英文字幕
    Stream #0:7: Subtitle: subrip
    Metadata:
      title           : æ— ç‰¹æ•ˆä¸­è‹±
[mpegts @ 0x249cf60] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt
every 40 pkts
Output #0, mpegts, to '/data/sub.ts':
  Metadata:
    encoder         : Lavf54.29.101
    Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31,
23.98 fps, 90k tbn, 23.98 tbc (default)
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s (default)
    Stream #0:2: Subtitle: ssa (default)
    Metadata:
      title           : 中英字幕
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)

Any suggestions?
Thanks.
-- 
laugh out loud.


More information about the ffmpeg-user mailing list