[FFmpeg-trac] #2005(avcodec:new): Wrong palette colors with DVD subtitles encoding
FFmpeg
trac at avcodec.org
Sat Dec 8 19:50:09 CET 2012
#2005: Wrong palette colors with DVD subtitles encoding
------------------------------------+-----------------------------------
Reporter: ubitux | Owner:
Type: defect | Status: new
Priority: normal | Component: avcodec
Version: git-master | Resolution:
Keywords: dvdsub | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Description changed by ubitux:
Old description:
> Generate a reference file:
>
> {{{
> ./ffmpeg -f lavfi -i testsrc=s=720x480:d=400 ref.mkv
> }}}
>
> Mux DVD subtitles in:
>
> {{{
> ./ffmpeg -i ref.mkv -i ~/fate-samples/sub/vobsub.idx -c copy -y test-
> remux.mkv
> }}}
>
> Here, colors are fine (yellow foreground):
>
> {{{
> mpv --start=03:00 test-remux.mkv
> mplayer -ss 00:03 test-remux.mkv
> mplayer2 --ss=00:03 test-remux.mkv
> }}}
>
> Note: mpvĀ¹ and vlc show this properly, mplayer and mplayer2 display them
> in black & white (which is fine), ffplay seems to have various troubles.
>
> Now encoding DVD subtitles in:
>
> {{{
> ./ffmpeg -i ref.mkv -i ~/fate-samples/sub/vobsub.idx -c copy -c:s dvdsub
> -y test-encode.mkv
> }}}
>
> Problem: the colors of the subtitles are negated (or shuffled dunno).
> They also appear differently with players displaying them in black and
> white.
>
> [1]: a mplayer2 fork https://github.com/mpv-player/mpv/,
> https://github.com/mpv-player/mpv/blob/master/DOCS/man/en/changes.rst
New description:
Generate a reference file:
{{{
./ffmpeg -f lavfi -i testsrc=s=720x480:d=400 ref.mkv
}}}
Mux DVD subtitles in:
{{{
./ffmpeg -i ref.mkv -i ~/fate-samples/sub/vobsub.idx -c copy -y test-
remux.mkv
}}}
Here, colors are fine (yellow foreground):
{{{
mpv --start=03:00 test-remux.mkv
mplayer -ss 03:00 test-remux.mkv
mplayer2 --ss=03:00 test-remux.mkv
}}}
Note: mpvĀ¹ and vlc show this properly, mplayer and mplayer2 display them
in black & white (which is fine), ffplay seems to have various troubles.
Now encoding DVD subtitles in:
{{{
./ffmpeg -i ref.mkv -i ~/fate-samples/sub/vobsub.idx -c copy -c:s dvdsub
-y test-encode.mkv
}}}
Problem: the colors of the subtitles are negated (or shuffled dunno). They
also appear differently with players displaying them in black and white.
[1]: a mplayer2 fork https://github.com/mpv-player/mpv/,
https://github.com/mpv-player/mpv/blob/master/DOCS/man/en/changes.rst
--
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2005#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list