[FFmpeg-user] DVD-Subtitles in matroska container converted by ffmpeg won't disappear playing with vlc

Bernd Butscheidt bbutscheidt at yahoo.de
Sat Mar 22 09:49:54 CET 2014



I created this file:
http://www.file-upload.net/download-8617894/00001.mkv.html

from a TV record with the help of ffmpeg. Now I want to keep only one audio track and the subtitles doing this:
ffmpeg -i 00001.ts -map 0:0 -map 0:2 -map 0:3 -vcodec copy -acodec copy -scodec dvdsub 00001.mkv

The subtitles of the original file 
http://www.file-upload.net/download-8617897/00001.ts.html

are shown fine by any player I tested so far. With the converted one:
http://www.file-upload.net/download-8617894/00001.mkv.html

ffplay and mplayer seem to show the subtitle track as intended. 

CMPlayer/mpv didn't show the subtitles, but the devs made a fix recently, commenting that this is only a work around of a fault done by the conversion of ffmpeg:
https://bbs.archlinux.org/viewtopic.php?pid=1381609#p1381609

With vlc subtitles just seem to be put one over another and do not disappear at least when the next is to be shown. There I was told that the fault isn't with vlc:
https://trac.videolan.org/vlc/ticket/10667

But apparently, the mkv file behaves differently to the source ts formatted file.

I want to ask if this could be taken into consideration and/or this should be reported on https://trac.ffmpeg.org.

Complete uncut output:

/mnt/sda7/ffmpeg_neu/ffmpeg_bin/bin/ffmpeg -i 00001.ts -map 0:0 -map 0:2 -map 0:3 -vcodec copy -acodec copy -scodec dvdsub 00001.mkv
ffmpeg version N-61680-g6abc56e Copyright (c) 2000-2014 the FFmpeg developers
  built on Mar 22 2014 09:38:38 with gcc 4.8.2 (GCC) 20140206 (prerelease)
  configuration: --enable-libzvbi --enable-gpl --enable-libx264 --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-version3 --enable-pic --enable-postproc --prefix=/mnt/sda7/ffmpeg_neu/ffmpeg_bin
  libavutil      52. 67.100 / 52. 67.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 34.101 / 55. 34.101
  libavdevice    55. 11.100 / 55. 11.100
  libavfilter     4.  3.100 /  4.  3.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[NULL @ 0x1a80be0] start time is not set in estimate_timings_from_pts
[mpegts @ 0x1a7a9a0] PES packet size mismatch                                                                                                                                                                                              
    Last message repeated 1 times
Input #0, mpegts, from '00001.ts':
  Duration: 00:00:58.57, start: 6416.993956, bitrate: 9365 kb/s
  Program 132 
    Stream #0:0[0x901]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x903](NAR): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 182 kb/s
    Stream #0:2[0x902](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 384 kb/s
    Stream #0:3[0x904](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Output #0, matroska, to '00001.mkv':
  Metadata:
    encoder         : Lavf55.34.101
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 1k tbn, 90k tbc
    Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 384 kb/s
    Stream #0:2(eng): Subtitle: dvd_subtitle (dvdsub)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
  Stream #0:3 -> #0:2 (dvbsub -> dvdsub)
Press [q] to stop, [?] for help
[mpegts @ 0x1a7a9a0] PES packet size mismatchme=00:00:40.23 bitrate=8723.4kbits/s    
frame= 2885 fps=0.0 q=-1.0 Lsize=   63727kB time=00:00:58.43 bitrate=8933.9kbits/s    
video:60898kB audio:2699kB subtitle:92 data:0 global headers:0kB muxing overhead 0.058140%


More information about the ffmpeg-user mailing list