From 53c3b8bf59fcfa42840152a0ef8af1ed18ee1429 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 17 Jul 2019 10:13:20 -0700 Subject: [PATCH] stream: add support for eia 608 subtitle tracks eia 608 embedded in video was supported (i.e. ffmpeg frame side data AV_FRAME_DATA_A53_CC), but not as it's own track. Fixes https://github.com/HandBrake/HandBrake/issues/1300 --- libhb/stream.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libhb/stream.c b/libhb/stream.c index 1fa701827..d95ef8ad3 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -5455,6 +5455,13 @@ static void add_ffmpeg_subtitle( hb_title_t *title, hb_stream_t *stream, int id subtitle->config.dest = RENDERSUB; subtitle->codec = WORK_DECPGSSUB; break; + case AV_CODEC_ID_EIA_608: + subtitle->format = TEXTSUB; + subtitle->source = CC608SUB; + subtitle->config.dest = PASSTHRUSUB; + subtitle->codec = WORK_DECCC608; + subtitle->attributes = HB_SUBTITLE_ATTR_CC; + break; default: hb_log( "add_ffmpeg_subtitle: unknown subtitle stream type: 0x%x", (int) codecpar->codec_id ); -- 2.40.0