This project has moved and is read-only. For the latest updates, please go here.

Converting from WTV, not getting any subtitles

Feb 27 at 2:41 AM
Apologies if this has been answered elsewhere, but my searches didn't find it if it has.

I'm using Windows Media Centre to record TV. The .wtv files have subtitles, but none of the .mp4 files created by MCEBuddy have any subtitles. I don't know whether this is a result of my settings or something else. The conversion jobs don't have the "Extract subtitles and closed captions" box ticked, but in the Expert settings I do have the "Add subtitles and chapters" box ticked, which I assumed would be enough.

Does MCEBuddy require that both boxes are ticked? I assumed, based on the mouseover tooltips, that the first option just caused a .srt file to be created, but that it wasn't necessary if you wanted the subtitles to be embedded in the final file, which is my preference. Is the first tickbox a prerequisite for any form of subtitles?

Thanks in advance.
Feb 27 at 1:24 PM
You have to extract the sub's into a separate file, there is no embedding into a mp4.
Feb 28 at 1:12 PM
Yes both boxes have to be checked. The first will extract it if possible. Without extracting there's nothing to embed.
Feb 28 at 7:25 PM
tsigwing wrote:
You have to extract the sub's into a separate file, there is no embedding into a mp4.
I've got a load of DVD rips done using Handbrake that beg to differ.

rboy1 wrote:
Yes both boxes have to be checked. The first will extract it if possible. Without extracting there's nothing to embed.
OK, thanks.
Mar 1 at 12:20 AM
Well, with both boxes ticked, I'm still not seeing any subtitles in the converted file. Is there anything else I can try?
Mar 1 at 11:03 AM
You'll have to go through your logs to see what's going on. For what it's worth try updating to 2.4.7 which has an updated version of ccextractor that is more stable and extracts more types of captions and subtitles from wtv files.
Mar 1 at 1:26 PM
NJMorf wrote:
tsigwing wrote:
You have to extract the sub's into a separate file, there is no embedding into a mp4.
I've got a load of DVD rips done using Handbrake that beg to differ.

rboy1 wrote:
Yes both boxes have to be checked. The first will extract it if possible. Without extracting there's nothing to embed.
OK, thanks.
I would love to be wrong, please prove to me I am, however, I don't think that MCEBuddy will embed any subtitles into a MP4 file. It will extract the sub's into a external .srt file with the same name as the video file.
Mar 1 at 8:05 PM
tsigwing wrote:
I would love to be wrong, please prove to me I am, however, I don't think that MCEBuddy will embed any subtitles into a MP4 file. It will extract the sub's into a external .srt file with the same name as the video file.
Well, MP4s can definitely hold subtitles, but whether or not MCEBuddy will embed them is still up for discussion.

rboy1 wrote:
You'll have to go through your logs to see what's going on. For what it's worth try updating to 2.4.7 which has an updated version of ccextractor that is more stable and extracts more types of captions and subtitles from wtv files.
Following your suggestion, I've installed 2.4.7 and tried again: still no subtitles. Looking in the log, I see several mentions of subtitles, particularly a few lines like this:
Embed Subtitles and Chapters -> False
and
Embed Subtitles and Chapters -> True
The first occurrence (false) is in a section with this heading:
2017-03-01T19:21:39 MCEBuddy.Engine.Core --> MCEBuddy engine settings -> CONVERSION TASK OPTIONS ==>
False appears again under this heading:
2017-03-01T19:21:57 MCEBuddy.Engine.Core --> MCEBuddy engine settings -> CONVERSION TASK OPTIONS ==>
True appears under these headings:
2017-03-01T19:24:40 MCEBuddy.Engine.Core --> MCEBuddy engine settings -> CONVERSION TASK OPTIONS ==>

2017-03-01T19:24:41 MCEBuddy.Engine.Core --> MCEBuddy engine settings -> CONVERSION TASK OPTIONS ==>
I'm guessing that MCEBuddy is reading the settings incorrectly during whichever pass is supposed to pull the subtitles from the file, so even though it's subsequently aware that it's supposed to be embedding them, it has nothing to embed. Is that a reasonable inference?
Mar 1 at 9:21 PM
Warning: wall of log text incoming.

