Page 1 of 1

Burning Subtitles - Selecting Wrong Stream

PostPosted: Wed Jan 22, 2014 1:43 pm
by firefox15
Hello All,

I'm trying to watch a certain show with subtitles enabled. They are embedded into the MKV, and since I'm streaming to a PS3, I need to burn in the subtitles to see them thanks to the PS3's terrible subtitle support. I've configured Serviio to burn in ENG subtitles, and while they are properly burned in, my issue is that Serviio is using the wrong subtitle track.

There are two subtitle tracks in this MKV, both ENG language and coded as such. The first one (Stream #0:3) is what I want Serviio to encode, but it is encoding the second one (Stream #0:4). Stream #0:3 is set as the default, plus it is the first in the list, so why wouldn't Serviio pick that one?

If I remux the file and strip out Stream #0:4 entirely, Serviio does burn-in the proper stream, so the language detection is working as expected. However, for whatever reason, Serviio is using Stream #0:4 for the burn-in. Any ideas?

  Code:
C:\Windows\system32>"C:\Program Files\Serviio\lib\ffmpeg.exe" -i "D:\ServerFolde
rs\TV Shows\Sword Art Online\[CBM]_Sword_Art_Online_-_01_-_The_World_of_Swords_[
720p]_[0F9DF69B].mkv"
ffmpeg version N-54096-ge41bf19 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 18 2013 10:49:28 with gcc 4.7.2 (GCC)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --extr
a-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --a
rch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross
-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  9.100 / 55.  9.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, matroska,webm, from 'D:\ServerFolders\TV Shows\Sword Art Online\[CBM]_
Sword_Art_Online_-_01_-_The_World_of_Swords_[720p]_[0F9DF69B].mkv':
  Metadata:
    creation_time   : 2013-11-19 10:07:06
  Duration: 00:23:42.66, start: 0.000000, bitrate: 3601 kb/s
    Stream #0:0(jpn): Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      title           : H.264/AVC Video
    Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : English: Stereo
    Stream #0:2(jpn): Audio: aac, 48000 Hz, stereo, fltp
    Metadata:
      title           : Japanese: Stereo
    Stream #0:3(eng): Subtitle: ssa (default)
    Metadata:
      title           : English Signs/Songs
    Stream #0:4(eng): Subtitle: ssa
    Metadata:
      title           : English Subtitles
Codec 0x18000 is not in the full list.
    Stream #0:5: Attachment: unknown_codec
    Metadata:
      filename        : jesaya free.ttf
      mimetype        : application/x-truetype-font
Codec 0x18000 is not in the full list.
    Stream #0:6: Attachment: unknown_codec
    Metadata:
      filename        : tahomabd.ttf
      mimetype        : application/x-truetype-font
At least one output file must be specified

C:\Windows\system32>

Re: Burning Subtitles - Selecting Wrong Stream

PostPosted: Tue Feb 11, 2014 11:02 pm
by firefox15
Bump. Anyone?

Re: Burning Subtitles - Selecting Wrong Stream

PostPosted: Wed Feb 12, 2014 5:06 pm
by zip
I guess it just picks one randomly. Will check the code and try to fix it.

Re: Burning Subtitles - Selecting Wrong Stream

PostPosted: Wed Feb 12, 2014 5:37 pm
by firefox15
Thanks, Zip

Re: Burning Subtitles - Selecting Wrong Stream

PostPosted: Sun Mar 02, 2014 3:39 am
by firefox15
Zip, if it helps any, it appears that the last subtitle track is the one being chosen for the burn-in. I had the same issue with another series, so I went ahead and switched the desired subtitle track to the end. Even though another track was set as the default, it picked the last one to burn-in.

Re: Burning Subtitles - Selecting Wrong Stream

PostPosted: Tue Mar 04, 2014 6:00 pm
by zip
It's been fixed for 1.4.1