mdhiggins / sickbeard_mp4_automator

Automatically convert video files to a standardized format with metadata tagging to create a beautiful and uniform media library
MIT License
1.53k stars 201 forks source link

How to handle EIA_608 subtitles / closed captions? #1580

Closed Minds3t closed 2 years ago

Minds3t commented 2 years ago

I recently observed some of my videos have subtitles with the codec EIA_608 embeded. These aren't seem to be processed by SMA. They show as Unknown (Closed Captions) in Plex for example.

Is there a way to let SMA process them? Either ignore them, like you can with other subtitle formats, tag them with default language tag, or, if possible with ffmpeg, transcode them to srt.

mdhiggins commented 2 years ago

Please complete the issue template with the relevant logs for a file having this issue and if you want send me a sample file with that codec and I'll take a look, in theory the codec shouldn't matter and it should already be supported assuming FFMPEG can encode it so without logs I'm not sure what is meant by not "processed"

Minds3t commented 2 years ago

Sorry, there we go:

Source File:

{
  "creatingLibrary": {
    "name": "MediaInfoLib",
    "version": "21.09",
    "url": "https://mediaarea.net/MediaInfo"
  },
  "media": {
    "@ref": "Hideaway.1995.German.AC3D.DL.1080p.AmazonHD.h264-paranoid06.mkv",
    "track": [
      {
        "@type": "General",
        "UniqueID": "191263125013204077400271775952087375563",
        "VideoCount": "1",
        "AudioCount": "2",
        "TextCount": "4",
        "MenuCount": "1",
        "Format": "Matroska",
        "Format_Version": "4",
        "FileSize": "12060156197",
        "Duration": "6353.931",
        "OverallBitRate_Mode": "VBR",
        "OverallBitRate": "15184498",
        "FrameRate": "23.976",
        "FrameCount": "152342",
        "StreamSize": "1948189",
        "IsStreamable": "Yes",
        "Encoded_Date": "UTC 2018-01-27 10:49:22",
        "Encoded_Application": "mkvmerge v9.8.0 ('Kuglblids') 64bit",
        "Encoded_Library": "libebml v1.3.4 + libmatroska v1.4.5"
      },
      {
        "@type": "Video",
        "StreamOrder": "0",
        "ID": "1",
        "UniqueID": "12112240547211445488",
        "Format": "AVC",
        "Format_Profile": "High",
        "Format_Level": "4",
        "Format_Settings_CABAC": "Yes",
        "Format_Settings_RefFrames": "4",
        "CodecID": "V_MPEG4/ISO/AVC",
        "Duration": "6353.931000000",
        "BitRate_Mode": "VBR",
        "BitRate": "14093945",
        "BitRate_Maximum": "15000000",
        "Width": "1920",
        "Height": "1080",
        "Stored_Height": "1088",
        "Sampled_Width": "1920",
        "Sampled_Height": "1080",
        "PixelAspectRatio": "1.000",
        "DisplayAspectRatio": "1.778",
        "FrameRate_Mode": "CFR",
        "FrameRate": "23.976",
        "FrameCount": "152342",
        "ColorSpace": "YUV",
        "ChromaSubsampling": "4:2:0",
        "BitDepth": "8",
        "ScanType": "Progressive",
        "Delay": "0.000",
        "StreamSize": "11193994877",
        "Encoded_Library": "x264 - core 148 r2623 d5b2374",
        "Encoded_Library_Name": "x264",
        "Encoded_Library_Version": "core 148 r2623 d5b2374",
        "Encoded_Library_Settings": "cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=34 / lookahead_threads=5 / sliced_threads=0 / nr=150 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=120 / keyint_min=61 / scenecut=0 / intra_refresh=0 / rc_lookahead=120 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=15000 / vbv_bufsize=31250 / crf_max=0.0 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=3:1.00",
        "Default": "Yes",
        "Forced": "No",
        "BufferSize": "31250000",
        "colour_description_present": "Yes",
        "colour_description_present_Source": "Stream",
        "colour_range": "Limited",
        "colour_range_Source": "Stream",
        "colour_primaries": "BT.709",
        "colour_primaries_Source": "Stream",
        "transfer_characteristics": "BT.709",
        "transfer_characteristics_Source": "Stream",
        "matrix_coefficients": "BT.709",
        "matrix_coefficients_Source": "Stream"
      },
      {
        "@type": "Audio",
        "@typeorder": "1",
        "StreamOrder": "1",
        "ID": "2",
        "UniqueID": "10917758585354017443",
        "Format": "AC-3",
        "Format_Commercial_IfAny": "Dolby Digital",
        "Format_Settings_Endianness": "Big",
        "CodecID": "A_AC3",
        "Duration": "6353.920000000",
        "BitRate_Mode": "CBR",
        "BitRate": "448000",
        "Channels": "6",
        "ChannelPositions": "Front: L C R, Side: L R, LFE",
        "ChannelLayout": "L R C LFE Ls Rs",
        "SamplesPerFrame": "1536",
        "SamplingRate": "48000",
        "SamplingCount": "304988160",
        "FrameRate": "31.250",
        "FrameCount": "198560",
        "Compression_Mode": "Lossy",
        "Delay": "0.000",
        "Delay_Source": "Container",
        "StreamSize": "355819520",
        "StreamSize_Proportion": "0.02950",
        "Title": "AC3 5.1 448Kbps",
        "Language": "de",
        "ServiceKind": "CM",
        "Default": "Yes",
        "Forced": "No",
        "extra": {
          "bsid": "6",
          "dialnorm": "-16",
          "compr": "-0.28",
          "acmod": "7",
          "lfeon": "1",
          "dialnorm_Average": "-16",
          "dialnorm_Minimum": "-16",
          "compr_Average": "5.55",
          "compr_Minimum": "0.53",
          "compr_Maximum": "6.02",
          "compr_Count": "1293"
        }
      },
      {
        "@type": "Audio",
        "@typeorder": "2",
        "StreamOrder": "2",
        "ID": "3",
        "UniqueID": "8271623520224738037",
        "Format": "E-AC-3",
        "Format_Commercial_IfAny": "Dolby Digital Plus",
        "Format_Settings_Endianness": "Big",
        "CodecID": "A_EAC3",
        "Duration": "6353.888000000",
        "BitRate_Mode": "CBR",
        "BitRate": "640000",
        "Channels": "6",
        "ChannelPositions": "Front: L C R, Side: L R, LFE",
        "ChannelLayout": "L R C LFE Ls Rs",
        "SamplesPerFrame": "1536",
        "SamplingRate": "48000",
        "SamplingCount": "304986624",
        "FrameRate": "31.250",
        "FrameCount": "198559",
        "Compression_Mode": "Lossy",
        "Delay": "0.000",
        "Delay_Source": "Container",
        "StreamSize": "508311040",
        "StreamSize_Proportion": "0.04215",
        "Title": "AC3 5.1 640Kbps",
        "Language": "en",
        "ServiceKind": "CM",
        "Default": "No",
        "Forced": "No",
        "extra": {
          "bsid": "16",
          "dialnorm": "-24",
          "compr": "-0.28",
          "acmod": "7",
          "lfeon": "1",
          "dialnorm_Average": "-24",
          "dialnorm_Minimum": "-24",
          "compr_Average": "4.85",
          "compr_Minimum": "0.53",
          "compr_Maximum": "6.02",
          "compr_Count": "1291"
        }
      },
      {
        "@type": "Text",
        "@typeorder": "1",
        "StreamOrder": "3",
        "ID": "4",
        "UniqueID": "3653264193697930126",
        "Format": "UTF-8",
        "CodecID": "S_TEXT/UTF8",
        "Duration": "5089.383000000",
        "BitRate": "0",
        "FrameRate": "0.000",
        "FrameCount": "2",
        "ElementCount": "2",
        "StreamSize": "38",
        "Title": "German Forced",
        "Language": "de",
        "Default": "Yes",
        "Forced": "No"
      },
      {
        "@type": "Text",
        "@typeorder": "2",
        "StreamOrder": "4",
        "ID": "5",
        "UniqueID": "1340732440824725650",
        "Format": "UTF-8",
        "CodecID": "S_TEXT/UTF8",
        "Duration": "6150.111000000",
        "BitRate": "27",
        "FrameRate": "0.087",
        "FrameCount": "532",
        "ElementCount": "532",
        "StreamSize": "20781",
        "Title": "German Subs",
        "Language": "de",
        "Default": "No",
        "Forced": "No"
      },
      {
        "@type": "Text",
        "@typeorder": "3",
        "StreamOrder": "5",
        "ID": "6",
        "UniqueID": "6843173066004690855",
        "Format": "UTF-8",
        "CodecID": "S_TEXT/UTF8",
        "Duration": "6308.903000000",
        "BitRate": "35",
        "FrameRate": "0.160",
        "FrameCount": "1012",
        "ElementCount": "1012",
        "StreamSize": "27813",
        "Title": "English Subs",
        "Language": "en",
        "Default": "No",
        "Forced": "No"
      },
      {
        "@type": "Text",
        "@typeorder": "4",
        "StreamOrder": "6",
        "ID": "7",
        "UniqueID": "7635582823024036653",
        "Format": "UTF-8",
        "CodecID": "S_TEXT/UTF8",
        "Duration": "6320.781000000",
        "BitRate": "42",
        "FrameRate": "0.187",
        "FrameCount": "1185",
        "ElementCount": "1185",
        "StreamSize": "33939",
        "Title": "English SDH",
        "Language": "en",
        "Default": "No",
        "Forced": "No"
      },
      {
        "@type": "Menu",
        "extra": {
          "_00_00_00_000": "en:Start",
          "_00_05_38_401": "en:Harrison family",
          "_00_09_55_401": "en:Sideswiped",
          "_00_12_04_568": "en:Drowned",
          "_00_14_41_635": "en:Hatch crosses over",
          "_00_22_20_035": "en:Violent vision",
          "_00_27_55_869": "en:Manhunt Launched",
          "_00_29_48_103": "en:Harrison's Antiques",
          "_00_33_33_603": "en:Another violent vision",
          "_00_36_18_770": "en:Lagoon Drive",
          "_00_39_29_170": "en:Visions of Regina",
          "_00_44_55_937": "en:Zoe",
          "_00_46_39_004": "en:Vassago's hideaway",
          "_00_50_47_171": "en:Blue Skies Motel",
          "_00_56_38_738": "en:Morton Redlow",
          "_00_59_20_472": "en:Rose Orwetto",
          "_01_06_25_206": "en:Vassago visits Rose",
          "_01_10_24_373": "en:Room 107",
          "_01_16_23_940": "en:Jeremy on tape",
          "_01_18_57_607": "en:Jeremy on tape",
          "_01_23_58_174": "en:With Marian",
          "_01_26_37_075": "en:Kidnapping Regina",
          "_01_28_13_142": "en:Burning vision",
          "_01_30_12_476": "en:Wonderland",
          "_01_31_16_210": "en:Land of the Dead",
          "_01_33_57_444": "en:Blinded by the light",
          "_01_36_37_178": "en:Fighting for Regina",
          "_01_43_45_178": "en:Powers of Light & Dark"
        }
      }
    ]
  }
}
SMA Log:
2022-05-15 22:17:33 - SABPostProcess - INFO - SAB post processing started.
2022-05-15 22:17:33 - resources.readsettings - INFO - /usr/local/sma/venv/bin/python3
2022-05-15 22:17:33 - resources.readsettings - INFO - Loading config file /usr/local/sma/config/autoProcess.ini.
2022-05-15 22:17:33 - SABPostProcess - INFO - Performing conversion
2022-05-15 22:17:33 - resources.mediaprocessor - INFO - Initiating custom validation method.
2022-05-15 22:17:33 - SABPostProcess - INFO - Processing file /mnt/local/downloads/nzbs/sabnzbd/complete/radarr/Hideaway 1995 German AC3D DL 1080p AmazonHD h264-paranoid06/Hideaway.1995.German.AC3D.DL.1080p.AmazonHD.h264-paranoid06.mkv.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Input Data
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - {
    "format": "matroska,webm",
    "format-fullname": "Matroska / WebM",
    "video": {
        "index": 0,
        "codec": "h264",
        "bitrate": 14093945,
        "pix_fmt": "yuv420p",
        "profile": "high",
        "fps": 23.976023976023978,
        "framedata": {
            "pix_fmt": "yuv420p",
            "color_space": "bt709",
            "color_primaries": "bt709",
            "color_transfer": "bt709",
            "side_data_list": [
                {
                    "side_data_type": "ATSC A53 Part 4 Closed Captions"
                },
                {
                    "side_data_type": "H.26[45] User Data Unregistered SEI message"
                }
            ]
        },
        "dimensions": "1920x1080",
        "level": 4.0,
        "field_order": "progressive"
    },
    "audio": [
        {
            "index": 1,
            "codec": "ac3",
            "bitrate": 448000,
            "channels": 6,
            "samplerate": 48000,
            "language": "deu",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions"
        },
        {
            "index": 2,
            "codec": "eac3",
            "bitrate": 640000,
            "channels": 6,
            "samplerate": 48000,
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions"
        }
    ],
    "subtitle": [
        {
            "index": 3,
            "codec": "subrip",
            "disposition": "+default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions",
            "language": "deu"
        },
        {
            "index": 4,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "language": "deu"
        },
        {
            "index": 5,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "language": "eng"
        },
        {
            "index": 6,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced+hearing_impaired-visual_impaired-captions",
            "language": "eng"
        }
    ],
    "attachment": []
}
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Reading video stream.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Video codec detected: h264.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Pix Fmt: yuv420p.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Profile: high.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Initiating custom video copy check method.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Video codec parameters None.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Creating copy video stream from source stream 0.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Initiating custom stream title method.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Reading audio streams.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - The following stream indexes have been identified as being copies: [] [stream-codec-combinations].
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Audio detected for stream 1 - ac3 deu 6 channel.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Initiating custom audio copy check method.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Creating copy audio stream from source stream 1.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Initiating custom stream title method.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Audio detected for stream 2 - eac3 eng 6 channel.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Initiating custom audio copy check method.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Creating ac3 audio stream from source stream 2.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Initiating custom stream title method.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Found 0 streams that can be removed from the output file since they will be duplicates [stream-codec-combinations].
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Final sorting:
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - ['0->0', '1->1']
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Final sorting:
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - ['0->0', '1->1']
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Default audio stream set to deu copy 6 channel stream [audio-default-sorting: ['channels.a', 'map', 'd.comment']].
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Reading subtitle streams.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Subtitle detected for stream 3 - subrip deu.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Stream 3 is text-based subtitle for codec subrip.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Creating srt subtitle stream from source stream 3.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Initiating custom stream title method.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Subtitle detected for stream 4 - subrip deu.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Stream 4 is text-based subtitle for codec subrip.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Creating srt subtitle stream from source stream 4.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Initiating custom stream title method.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Subtitle detected for stream 5 - subrip eng.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Stream 5 is text-based subtitle for codec subrip.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Creating srt subtitle stream from source stream 5.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Initiating custom stream title method.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Subtitle detected for stream 6 - subrip eng.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Stream 6 is text-based subtitle for codec subrip.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Creating srt subtitle stream from source stream 6.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Initiating custom stream title method.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Scanned for external subtitles and found 0 results in your approved languages.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Final sorting:
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - ['0->0', '1->1', '2->2', '3->3']
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Output Data
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - {
    "source": [
        "/mnt/local/downloads/nzbs/sabnzbd/complete/radarr/Hideaway 1995 German AC3D DL 1080p AmazonHD h264-paranoid06/Hideaway.1995.German.AC3D.DL.1080p.AmazonHD.h264-paranoid06.mkv"
    ],
    "format": "mkv",
    "video": {
        "codec": "copy",
        "map": 0,
        "bitrate": 13391.672149999999,
        "crf": -1,
        "maxrate": null,
        "bufsize": null,
        "level": 0.0,
        "profile": null,
        "preset": null,
        "pix_fmt": null,
        "field_order": "progressive",
        "width": null,
        "filter": null,
        "params": null,
        "framedata": {
            "pix_fmt": "yuv420p",
            "color_space": "bt709",
            "color_primaries": "bt709",
            "color_transfer": "bt709",
            "side_data_list": [
                {
                    "side_data_type": "ATSC A53 Part 4 Closed Captions"
                },
                {
                    "side_data_type": "H.26[45] User Data Unregistered SEI message"
                }
            ]
        },
        "title": "",
        "debug": "video"
    },
    "audio": [
        {
            "map": 1,
            "codec": "copy",
            "channels": 6,
            "bitrate": 768,
            "profile": null,
            "quality": 0,
            "filter": null,
            "samplerate": null,
            "sampleformat": "",
            "language": "deu",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "bsf": null,
            "title": "",
            "debug": "audio"
        },
        {
            "map": 2,
            "codec": "ac3",
            "channels": 6,
            "bitrate": 768,
            "profile": null,
            "quality": 0,
            "filter": null,
            "samplerate": null,
            "sampleformat": "",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "bsf": null,
            "title": "",
            "debug": "audio"
        }
    ],
    "subtitle": [
        {
            "map": 3,
            "codec": "srt",
            "language": "deu",
            "disposition": "+default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions",
            "title": "",
            "debug": "subtitle.embed-subs"
        },
        {
            "map": 4,
            "codec": "srt",
            "language": "deu",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "title": "",
            "debug": "subtitle.embed-subs"
        },
        {
            "map": 5,
            "codec": "srt",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions",
            "title": "",
            "debug": "subtitle.embed-subs"
        },
        {
            "map": 6,
            "codec": "srt",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced+hearing_impaired-visual_impaired-captions",
            "title": "",
            "debug": "subtitle.embed-subs"
        }
    ],
    "attachment": []
}
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Preopts
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - [
    "-fix_sub_duration"
]
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Postopts
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - [
    "-threads",
    "0",
    "-metadata:g",
    "encoding_tool=SMA"
]
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - Starting conversion.
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - FFmpeg command:
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - ======================
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - /usr/local/bin/ffmpeg -fix_sub_duration -i "/mnt/local/downloads/nzbs/sabnzbd/complete/radarr/Hideaway 1995 German AC3D DL 1080p AmazonHD h264-paranoid06/Hideaway.1995.German.AC3D.DL.1080p.AmazonHD.h264-paranoid06.mkv.original" -map_metadata -1 -vcodec copy -map 0:0 -metadata:s:v title= -metadata:s:v handler_name= -c:a:0 copy -map 0:1 -metadata:s:a:0 title= -metadata:s:a:0 handler_name= -metadata:s:a:0 language=deu -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:a:1 ac3 -map 0:2 -ac:a:1 6 -b:a:1 768k -metadata:s:a:1 BPS=768000 -metadata:s:a:1 BPS-eng=768000 -metadata:s:a:1 title= -metadata:s:a:1 handler_name= -metadata:s:a:1 language=eng -disposition:a:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:0 srt -map 0:3 -metadata:s:s:0 title= -metadata:s:s:0 handler_name= -metadata:s:s:0 language=deu -disposition:s:0 +default-dub-original-comment-lyrics-karaoke+forced-hearing_impaired-visual_impaired-captions -c:s:1 srt -map 0:4 -metadata:s:s:1 title= -metadata:s:s:1 handler_name= -metadata:s:s:1 language=deu -disposition:s:1 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:2 srt -map 0:5 -metadata:s:s:2 title= -metadata:s:s:2 handler_name= -metadata:s:s:2 language=eng -disposition:s:2 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -c:s:3 srt -map 0:6 -metadata:s:s:3 title= -metadata:s:s:3 handler_name= -metadata:s:s:3 language=eng -disposition:s:3 -default-dub-original-comment-lyrics-karaoke-forced+hearing_impaired-visual_impaired-captions -f matroska -threads 0 -metadata:g encoding_tool=SMA -y "/mnt/local/downloads/nzbs/sabnzbd/complete/radarr/Hideaway 1995 German AC3D DL 1080p AmazonHD h264-paranoid06/Hideaway.1995.German.AC3D.DL.1080p.AmazonHD.h264-paranoid06.mkv"
2022-05-15 22:17:34 - resources.mediaprocessor - INFO - ======================

Yes, it is being processed. I mean if it is possible to exclude or tag it. Screenshot 2022-05-15 222611

mdhiggins commented 2 years ago

Alright so this gets tricky

This isn't a true subtitle track and MediaInfo doesn't even recognize it; its a bitstream filter that's embedded in the video stream of the file separate from any other subtitles

There's no easy way to convert or extract this this stream with FFMPEG though by looking at the framedata in ffprobe you can at least detect that its there

4fd7577e1ff6307c4de3493f20fa1f4f98a7d68c

This adds an option to use a bitstream filter to just remove that bitstream if you prefer it not showing up in Plex

remove-bitstream-subs set to True

Does not require transcoding the video to remove the bitstream so can still be effectively copied if applicable

Will update wiki if this works for you

Minds3t commented 2 years ago

Amazing, works as intended!

Do you happen to have some sort of donation link or anything to support this project? :-)

mdhiggins commented 2 years ago

Nice

No donation needed

Let me know if you encounter any issues with other files with these same kind of subtitles. I made some assumptions about how the side data type can be read to identify the presence of the bitstream that may need to be adjusted if other files have different data

Closing this out!