Vobsub in MKV looses colour

macOS specific usage questions
mac_man_ad
Blank Cone
Blank Cone
Posts: 16
Joined: 16 Apr 2009 06:51
VLC version: 2.0.0
Operating System: OS 10.7.3

Vobsub in MKV looses colour

Postby mac_man_ad » 16 Apr 2009 07:18

Hi all,
I have an mkv movie file with some vob subs. These subs are yellow when vlc 0.99a loads them as separate files (.idx/.sub pair), as they should be, but when muxed into the mkv with mkvmerge 2.60, they display white. re-extracting the subs with mkvextract confirms the idx colour palette is still present.
OSX 10.5.6, VLC 0.99a, MKVTools 2.60

Thanks in advance, Andrew

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Vobsub in MKV looses colour

Postby Jean-Baptiste Kempf » 16 Apr 2009 11:56

Can you share it?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mac_man_ad
Blank Cone
Blank Cone
Posts: 16
Joined: 16 Apr 2009 06:51
VLC version: 2.0.0
Operating System: OS 10.7.3

Re: Vobsub in MKV looses colour

Postby mac_man_ad » 17 Apr 2009 07:14

Can you point me to your preferred upload site?
Also, do you want the orig. sub files and the movie separately?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Vobsub in MKV looses colour

Postby Jean-Baptiste Kempf » 17 Apr 2009 10:33

Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mac_man_ad
Blank Cone
Blank Cone
Posts: 16
Joined: 16 Apr 2009 06:51
VLC version: 2.0.0
Operating System: OS 10.7.3

Re: Vobsub in MKV looses colour

Postby mac_man_ad » 18 Apr 2009 01:33

I do not seem to have drop access when mounted through the Finder, and I have proxy troubles through the cli.
Can I say this problem happens with all the VobSubbed files I play with and leave it at that?
Oh, also the subs show white in Quicktime via Perian, so this may be a ffmpeg or matroska problem rather than VLC Mac.

Sorry for being a nuisance with the ftp.

[edit: some may be partially uploaded, cli connection keeps stalling]

mac_man_ad
Blank Cone
Blank Cone
Posts: 16
Joined: 16 Apr 2009 06:51
VLC version: 2.0.0
Operating System: OS 10.7.3

Re: Vobsub in MKV looses colour

Postby mac_man_ad » 18 Apr 2009 04:31

45 second clip and subs uploaded as vob sub colour.mkv, idx and sub

JohnAStebbins
New Cone
New Cone
Posts: 3
Joined: 10 May 2009 04:34

Re: Vobsub in MKV looses colour

Postby JohnAStebbins » 10 May 2009 04:40

I also ran into this problem. I had a look at the code, and it looks like it ignores the palette. In modules/demux/mkv.c where it processes the CodecPrivate data for tracks with type S_VOBSUB, it reads only the size. All the idx data is contained in the CodecPrivate data and it appears to be ignoring it.

mac_man_ad
Blank Cone
Blank Cone
Posts: 16
Joined: 16 Apr 2009 06:51
VLC version: 2.0.0
Operating System: OS 10.7.3

Re: Vobsub in MKV looses colour

Postby mac_man_ad » 10 May 2009 06:54

Should I point at Handbrake now, where you guys have decoded colour info for ages and are about to implement a VobSub-in-mkv soft sub option?

Cheers, Andrew

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Vobsub in MKV looses colour

Postby Jean-Baptiste Kempf » 11 May 2009 01:47

I also ran into this problem. I had a look at the code, and it looks like it ignores the palette. In modules/demux/mkv.c where it processes the CodecPrivate data for tracks with type S_VOBSUB, it reads only the size. All the idx data is contained in the CodecPrivate data and it appears to be ignoring it.
Are you able to fix it?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JohnAStebbins
New Cone
New Cone
Posts: 3
Joined: 10 May 2009 04:34

Re: Vobsub in MKV looses colour

Postby JohnAStebbins » 11 May 2009 05:28

I'm in the middle of adding vobsub and srt support in mkv to handbrake. But after I get that sorted out, I'll see what I can do.

JohnAStebbins
New Cone
New Cone
Posts: 3
Joined: 10 May 2009 04:34

Re: Vobsub in MKV looses colour

Postby JohnAStebbins » 12 May 2009 02:18

Fixed. I sent a patch to the vlc-devel mailing list. It can also be found here: http://pastebin.com/m2ce212a6

It turns out vlc is now using libavformat for parsing mkv. modules/demux/mkv is no longer used. libavformat returns the data that is needed in AVCodecContext.extradata. Just had to check the container type and the subtitle type, then parse the data.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Vobsub in MKV looses colour

Postby Jean-Baptiste Kempf » 12 May 2009 12:22

I haven't seen the patch on the mailing list.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Vobsub in MKV looses colour

Postby Jean-Baptiste Kempf » 12 May 2009 12:27

Moreover, it seems weird that mkv isn't the default anymore, I'll have to check this.
OK, this is weird, since demux_New should auto-probe mkv, when extension is mkv
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Vobsub in MKV looses colour

Postby Jean-Baptiste Kempf » 14 May 2009 21:10

This has been applied for trunk for VLC 1.1! Thanks so much!
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 18 guests