close

This ticket was migrated to our GitLab and can now be found here: #14577

Opened 6 years ago

Closed 3 years ago

#14577 closed defect (fixed)

S_DVBSUB detection fails in .mkv

Reported by: Felix Paul Kühne Owned by: Steve Lhomme
Priority: normal Milestone: 4.0.0
Component: Demuxers: MKV Version: master git
Severity: normal Keywords:
Cc: robUx4 Difficulty: unknown
Platform(s): all Work status: Not started

Description

DVBSUBs are correctly detected and displayed when muxed to MPEG TS but fail with MKV.

This supported in Kodi and mplayer.

Change History (15)

comment:1 Changed 6 years ago by Felix Paul Kühne

comment:2 Changed 6 years ago by Jean-Baptiste Kempf

Milestone: 2.2.22.2.x maintenance branch

comment:3 Changed 6 years ago by Jean-Baptiste Kempf

Milestone: 2.2.x maintenance branchBugs paradize

comment:4 Changed 6 years ago by Jean-Baptiste Kempf

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index bfb64a5..90439cf 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1828,6 +1828,10 @@ int32_t matroska_segment_c::TrackInit( mkv_track_t * p_tk )
     {
         p_tk->fmt.i_codec = VLC_CODEC_BD_PG;
     }
+    else if( !strcmp( p_tk->psz_codec, "S_DVBSUB" ) )
+    {
+        p_tk->fmt.i_codec = VLC_CODEC_DVBS;
+    }
     else if( !strcmp( p_tk->psz_codec, "B_VOBBTN" ) )
     {
         p_tk->fmt.i_cat = NAV_ES;

comment:6 Changed 4 years ago by perex

@jb - So what prevents to push this two line fix to the main source tree ?

comment:7 Changed 4 years ago by Jean-Baptiste Kempf

An official spec, I guess

comment:8 Changed 4 years ago by Jean-Baptiste Kempf

Owner: changed from TypX to Steve Lhomme

comment:10 Changed 4 years ago by perex

ping

comment:11 Changed 4 years ago by Steve Lhomme

Simply mapping the codec ID is not enough. We need to map the codec private data internally to something that looks more like a DVB frame to the decoder.

comment:12 Changed 3 years ago by trujulu

Any updates here?

comment:13 Changed 3 years ago by Jean-Baptiste Kempf

No.

comment:15 Changed 3 years ago by Steve Lhomme

Milestone: Bugs paradize4.0.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.