Jump to content

Emby can't see subtitles inside the mkv file


Recommended Posts

Posted

It seems that Emby doesn't recognize vtt subtitles the are inside the mkv file. I've attached screenshots for a file as the Emby server sees it (first one) and then the same file opened in MKVToolNIX (2nd screenshot) and VLC (3rd screenshot).

I am running Emby server 4.8.8.0 on Synology NAS DS218.

Знімок екрана 2024-06-23 о 15.42.48.png

Знімок екрана 2024-06-23 о 15.43.37.png

Знімок екрана 2024-06-23 о 15.44.01.png

Posted

HI, please try refreshing the metadata on it and see if that helps.

Posted

Unfortunately, neither metadata refreshing nor folder scanning helped subtitle track to appear in Emby.

Happy2Play
Posted

Might need to see a server log but will probably need to see the actual ffprobe info for file.

Posted
37 minutes ago, Happy2Play said:

Might need to see a server log but will probably need to see the actual ffprobe info for file.

Yes and/or a sample video for testing. Thanks.

Posted

I've cropped the first five minutes of a file in question so that I don't need to use file sharing services. I've checked, it still has subtitles visible in MKVToolNix and VLC and no subtitles in Emby.

 

Jeopardy-Test file-001.mkv

Happy2Play
Posted

Looks like they are unsupported.  But devs will have to give proper answer.

Quote

[matroska,webm @ 0000023fc06a4e00] Unknown/unsupported AVCodecID S_TEXT/WEBVTT.
[matroska,webm @ 0000023fc06a4e00] Could not find codec parameters for stream 2 (Subtitle: none): unknown codec


Unsupported codec with id 0 for input stream 2

Spoiler