Looking in the log specific to the file I just converted, I found several lines relating to subtitles that may be relevant (120 lines out of 218,000 - that's one hell of a log file). There's a lot of repetition in even this set of 120 lines. Here are some of the hits.
Line 96: Embed Subtitles and Chapters -> True
Line 308: 2017-03-01T19:24:44 MCEBuddy.AppWrapper.Base -->     WM/MediaIsSubtitled: false
Line 356: 2017-03-01T19:24:44 MCEBuddy.AppWrapper.Base -->     Stream #0:2[0x44](eng): Subtitle: dvb_subtitle
Line 308 is wrong - the original .wtv file definitely contains subtitles, as line 356 seems to confirm. These lines appear later:
Line 842: SUBTITLE TRACK INFO ->
Line 843: Subtitle stream -> 2
Line 844: Subtitle language -> eng
Line 845: Subtitle codec name -> dvb_subtitle
Line 845: Subtitle codec name -> dvb_subtitle
Line 846: Subtitle stream PID -> 68
Then a load more appear:
Line 2833: INFORMATION> 2017-03-01T19:26:00 MCEBuddy.Transcode.CCandSubtitles --> Extracting Closed Captions as SRT file

Line 2835: 2017-03-01T19:26:00 MCEBuddy.Transcode.CCandSubtitles --> Working Path C:\Program Files\MCEBuddy2x\working0
Line 2836: 2017-03-01T19:26:00 MCEBuddy.Transcode.CCandSubtitles --> CC Options : default

Line 2934: 2017-03-01T19:26:01 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "codec_name": "dvb_subtitle",
Line 2935: 2017-03-01T19:26:01 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "codec_long_name": "DVB subtitles",
Line 2936: 2017-03-01T19:26:01 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "codec_type": "subtitle",

Line 3033: 2017-03-01T19:26:01 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "WM/MediaIsSubtitled": "false",
And these:
Line 3127: INFORMATION> 2017-03-01T19:26:03 MCEBuddy.Transcode.CCandSubtitles --> Video duration : 4197.656
Line 3168: INFORMATION> 2017-03-01T19:26:06 MCEBuddy.Transcode.CCandSubtitles --> Validating and cleaning SRT file
Line 3169: 2017-03-01T19:26:06 MCEBuddy.Transcode.CCandSubtitles --> SRT File C:\Program Files\MCEBuddy2x\working0\NCIS- Los Angeles_Channel 5_2017_02_28_14_10_00.srt
Line 3170: INFORMATION> 2017-03-01T19:26:06 MCEBuddy.Transcode.CCandSubtitles --> Validating and cleaning SRT file
Line 3171: 2017-03-01T19:26:06 MCEBuddy.Transcode.CCandSubtitles --> SRT File C:\Program Files\MCEBuddy2x\working0\NCIS- Los Angeles_Channel 5_2017_02_28_14_10_00.srt
Line 3172: WARNING> 2017-03-01T19:26:06 MCEBuddy.Transcode.CCandSubtitles --> No valid SRT file found
Line 3174: INFORMATION> 2017-03-01T19:26:06 MCEBuddy.Transcode.CCandSubtitles --> Extracting Closed Captions as SRT file
Looking in the working directory, there are no files after the conversion has completed, so I assume anything put there was deleted. Seems evident that something is wrong with the .srt file, or that it was never created in the first place.

Shortly after the above lines it's doing the same thing again. The video duration is shorter this time, so I guess it's after the first few seconds of the vid have been chopped off:
Line 3181: INFORMATION> 2017-03-01T19:26:06 MCEBuddy.Transcode.CCandSubtitles --> Video duration : 4181.488
Line 3360: INFORMATION> 2017-03-01T19:26:12 MCEBuddy.Transcode.CCandSubtitles --> Validating and cleaning SRT file
Line 3361: 2017-03-01T19:26:12 MCEBuddy.Transcode.CCandSubtitles --> SRT File C:\Program Files\MCEBuddy2x\working0\NCIS- Los Angeles_Channel 5_2017_02_28_14_10_00.srt
Line 3362: INFORMATION> 2017-03-01T19:26:12 MCEBuddy.Transcode.CCandSubtitles --> Validating and cleaning SRT file
Line 3363: 2017-03-01T19:26:12 MCEBuddy.Transcode.CCandSubtitles --> SRT File C:\Program Files\MCEBuddy2x\working0\NCIS- Los Angeles_Channel 5_2017_02_28_14_10_00.srt
Line 3364: WARNING> 2017-03-01T19:26:12 MCEBuddy.Transcode.CCandSubtitles --> No valid SRT file found
A bit later and it's looking at subtitles again:
Line 3813: 2017-03-01T19:27:04 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "codec_name": "dvb_subtitle",
Line 3814: 2017-03-01T19:27:04 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "codec_long_name": "DVB subtitles",
Line 3815: 2017-03-01T19:27:04 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "codec_type": "subtitle",
Line 3897: 2017-03-01T19:27:04 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "WM/SubTitleDescription": "Police drama series. The team are embroiled in a race against the clock to find a classified and highly dangerous device which could destroy Los Angeles. (S3 Ep 11)[S] ",
Again, it says they're not included:
Line 3912: 2017-03-01T19:27:04 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "WM/MediaIsSubtitled": "false",
But not long after, it seems to think that they are included:
Line 3998: SUBTITLE TRACK INFO ->
Line 3999: Subtitle stream -> 2
Line 4000: Subtitle language -> eng
Line 4001: Subtitle codec name -> dvb_subtitle
Line 4001: Subtitle codec name -> dvb_subtitle
Line 4002: Subtitle stream PID -> 68
Here it seems that the options are being set before the conversion, but not necessarily the option I thought I was choosing (i.e. the option to display the subtitles, rather than burning them in):
Line 4208: 2017-03-01T19:27:14 MCEBuddy.Transcode.ConvertWithFfmpeg --> Subtitle burn (SubtitleBurn) : False
Line 4208: 2017-03-01T19:27:14 MCEBuddy.Transcode.ConvertWithFfmpeg --> Subtitle burn (SubtitleBurn) : False
Finally, a long way down the log, it mentions subtitles again, and again says that there are none in the video file, but at this point I suspect it's looking at the .mp4 file, not the original .wtv file:
Line 217966: 2017-03-01T19:45:58 MCEBuddy.AppWrapper.FFmpeg --> video:1892440kB audio:130565kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.113607%
Line 218083: 2017-03-01T19:46:01 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "codec_name": "dvb_subtitle",
Line 218084: 2017-03-01T19:46:01 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "codec_long_name": "DVB subtitles",
Line 218085: 2017-03-01T19:46:01 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "codec_type": "subtitle",
Line 218167: 2017-03-01T19:46:01 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "WM/SubTitleDescription": "Police drama series. The team are embroiled in a race against the clock to find a classified and highly dangerous device which could destroy Los Angeles. (S3 Ep 11)[S] ",
Line 218182: 2017-03-01T19:46:01 MCEBuddy.AppWrapper.FFmpegMediaInfo -->             "WM/MediaIsSubtitled": "false",
Line 218268: SUBTITLE TRACK INFO ->
Line 218269: Subtitle stream -> 2
Line 218270: Subtitle language -> eng
Line 218271: Subtitle codec name -> dvb_subtitle
Line 218271: Subtitle codec name -> dvb_subtitle
Line 218272: Subtitle stream PID -> 68
And then these lines suggest that MCEBuddy thinks it's been successful:
Line 218276: INFORMATION> 2017-03-01T19:46:03 MCEBuddy.Engine.ConversionJob --> Adding subtitles and chapters to file
Line 218277: --> Subtitle File : 
Line 218280: 2017-03-01T19:46:03 MCEBuddy.Engine.ConversionJob --> Finished adding subtitles and chapters to file, file size [KB] 2,025,303.00
Line 218419: --> <03/01/2017 19:46:03>  <00:00:00>      <Adding subtitles and chapters to file>
That last line, 218419, is not quite the last line in the log. It appears in this block, which again makes me think that MCEBuddy thinks it's successfully added subtitles:
--> <Start At Date/Time> <Duration (hh:mm:ss)> <Activity>
--> <03/01/2017 19:24:46> <00:00:00> <Running custom commands>
--> <03/01/2017 19:24:46> <00:00:21> <Getting show information and banner from Internet sources>
--> <03/01/2017 19:25:07> <00:00:00> <Running custom commands>
--> <03/01/2017 19:25:07> <00:00:06> <Checking for disk space>
--> <03/01/2017 19:25:14> <00:00:26> <Remuxing recording>
--> <03/01/2017 19:25:40> <00:00:06> <Analyzing video information>
--> <03/01/2017 19:25:47> <00:00:13> <Trimming video recording>
--> <03/01/2017 19:26:00> <00:00:00> <Extracting closed captions>
--> <03/01/2017 19:26:00> <00:00:11> <Extracting closed captions>
--> <03/01/2017 19:26:12> <00:00:00> <Running custom commands>
--> <03/01/2017 19:26:12> <00:00:54> <Analyzing video information>
--> <03/01/2017 19:27:06> <00:18:57> <Converting>
--> <03/01/2017 19:46:03> <00:00:00> <Adding subtitles and chapters to file>
--> <03/01/2017 19:46:03> <00:00:07> <Writing show information>
--> <03/01/2017 19:46:10> <00:00:00> <Renaming file using show information>
--> <03/01/2017 19:46:10> <00:00:00> <Running custom commands>
--> <03/01/2017 19:46:10> <00:00:09> <Moving converted file to destination>
--> <03/01/2017 19:46:20> <00:00:00> <Running custom commands>
--> <03/01/2017 19:46:20> <00:00:00> <Success - All done!>
-->
Anyway, I think that the settings are right, I know that the subtitles exist within the source file, and it's clear that Buddy's attempting to process them, but it looks like it's failing.
Mar 2 at 2:34 AM
Two key lines
  1. dvb subtitles. These aren't text sub titles but rather bitmap images. Currently ccextractor cannot convert bitmaps to text
  2. Hence it says no valid SRT files found.
Mcebuddy can only handle text based subtitles for now. That's why you don't see them extracted and embedded.
Marked as answer by rboy1 on 3/4/2017 at 5:43 AM
Mar 2 at 6:58 PM
Bah. Is that something it's likely to be able to do in the future? I've just googled it and the results suggest that it's a problem for all sorts of people/software and has been for years, so I'm guessing I shouldn't hold my breath.