[FFmpeg-trac] #5825(avcodec:closed): Vobsub subtitles won't overlay with some MKV
FFmpeg
trac at avcodec.org
Tue Sep 20 06:44:22 EEST 2016
#5825: Vobsub subtitles won't overlay with some MKV
-------------------------------------+-------------------------------------
Reporter: edumj | Owner:
Type: defect | Status: closed
Priority: important | Component: avcodec
Version: git-master | Resolution: fixed
Keywords: dvdsub | Blocked By:
regression | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by edumj):
There's still something wrong with overlaying and colors.
If I try to overlay subs, I get "[matroska,webm @ 0318c660] Read error"
ffmpeg:
{{{
ffmpeg -palette
"ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff"
-i "%~1" -filter_complex "[0:v][0:s:0]overlay[out]" -map "[out]" -map
0:a:1 -f avi -c:v libxvid -b:v 1500k -vtag XVID -c:a libmp3lame -b:a 128k
"%~n1 overlay.avi"
}}}
output:
{{{
ffmpeg version N-81696-gd38dff8e Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-
bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-
gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm
--enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
--enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-
libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-
libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 29.100 / 55. 29.100
libavcodec 57. 57.100 / 57. 57.100
libavformat 57. 49.100 / 57. 49.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 62.100 / 6. 62.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, matroska,webm, from 'C:\Users\Edumj\Videos\Pa Probar\DVDRip
(MKV) con VobSub's\Francis en la Marina (1955)_cut.mkv':
Metadata:
encoder : libmkv 0.6.5
Duration: 01:16:58.18, start: 0.000000, bitrate: 4 kb/s
Chapter #0:0: start 0.000000, end 84.897000
Metadata:
title : Chapter 1
Chapter #0:1: start 84.897000, end 1048.977000
Metadata:
title : Chapter 2
Chapter #0:2: start 1048.977000, end 1812.817000
Metadata:
title : Chapter 3
Chapter #0:3: start 1812.817000, end 2423.737000
Metadata:
title : Chapter 4
Chapter #0:4: start 2423.737000, end 3226.097000
Metadata:
title : Chapter 5
Chapter #0:5: start 3226.097000, end 3864.937000
Metadata:
title : Chapter 6
Chapter #0:6: start 3864.937000, end 4618.177000
Metadata:
title : Chapter 7
Stream #0:0(eng): Video: h264 (Main), yuv420p(tv,
smpte170m/smpte170m/bt709), 720x384 [SAR 16:15 DAR 2:1], 25 fps, 25 tbr,
1k tbn, 180k tbc (default)
Stream #0:1(spa): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
Stream #0:2(eng): Audio: aac (LC), 48000 Hz, stereo, fltp
Stream #0:3(spa): Subtitle: dvd_subtitle, 720x576
[avi @ 04f6ba40] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
Last message repeated 1 times
[null @ 048eca20] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
Last message repeated 1 times
Output #0, avi, to
'E:\MISDOC~1\CONVER~1\_PACON~1\MEDIAI~1\FFD8CF~1\DVDAXS~1\CONFFM~1\\Francis
en la Marina (1955)_cut overlay.avi':
Metadata:
ISFT : Lavf57.49.100
Chapter #0:0: start 0.000000, end 84.897000
Metadata:
title : Chapter 1
Chapter #0:1: start 84.897000, end 1048.977000
Metadata:
title : Chapter 2
Chapter #0:2: start 1048.977000, end 1812.817000
Metadata:
title : Chapter 3
Chapter #0:3: start 1812.817000, end 2423.737000
Metadata:
title : Chapter 4
Chapter #0:4: start 2423.737000, end 3226.097000
Metadata:
title : Chapter 5
Chapter #0:5: start 3226.097000, end 3864.937000
Metadata:
title : Chapter 6
Chapter #0:6: start 3864.937000, end 4618.177000
Metadata:
title : Chapter 7
Stream #0:0: Video: mpeg4 (libxvid) (XVID / 0x44495658), yuv420p,
720x384 [SAR 16:15 DAR 2:1], q=2-31, 1500 kb/s, 25 fps, 25 tbn, 25 tbc
(default)
Metadata:
encoder : Lavc57.57.100 libxvid
Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000
Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc57.57.100 libmp3lame
Output #1, null, to 'nul':
Metadata:
encoder : Lavf57.49.100
Chapter #1:0: start 0.000000, end 84.897000
Metadata:
title : Chapter 1
Chapter #1:1: start 84.897000, end 1048.977000
Metadata:
title : Chapter 2
Chapter #1:2: start 1048.977000, end 1812.817000
Metadata:
title : Chapter 3
Chapter #1:3: start 1812.817000, end 2423.737000
Metadata:
title : Chapter 4
Chapter #1:4: start 2423.737000, end 3226.097000
Metadata:
title : Chapter 5
Chapter #1:5: start 3226.097000, end 3864.937000
Metadata:
title : Chapter 6
Chapter #1:6: start 3864.937000, end 4618.177000
Metadata:
title : Chapter 7
Stream #1:0(eng): Video: wrapped_avframe, yuv420p, 720x384 [SAR 16:15
DAR 2:1], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:
encoder : Lavc57.57.100 wrapped_avframe
Stream #1:1(spa): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
(default)
Metadata:
encoder : Lavc57.57.100 pcm_s16le
Stream mapping:
Stream #0:0 (h264) -> overlay:main (graph 0)
Stream #0:3 (dvdsub) -> overlay:overlay (graph 0)
overlay (graph 0) -> Stream #0:0 (libxvid)
Stream #0:2 -> #0:1 (aac (native) -> mp3 (libmp3lame))
Stream #0:0 -> #1:0 (h264 (native) -> wrapped_avframe (native))
Stream #0:1 -> #1:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[null @ 048eca20] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 23 >= 23
frame= 135 fps=0.0 q=3.0 q=-0.0 size= 980kB time=00:00:05.75
bitrate=1393.2kbits/s speed=11.5x
frame= 262 fps=262 q=2.0 q=-0.0 size= 1991kB time=00:00:10.83
bitrate=1505.1kbits/s speed=10.8x
frame= 384 fps=256 q=3.0 q=-0.0 size= 3083kB time=00:00:15.72
bitrate=1606.4kbits/s speed=10.5x
[matroska,webm @ 0318c660] Read error
frame= 469 fps=254 q=4.0 Lq=-0.0 size= 3977kB time=00:00:18.76
bitrate=1735.7kbits/s speed=10.2x
video:3820kB audio:3805kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown
}}}
And if I convert it to XSUB, now they show, but transparecy of colors
seems inverted, text is transparent and background is opaque (with any
palette color combination).
It says "Color index 0 is not transparent. Transparency will be messed
up."
ffmpeg:
{{{
ffmpeg -palette
"ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff,ffffff"
-i "%~1" -map 0:v -map 0:a:1 -map 0:s:0 -scodec xsub -f avi -c:v libxvid
-b:v 1500k -vtag XVID -c:a libmp3lame -b:a 128k "%~n1 xsub.avi"
}}}
output:
{{{
ffmpeg version N-81696-gd38dff8e Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-
bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-
gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm
--enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
--enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-
libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-
libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 29.100 / 55. 29.100
libavcodec 57. 57.100 / 57. 57.100
libavformat 57. 49.100 / 57. 49.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 62.100 / 6. 62.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, matroska,webm, from 'C:\Users\Edumj\Videos\Pa Probar\DVDRip
(MKV) con VobSub's\Francis en la Marina (1955)_cut.mkv':
Metadata:
encoder : libmkv 0.6.5
Duration: 01:16:58.18, start: 0.000000, bitrate: 4 kb/s
Chapter #0:0: start 0.000000, end 84.897000
Metadata:
title : Chapter 1
Chapter #0:1: start 84.897000, end 1048.977000
Metadata:
title : Chapter 2
Chapter #0:2: start 1048.977000, end 1812.817000
Metadata:
title : Chapter 3
Chapter #0:3: start 1812.817000, end 2423.737000
Metadata:
title : Chapter 4
Chapter #0:4: start 2423.737000, end 3226.097000
Metadata:
title : Chapter 5
Chapter #0:5: start 3226.097000, end 3864.937000
Metadata:
title : Chapter 6
Chapter #0:6: start 3864.937000, end 4618.177000
Metadata:
title : Chapter 7
Stream #0:0(eng): Video: h264 (Main), yuv420p(tv,
smpte170m/smpte170m/bt709), 720x384 [SAR 16:15 DAR 2:1], 25 fps, 25 tbr,
1k tbn, 180k tbc (default)
Stream #0:1(spa): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
Stream #0:2(eng): Audio: aac (LC), 48000 Hz, stereo, fltp
Stream #0:3(spa): Subtitle: dvd_subtitle, 720x576
[avi @ 050cc800] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
Last message repeated 2 times
[null @ 02f902a0] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
Last message repeated 1 times
Output #0, avi, to
'E:\MISDOC~1\CONVER~1\_PACON~1\MEDIAI~1\FFD8CF~1\DVDAXS~1\CONFFM~1\\Francis
en la Marina (1955)_cut xsub.avi':
Metadata:
ISFT : Lavf57.49.100
Chapter #0:0: start 0.000000, end 84.897000
Metadata:
title : Chapter 1
Chapter #0:1: start 84.897000, end 1048.977000
Metadata:
title : Chapter 2
Chapter #0:2: start 1048.977000, end 1812.817000
Metadata:
title : Chapter 3
Chapter #0:3: start 1812.817000, end 2423.737000
Metadata:
title : Chapter 4
Chapter #0:4: start 2423.737000, end 3226.097000
Metadata:
title : Chapter 5
Chapter #0:5: start 3226.097000, end 3864.937000
Metadata:
title : Chapter 6
Chapter #0:6: start 3864.937000, end 4618.177000
Metadata:
title : Chapter 7
Stream #0:0(eng): Video: mpeg4 (libxvid) (XVID / 0x44495658), yuv420p,
720x384 [SAR 16:15 DAR 2:1], q=2-31, 1500 kb/s, 25 fps, 25 tbn, 25 tbc
(default)
Metadata:
encoder : Lavc57.57.100 libxvid
Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000
Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc57.57.100 libmp3lame
Stream #0:2(spa): Subtitle: xsub (DXSB / 0x42535844), 720x576
Metadata:
encoder : Lavc57.57.100 xsub
Output #1, null, to 'nul':
Metadata:
encoder : Lavf57.49.100
Chapter #1:0: start 0.000000, end 84.897000
Metadata:
title : Chapter 1
Chapter #1:1: start 84.897000, end 1048.977000
Metadata:
title : Chapter 2
Chapter #1:2: start 1048.977000, end 1812.817000
Metadata:
title : Chapter 3
Chapter #1:3: start 1812.817000, end 2423.737000
Metadata:
title : Chapter 4
Chapter #1:4: start 2423.737000, end 3226.097000
Metadata:
title : Chapter 5
Chapter #1:5: start 3226.097000, end 3864.937000
Metadata:
title : Chapter 6
Chapter #1:6: start 3864.937000, end 4618.177000
Metadata:
title : Chapter 7
Stream #1:0(eng): Video: wrapped_avframe, yuv420p, 720x384 [SAR 16:15
DAR 2:1], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:
encoder : Lavc57.57.100 wrapped_avframe
Stream #1:1(spa): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
(default)
Metadata:
encoder : Lavc57.57.100 pcm_s16le
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (libxvid))
Stream #0:2 -> #0:1 (aac (native) -> mp3 (libmp3lame))
Stream #0:3 -> #0:2 (dvd_subtitle (dvdsub) -> xsub (native))
Stream #0:0 -> #1:0 (h264 (native) -> wrapped_avframe (native))
Stream #0:1 -> #1:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[null @ 02f902a0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 23 >= 23
frame= 191 fps=0.0 q=3.0 q=-0.0 size= 14kB time=00:00:07.99 bitrate=
14.3kbits/s speed= 16x
frame= 359 fps=359 q=2.0 q=-0.0 size= 781kB time=00:00:14.69 bitrate=
435.5kbits/s speed=14.7x
[xsub @ 02fa7b00] Color index 0 is not transparent. Transparency will be
messed up.
[matroska,webm @ 003ac5c0] Read error
frame= 469 fps=348 q=4.0 Lq=-0.0 size= 3982kB time=00:00:18.76
bitrate=1738.3kbits/s speed=13.9x
video:3820kB audio:3805kB subtitle:2kB other streams:0kB global
headers:0kB muxing overhead: unknown
}}}
And is my Stream Mapping right? It says "Stream #0:1 -> #1:1 (aac (native)
-> pcm_s16le (native))" but I didn't map that audio, and the others are
repeated when I do xsubs.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5825#comment:14>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list