Opened 10 years ago

Last modified 9 years ago

#4047 new defect

dvdsub -> dvbsub: color palette and postion do not match

Reported by: Jarod42 Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: dvdsub
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Today I used ffmpeg to remux a VOB file to TS. After remuxing I realized, that the DVB subtitles did not match the original DVD subtitles. The colors did not match and the position was shifted.
I was able to reproduce this with this sample here (http://samples.ffmpeg.org/MPEG-VOB/ClosedCaptions/Starship_Troopers.vob) and got the exact same results.

How to reproduce:

% ffmpeg -fflags +genpts -analyzeduration 100000k -probesize 100000k -i Starship_Troopers.vob -c:v copy  -c:a copy -c:s dvbsub -map 0:0 -map 0:4 -map 0:7 -metadata:s:s:0 language=eng -metadata:s:a:0 language=eng -f mpegts SST.ts

ffmpeg version N-46340-gff68ceb
built on Ubuntu 14.04 x86_64

See attached pics.

Attachments (4)

SST-vob.jpg (221.1 KB ) - added by Jarod42 10 years ago.
DVD Subtitles
SST-TS.jpg (219.2 KB ) - added by Jarod42 10 years ago.
DVB Subtitles
SST-vob+TS.jpg (190.3 KB ) - added by Jarod42 10 years ago.
both subs on one pic
SST-vdr.jpg (232.2 KB ) - added by Jarod42 10 years ago.
Screenshot taken from vdr-2.1.6

Download all attachments as: .zip

Change History (14)

by Jarod42, 10 years ago

Attachment: SST-vob.jpg added

DVD Subtitles

by Jarod42, 10 years ago

Attachment: SST-TS.jpg added

DVB Subtitles

comment:1 by Jarod42, 10 years ago

Summary: dvdsub -> dvbsub: color palette and postion do not matchdvdsub -> dvbsub: color palette and position do not match

comment:2 by Carl Eugen Hoyos, 10 years ago

Keywords: dvdsub added; dvbsub color palette position removed
Summary: dvdsub -> dvbsub: color palette and position do not matchdvdsub -> dvbsub: color palette and postion do not match

Is encoding to dvbsub really necessary to reproduce the "issue" you see (that vob files do not contain a palette)? Or does using overlay show the same result indicating that this is not related to dvbsub at all?
Use the -palette option if you don't like the default palette:
http://ffmpeg.org/ffmpeg-codecs.html#dvdsub

comment:3 by Jarod42, 10 years ago

I need to create a TS from the video source, so converting dvdsubs to dvbsubs is required.
After figuring out, that the -palette option needs to be put before the input file, the color "mismatch" problem is solved.
The position of the subs however does not match the original. After a closer look at the converted subs I figured they are shrunk vertically. So I tried to resize them using -s:s:0 720x576 which unfortunately did not have any effect.

Last edited 10 years ago by Jarod42 (previous) (diff)

in reply to:  3 comment:4 by Carl Eugen Hoyos, 10 years ago

Replying to Jarod42:

I need to create a TS from the video source, so converting dvdsubs to dvbsubs is required.

I understand that this is your usecase. But a bug report should be as simple as possible and reading your original report makes one believe that there is an issue creating dvbsub subtitles.

The position of the subs however does not match the original. After a closer look at the converted subs I figured they are shrunk vertically. So I tried to resize them using -s:s:0 720x576 which unfortunately did not have any effect.

I cannot reproduce this here and I don't see it looking at your screenshots either. Is the difference very small?

by Jarod42, 10 years ago

Attachment: SST-vob+TS.jpg added

both subs on one pic

comment:5 by Jarod42, 10 years ago

I created a third picture from the two already attached pics where I put the picture with the converted subs (yellow) over the original (white).
It is clear to see that they are not at the same position, nor are they the same size.

comment:6 by Carl Eugen Hoyos, 10 years ago

I still cannot reproduce: The word three is over Ibanez' right hand here, both on the original (vob) file and for the reencoded transport stream.
Which application did you use for playing the transport stream?

comment:7 by Jarod42, 10 years ago

I was using VLC 2.1.5 to replay the TS and that might be the cause. When using ffplay the subs are at the same position, before and after the conversion.

by Jarod42, 10 years ago

Attachment: SST-vdr.jpg added

Screenshot taken from vdr-2.1.6

comment:8 by Jarod42, 10 years ago

Today I did another test with VDR 2.1.6. I used it to replay the short sample with re-encoded subs to dvbsubs and a custom palette. The position of the subs do not match the ones from the VOB. So far ffplay seems to be the only program to display the subtititles at their correct position.

comment:9 by Anshul, 9 years ago

When we play Starship_Troopers.vob using ffplay the subtitles are green color, while in vlc they are White with black Shadow, Imo it looks like there is some problem in decoder of dvbsubdec.

comment:10 by Carl Eugen Hoyos, 9 years ago

A vob file does not contain subtitle colour information, there is no bug regarding the colour of the subtitle that can be fixed within the subtitle decoder when playing this file.

Note: See TracTickets for help on using tickets.