C:\Users\Media>C:\Users\Media\AppData\Roaming\Emby-Server\system\ffprobe.exe -i file:"C:\Users\Media\Downloads\Jeopardy-Test file-001.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
ffprobe version 5.1-emby_2023_06_25 Copyright (c) 2007-2022 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
{
[matroska,webm @ 0000023fc06a4e00] Unknown/unsupported AVCodecID S_TEXT/WEBVTT.
[matroska,webm @ 0000023fc06a4e00] Could not find codec parameters for stream 2 (Subtitle: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'file:C:\Users\Media\Downloads\Jeopardy-Test file-001.mkv':
  Metadata:
    title           : Jeopardy-Test file
    encoder         : libebml v1.4.5 + libmatroska v1.7.1
    creation_time   : 2024-06-24T06:32:13.000000Z
  Duration: 00:05:05.37, start: 0.000000, bitrate: 3026 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720, SAR 1:1 DAR 16:9, Level 41, 59.94 fps, 59.94 tbr, 1k tbn (default)
    Metadata:
      BPS             : 2658904
      DURATION        : 00:05:03.136000000
      NUMBER_OF_FRAMES: 18170
      NUMBER_OF_BYTES : 100751195
  Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp, Start-Time 0.003s (default)
    Metadata:
      BPS             : 385277
      DURATION        : 00:05:03.146000000
      NUMBER_OF_FRAMES: 14210
      NUMBER_OF_BYTES : 14599431
  Stream #0:2(eng): Subtitle: none, Start-Time 0.082s (default)
    Metadata:
      BPS             : 81
      DURATION        : 00:05:05.290000000
      NUMBER_OF_FRAMES: 103
      NUMBER_OF_BYTES : 3121
Unsupported codec with id 0 for input stream 2
    "streams": [
        {
            "index": 0,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "profile": "High",
            "codec_type": "video",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 1280,
            "height": 720,
            "coded_width": 1280,
            "coded_height": 720,
            "closed_captions": 0,
            "film_grain": 0,
            "has_b_frames": 2,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "16:9",
            "pix_fmt": "yuv420p",
            "level": 41,
            "chroma_location": "left",
            "field_order": "progressive",
            "refs": 1,
            "is_avc": "true",
            "nal_length_size": "4",
            "r_frame_rate": "19001/317",
            "avg_frame_rate": "19001/317",
            "time_base": "1/1000",
            "start_pts": 0,
            "start_time": "0.000000",
            "bits_per_raw_sample": "8",
            "extradata": "\n00000000: 0164 0029 ffe1 0018 6764 0029 ac52 0a01  .d.)....gd.).R..\n00000010: 4016 e840 0000 fa40 0075 3023 c60c 62a0  @..@...@.u0#..b.\n00000020: 0100 0668 e89e 172c 8b                   ...h...,.\n",
            "extradata_size": 41,
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            },
            "tags": {
                "BPS": "2658904",
                "DURATION": "00:05:03.136000000",
                "NUMBER_OF_FRAMES": "18170",
                "NUMBER_OF_BYTES": "100751195",
                "_STATISTICS_WRITING_APP": "mkvmerge v83.0 ('Circle Of Friends') 64-bit",
                "_STATISTICS_WRITING_DATE_UTC": "2024-06-24 06:32:13",
                "_STATISTICS_TAGS": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES"
            }
        },
        {
            "index": 1,
            "codec_name": "aac",
            "codec_long_name": "AAC (Advanced Audio Coding)",
            "profile": "LC",
            "codec_type": "audio",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "sample_fmt": "fltp",
            "sample_rate": "48000",
            "channels": 6,
            "channel_layout": "5.1",
            "bits_per_sample": 0,
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/1000",
            "start_pts": 3,
            "start_time": "0.003000",
            "extradata": "\n00000000: 11b0 56e5 00                             ..V..\n",
            "extradata_size": 5,
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            },
            "tags": {
                "language": "eng",
                "BPS": "385277",
                "DURATION": "00:05:03.146000000",
                "NUMBER_OF_FRAMES": "14210",
                "NUMBER_OF_BYTES": "14599431",
                "_STATISTICS_WRITING_APP": "mkvmerge v83.0 ('Circle Of Friends') 64-bit",
                "_STATISTICS_WRITING_DATE_UTC": "2024-06-24 06:32:13",
                "_STATISTICS_TAGS": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES"
            }
        },
        {
            "index": 2,
            "codec_type": "subtitle",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/1000",
            "start_pts": 82,
            "start_time": "0.082000",
            "extradata": "\n00000000: 5745 4256 5454                           WEBVTT\n",
            "extradata_size": 6,
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            },
            "tags": {
                "language": "eng",
                "BPS": "81",
                "DURATION": "00:05:05.290000000",
                "NUMBER_OF_FRAMES": "103",
                "NUMBER_OF_BYTES": "3121",
                "_STATISTICS_WRITING_APP": "mkvmerge v83.0 ('Circle Of Friends') 64-bit",
                "_STATISTICS_WRITING_DATE_UTC": "2024-06-24 06:32:13",
                "_STATISTICS_TAGS": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES"
            }
        }
    ],
    "chapters": [

    ],
    "format": {
        "filename": "file:C:\\Users\\Media\\Downloads\\Jeopardy-Test file-001.mkv",
        "nb_streams": 3,
        "nb_programs": 0,
        "format_name": "matroska,webm",
        "format_long_name": "Matroska / WebM",
        "start_time": "0.000000",
        "duration": "305.372000",
        "size": "115530527",
        "bit_rate": "3026617",
        "probe_score": 100,
        "tags": {
            "title": "Jeopardy-Test file",
            "encoder": "libebml v1.4.5 + libmatroska v1.7.1",
            "creation_time": "2024-06-24T06:32:13.000000Z"
        }
    }
}

 

Posted
3 minutes ago, Happy2Play said:

Looks like they are unsupported. 

The funniest thing is that these subtitles were made by Emby.

My NAS doesn't have a strong CPU to transcode on the fly, so I convert files to AAC in advance. And while converting it always exports embedded SRT subtitles to an external VTT file. So these VTT subtitles that are now inside MKV file were once external VTT subtitles created by Emby from embedded SRT subs.

That's why it is so surprising for me that they are unsupported.

Happy2Play
Posted

Yes I am pretty sure I have seen other topics the show these webvtt subs in images for conversions.  But have not tested this myself.  But adding this file to release and beta don't show the sub.  But I am sure Luke will know what the issue is.  Will look for other topics on subs though.

Happy2Play
Posted

Topic I was thinking of show them as external subs.  But can say Media Player does not see these internal subs either so I would guess lots of players don't support them yet but will say they work as external subs.

Now I don't know much about these subs but can they be internal subs as they display fine as external subs? @Luke

Posted

Yea I guess ffprobe does not detect them. Embedded vtt is not something you see very often.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...