Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decimal.InvalidOperation when using mediainfo provider. #87

Closed
bpoxy opened this issue Jul 1, 2023 · 6 comments
Closed

decimal.InvalidOperation when using mediainfo provider. #87

bpoxy opened this issue Jul 1, 2023 · 6 comments

Comments

@bpoxy
Copy link

bpoxy commented Jul 1, 2023

This does not occur when using ffmpeg provider.

>>> know(video_path=rf"\\?\Z:\Videos\Decimal Exception.mkv", context={"provider": "mediainfo"})
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\api.py", line 59, in know
    result = provider.describe(video_path, context)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\providers\mediainfo.py", line 337, in describe
    result = self._describe_tracks(video_path, general_tracks[0] if general_tracks else {},
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\provider.py", line 66, in _describe_tracks
    t = self._validate_track(track_type, self._describe_track(track, track_type, context))
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\provider.py", line 114, in _describe_track
    value = rule.execute(props, pv_props, context)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\rules\audio.py", line 56, in execute
    c += Decimal(i)
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\api.py", line 65, in know
    raise KnowitException(debug_info(context=context, exc_info=True))
knowit.api.KnowitException: +-------------------------------------------------------+
|                     KnowIt 0.5.2                      |
+-------------------------------------------------------+
|                      pymediainfo                      |
|                         6.0.1                         |
|       C:\Program Files\MediaInfo\MediaInfo.dll        |
|                         v23.3                         |
|                                                       |
| ilities\ffmpeg-6.0-full_build-shared\bin\ffprobe.exe  |
|             v6.0-full_build-www.gyan.dev              |
|                                                       |
|       C:\Program Files\MKVToolNix\mkvmerge.exe        |
|                         v76.0                         |
|                                                       |
|                        enzyme                         |
|                         0.4.1                         |
+-------------------------------------------------------+
|                  provider: mediainfo                  |
|                   profile: default                    |
+-------------------------------------------------------+
{
    "creatingLibrary": {
        "name": "MediaInfoLib",
        "version": "23.03",
        "url": "https://mediaarea.net/MediaInfo"
    },
    "media": {
        "@ref": "\\\\?\\Z:\\Videos\\Decimal Exception.mkv",
        "track": [
            {
                "@type": "General",
                "Count": "345",
                "StreamCount": "1",
                "StreamKind": "General",
                "StreamKind_String": "General",
                "StreamKindID": "0",
                "UniqueID": "292286342269007854029920930833471770732",
                "UniqueID_String": "292286342269007854029920930833471770732 (0xDBE44D48BCB1D253C93F870206DE106C)",
                "VideoCount": "1",
                "AudioCount": "1",
                "TextCount": "3",
                "MenuCount": "1",
                "Video_Format_List": "HEVC",
                "Video_Format_WithHint_List": "HEVC",
                "Video_Codec_List": "HEVC",
                "Audio_Format_List": "DTS XLL",
                "Audio_Format_WithHint_List": "DTS XLL",
                "Audio_Codec_List": "DTS XLL",
                "Audio_Language_List": "English",
                "Text_Format_List": "PGS / PGS / PGS",
                "Text_Format_WithHint_List": "PGS / PGS / PGS",
                "Text_Codec_List": "PGS / PGS / PGS",
                "Text_Language_List": "English / German / German",
                "CompleteName": "\\\\?\\Z:\\Videos\\Decimal Exception.mkv",
                "FolderName": "\\\\?\\Z:\\Videos",
                "FileNameExtension": "Decimal Exception.mkv",
                "FileName": "Decimal Exception",
                "FileExtension": "mkv",
                "Format": "Matroska",
                "Format_String": "Matroska",
                "Format_Url": "https://matroska.org/downloads/windows.html",
                "Format_Extensions": "mkv mk3d mka mks",
                "Format_Commercial": "Matroska",
                "Format_Version": "4",
                "FileSize": "9913540298",
                "FileSize_String": "9.23 GiB",
                "FileSize_String1": "9 GiB",
                "FileSize_String2": "9.2 GiB",
                "FileSize_String3": "9.23 GiB",
                "FileSize_String4": "9.233 GiB",
                "Duration": "5447.525",
                "Duration_String": "1 h 30 min",
                "Duration_String1": "1 h 30 min 47 s 525 ms",
                "Duration_String2": "1 h 30 min",
                "Duration_String3": "01:30:47.525",
                "Duration_String4": "01:30:48;19",
                "Duration_String5": "01:30:47.525 (01:30:48;19)",
                "OverallBitRate_Mode": "VBR",
                "OverallBitRate_Mode_String": "Variable",
                "OverallBitRate": "14558597",
                "OverallBitRate_String": "14.6 Mb/s",
                "FrameRate": "23.976",
                "FrameRate_String": "23.976 FPS",
                "FrameCount": "130609",
                "StreamSize": "4943156",
                "StreamSize_String": "4.71 MiB (0%)",
                "StreamSize_String1": "5 MiB",
                "StreamSize_String2": "4.7 MiB",
                "StreamSize_String3": "4.71 MiB",
                "StreamSize_String4": "4.714 MiB",
                "StreamSize_String5": "4.71 MiB (0%)",
                "StreamSize_Proportion": "0.00050",
                "IsStreamable": "Yes",
                "Title": "Decimal Exception.mkv",
                "Movie": "Decimal Exception.mkv",
                "File_Created_Date": "2023-02-26 01:27:20.585 UTC",
                "File_Created_Date_Local": "2023-02-25 19:27:20.585",
                "File_Modified_Date": "2023-02-26 01:27:19.754 UTC",
                "File_Modified_Date_Local": "2023-02-25 19:27:19.754",
                "Encoded_Application": "Lavf59.27.100",
                "Encoded_Application_String": "Lavf59.27.100",
                "Encoded_Library": "Lavf59.27.100",
                "Encoded_Library_String": "Lavf59.27.100",
                "extra": {
                    "ErrorDetectionType": "Per level 1"
                }
            },
            {
                "@type": "Video",
                "Count": "381",
                "StreamCount": "1",
                "StreamKind": "Video",
                "StreamKind_String": "Video",
                "StreamKindID": "0",
                "StreamOrder": "0",
                "ID": "1",
                "ID_String": "1",
                "UniqueID": "13689891829281849816",
                "Format": "HEVC",
                "Format_String": "HEVC",
                "Format_Info": "High Efficiency Video Coding",
                "Format_Url": "http://www.itu.int",
                "Format_Commercial": "HEVC",
                "Format_Profile": "Main 10",
                "Format_Level": "4",
                "Format_Tier": "Main",
                "InternetMediaType": "video/H265",
                "CodecID": "V_MPEGH/ISO/HEVC",
                "Duration": "5447.525000000",
                "Duration_String": "1 h 30 min",
                "Duration_String1": "1 h 30 min 47 s 525 ms",
                "Duration_String2": "1 h 30 min",
                "Duration_String3": "01:30:47.525",
                "Duration_String4": "01:30:48;19",
                "Duration_String5": "01:30:47.525 (01:30:48;19)",
                "BitRate": "9161342",
                "BitRate_String": "9 161 kb/s",
                "Width": "1920",
                "Width_String": "1 920 pixels",
                "Height": "1080",
                "Height_String": "1 080 pixels",
                "Sampled_Width": "1920",
                "Sampled_Height": "1080",
                "PixelAspectRatio": "1.000",
                "DisplayAspectRatio": "1.778",
                "DisplayAspectRatio_String": "16:9",
                "FrameRate_Mode": "CFR",
                "FrameRate_Mode_String": "Constant",
                "FrameRate": "23.976",
                "FrameRate_String": "23.976 (24000/1001) FPS",
                "FrameRate_Num": "24000",
                "FrameRate_Den": "1001",
                "FrameCount": "130609",
                "ColorSpace": "YUV",
                "ChromaSubsampling": "4:2:0",
                "ChromaSubsampling_String": "4:2:0",
                "BitDepth": "10",
                "BitDepth_String": "10 bits",
                "BitsPixel_Frame": "0.184",
                "Delay": "0.042",
                "Delay_String": "42 ms",
                "Delay_String1": "42 ms",
                "Delay_String2": "42 ms",
                "Delay_String3": "00:00:00.042",
                "Delay_String4": "00:00:00;01",
                "Delay_String5": "00:00:00.042 (00:00:00;01)",
                "Delay_Source": "Container",
                "Delay_Source_String": "Container",
                "StreamSize": "6238282441",
                "StreamSize_String": "5.81 GiB (63%)",
                "StreamSize_String1": "6 GiB",
                "StreamSize_String2": "5.8 GiB",
                "StreamSize_String3": "5.81 GiB",
                "StreamSize_String4": "5.810 GiB",
                "StreamSize_String5": "5.81 GiB (63%)",
                "StreamSize_Proportion": "0.62927",
                "Title": "Decimal Exception",
                "Encoded_Library": "x265 - 3.2+35-acc5d16999e2:[Windows][GCC 9.2.1][64 bit] 10bit",
                "Encoded_Library_String": "x265 3.2+35-acc5d16999e2:[Windows][GCC 9.2.1][64 bit] 10bit",
                "Encoded_Library_Name": "x265",
                "Encoded_Library_Version": "3.2+35-acc5d16999e2:[Windows][GCC 9.2.1][64 bit] 10bit",
                "Encoded_Library_Settings": "cpuid=1111039 / frame-threads=4 / numa-pools=24 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23 / keyint=250 / gop-lookahead=0 / bframes=8 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=80 / lookahead-slices=4 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=5 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=4 / selective-sao=4 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=1.30 / psy-rdoq=2.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=17.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=4 / aq-strength=1.10 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.01 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / no-scenecut-aware-qpconformance-window-offsets / right=0 / bottom=0",
                "Default": "Yes",
                "Default_String": "Yes",
                "Forced": "No",
                "Forced_String": "No",
                "colour_description_present": "Yes",
                "colour_description_present_Source": "Container",
                "colour_range": "Limited",
                "colour_range_Source": "Container / Stream"
            },
            {
                "@type": "Audio",
                "Count": "285",
                "StreamCount": "1",
                "StreamKind": "Audio",
                "StreamKind_String": "Audio",
                "StreamKindID": "0",
                "StreamOrder": "1",
                "ID": "2",
                "ID_String": "2",
                "UniqueID": "8688836026821345758",
                "Format": "DTS",
                "Format_String": "DTS XLL",
                "Format_Info": "Digital Theater Systems",
                "Format_Url": "https://en.wikipedia.org/wiki/DTS_(sound_system)",
                "Format_Commercial": "DTS-HD Master Audio",
                "Format_Commercial_IfAny": "DTS-HD Master Audio",
                "Format_Settings_Mode": "16",
                "Format_Settings_Endianness": "Big",
                "Format_AdditionalFeatures": "XLL",
                "CodecID": "A_DTS",
                "Duration": "5447.486000000",
                "Duration_String": "1 h 30 min",
                "Duration_String1": "1 h 30 min 47 s 486 ms",
                "Duration_String2": "1 h 30 min",
                "Duration_String3": "01:30:47.486",
                "Duration_String5": "01:30:47.486",
                "BitRate_Mode": "VBR",
                "BitRate_Mode_String": "Variable",
                "BitRate": "5233786",
                "BitRate_String": "5 234 kb/s",
                "Channels": "8",
                "Channels_String": "8 channels",
                "ChannelPositions": "Front: L C R, Side: L R, Wide: L R, LFE",
                "ChannelPositions_String2": "3/2/0.2.1",
                "ChannelLayout": "C L R Ls Rs LFE Lw Rw",
                "SamplesPerFrame": "512",
                "SamplingRate": "48000",
                "SamplingRate_String": "48.0 kHz",
                "SamplingCount": "261479328",
                "FrameRate": "93.750",
                "FrameRate_String": "93.750 FPS (512 SPF)",
                "FrameCount": "510702",
                "BitDepth": "24",
                "BitDepth_String": "24 bits",
                "Compression_Mode": "Lossless",
                "Compression_Mode_String": "Lossless",
                "Delay": "0.000",
                "Delay_String3": "00:00:00.000",
                "Delay_String5": "00:00:00.000",
                "Delay_Source": "Container",
                "Delay_Source_String": "Container",
                "Video_Delay": "-0.042",
                "Video_Delay_String": "-42 ms",
                "Video_Delay_String1": "-42 ms",
                "Video_Delay_String2": "-42 ms",
                "Video_Delay_String3": "-00:00:00.042",
                "Video_Delay_String5": "-00:00:00.042",
                "StreamSize": "3563865932",
                "StreamSize_String": "3.32 GiB (36%)",
                "StreamSize_String1": "3 GiB",
                "StreamSize_String2": "3.3 GiB",
                "StreamSize_String3": "3.32 GiB",
                "StreamSize_String4": "3.319 GiB",
                "StreamSize_String5": "3.32 GiB (36%)",
                "StreamSize_Proportion": "0.35949",
                "Language": "en",
                "Language_String": "English",
                "Language_String1": "English",
                "Language_String2": "en",
                "Language_String3": "eng",
                "Language_String4": "en",
                "Default": "Yes",
                "Default_String": "Yes",
                "Forced": "No",
                "Forced_String": "No"
            },
            {
                "@type": "Text",
                "@typeorder": "1",
                "Count": "304",
                "StreamCount": "3",
                "StreamKind": "Text",
                "StreamKind_String": "Text",
                "StreamKindID": "0",
                "StreamKindPos": "1",
                "StreamOrder": "2",
                "ID": "3",
                "ID_String": "3",
                "UniqueID": "16271641194452171772",
                "Format": "PGS",
                "Format_String": "PGS",
                "Format_Commercial": "PGS",
                "CodecID": "S_HDMV/PGS",
                "CodecID_Info": "Picture based subtitle format used on BDs/HD-DVDs",
                "Duration": "5260.714000000",
                "Duration_String": "1 h 27 min",
                "Duration_String1": "1 h 27 min 40 s 714 ms",
                "Duration_String2": "1 h 27 min",
                "Duration_String3": "01:27:40.714",
                "Duration_String4": "00:54:06:00",
                "Duration_String5": "01:27:40.714 (00:54:06:00)",
                "BitRate": "57506",
                "BitRate_String": "57.5 kb/s",
                "FrameRate": "0.617",
                "FrameRate_String": "0.617 FPS",
                "FrameCount": "3246",
                "ElementCount": "3246",
                "StreamSize": "37672239",
                "StreamSize_String": "35.9 MiB (0%)",
                "StreamSize_String1": "36 MiB",
                "StreamSize_String2": "36 MiB",
                "StreamSize_String3": "35.9 MiB",
                "StreamSize_String4": "35.93 MiB",
                "StreamSize_String5": "35.9 MiB (0%)",
                "StreamSize_Proportion": "0.00380",
                "Language": "en",
                "Language_String": "English",
                "Language_String1": "English",
                "Language_String2": "en",
                "Language_String3": "eng",
                "Language_String4": "en",
                "Default": "Yes",
                "Default_String": "Yes",
                "Forced": "No",
                "Forced_String": "No"
            },
            {
                "@type": "Text",
                "@typeorder": "2",
                "Count": "304",
                "StreamCount": "3",
                "StreamKind": "Text",
                "StreamKind_String": "Text",
                "StreamKindID": "1",
                "StreamKindPos": "2",
                "StreamOrder": "3",
                "ID": "4",
                "ID_String": "4",
                "UniqueID": "8637487495556987122",
                "Format": "PGS",
                "Format_String": "PGS",
                "Format_Commercial": "PGS",
                "CodecID": "S_HDMV/PGS",
                "CodecID_Info": "Picture based subtitle format used on BDs/HD-DVDs",
                "Duration": "5424.712000000",
                "Duration_String": "1 h 30 min",
                "Duration_String1": "1 h 30 min 24 s 712 ms",
                "Duration_String2": "1 h 30 min",
                "Duration_String3": "01:30:24.712",
                "Duration_String4": "00:45:45:00",
                "Duration_String5": "01:30:24.712 (00:45:45:00)",
                "BitRate": "40054",
                "BitRate_String": "40.1 kb/s",
                "FrameRate": "0.506",
                "FrameRate_String": "0.506 FPS",
                "FrameCount": "2746",
                "ElementCount": "2746",
                "StreamSize": "27153418",
                "StreamSize_String": "25.9 MiB (0%)",
                "StreamSize_String1": "26 MiB",
                "StreamSize_String2": "26 MiB",
                "StreamSize_String3": "25.9 MiB",
                "StreamSize_String4": "25.90 MiB",
                "StreamSize_String5": "25.9 MiB (0%)",
                "StreamSize_Proportion": "0.00274",
                "Language": "de",
                "Language_String": "German",
                "Language_String1": "German",
                "Language_String2": "de",
                "Language_String3": "deu",
                "Language_String4": "de",
                "Default": "No",
                "Default_String": "No",
                "Forced": "No",
                "Forced_String": "No"
            },
            {
                "@type": "Text",
                "@typeorder": "3",
                "Count": "304",
                "StreamCount": "3",
                "StreamKind": "Text",
                "StreamKind_String": "Text",
                "StreamKindID": "2",
                "StreamKindPos": "3",
                "StreamOrder": "4",
                "ID": "5",
                "ID_String": "5",
                "UniqueID": "18118289640754582465",
                "Format": "PGS",
                "Format_String": "PGS",
                "Format_Commercial": "PGS",
                "CodecID": "S_HDMV/PGS",
                "CodecID_Info": "Picture based subtitle format used on BDs/HD-DVDs",
                "Duration": "5439.393000000",
                "Duration_String": "1 h 30 min",
                "Duration_String1": "1 h 30 min 39 s 393 ms",
                "Duration_String2": "1 h 30 min",
                "Duration_String3": "01:30:39.393",
                "Duration_String4": "00:50:03:00",
                "Duration_String5": "01:30:39.393 (00:50:03:00)",
                "BitRate": "61258",
                "BitRate_String": "61.3 kb/s",
                "FrameRate": "0.552",
                "FrameRate_String": "0.552 FPS",
                "FrameCount": "3000",
                "ElementCount": "3000",
                "StreamSize": "41623112",
                "StreamSize_String": "39.7 MiB (0%)",
                "StreamSize_String1": "40 MiB",
                "StreamSize_String2": "40 MiB",
                "StreamSize_String3": "39.7 MiB",
                "StreamSize_String4": "39.69 MiB",
                "StreamSize_String5": "39.7 MiB (0%)",
                "StreamSize_Proportion": "0.00420",
                "Language": "de",
                "Language_String": "German",
                "Language_String1": "German",
                "Language_String2": "de",
                "Language_String3": "deu",
                "Language_String4": "de",
                "Default": "No",
                "Default_String": "No",
                "Forced": "No",
                "Forced_String": "No"
            },
            {
                "@type": "Menu",
                "Count": "110",
                "StreamCount": "1",
                "StreamKind": "Menu",
                "StreamKind_String": "Menu",
                "StreamKindID": "0",
                "Chapters_Pos_Begin": "94",
                "Chapters_Pos_End": "110",
                "extra": {
                    "_00_00_00_000": "Main Titles",
                    "_00_05_06_556": "Attack at the World Court",
                    "_00_09_24_230": "The Promise",
                    "_00_12_03_598": "The Master",
                    "_00_17_21_082": "Hospital Ambush",
                    "_00_20_44_118": "Interrogation",
                    "_00_24_06_111": "Welcome to Paris",
                    "_00_29_48_662": "Searching for Genevieve",
                    "_00_35_57_989": "Superspy Chase",
                    "_00_41_56_472": "Brothers",
                    "_00_47_48_324": "Showtime!",
                    "_00_54_17_212": "Shy Shen",
                    "_01_05_50_989": "The First Cut",
                    "_01_11_06_512": "Tower Duel",
                    "_01_15_14_760": "What Goes Up",
                    "_01_21_43_857": "Outtakes / End Credits"
                }
            }
        ]
    }
}
+-------------------------------------------------------+
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\api.py", line 59, in know
    result = provider.describe(video_path, context)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\providers\mediainfo.py", line 337, in describe
    result = self._describe_tracks(video_path, general_tracks[0] if general_tracks else {},
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\provider.py", line 66, in _describe_tracks
    t = self._validate_track(track_type, self._describe_track(track, track_type, context))
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\provider.py", line 114, in _describe_track
    value = rule.execute(props, pv_props, context)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\knowit\rules\audio.py", line 56, in execute
    c += Decimal(i)
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]

+-------------------------------------------------------+
|      Please report any bug or feature request at      |
|       https://github.com/ratoaq2/knowit/issues.       |
+-------------------------------------------------------+
@ratoaq2
Copy link
Owner

ratoaq2 commented Jul 2, 2023

The problem seems related to "ChannelPositions_String2": "3/2/0.2.1"

I have never seen this layout. I'm not sure what 0.2.1 means here

@bpoxy
Copy link
Author

bpoxy commented Jul 3, 2023

I'm not sure either. However, comparing to "ChannelPositions": "Front: L C R, Side: L R, Wide: L R, LFE", it stands to reason that 2.1 corresponds to stereo + subwoofer (i.e. L R, LFE). As to the reason it is prefixed with 0., I have no idea.

@squizzeak
Copy link

Could 0.2.1 means "0 vertical, 2 rear, 1 sub", because of atmos? Are top left and top right considered wide?

@squizzeak
Copy link

FWIW I kludged around this by editing rules/audio.py in-place and restarting bazarr:

-                    c += Decimal(i)
+                    c += Decimal(i.removeprefix('0.').removesuffix('.?'))

I had to add removesuffix because of one file that contained:

                "Channels": "8",
                "Channels_String": "8 channels",
                "ChannelPositions": "Front: L C R, Side: L R, Back: L R, LFE, Objects",
                "ChannelPositions_String2": "3/2/2.1.?",
                "ChannelLayout": "C L R LFE Lb Rb Lss Rss Objects",

@janipewter
Copy link

Same issue here:

2024-02-13 21:51:38,061 - root (155290318b38) : ERROR (video_analyzer:288) - BAZARR mediainfo cannot analyze this video file /movies/2 Fast 2 Furious (2003)/2 Fast 2 Furious (2003) [imdb-tt0322259][Bluray 2160p][HDR10][DTS-X 7.1][x265]-CtrlHD.mkv. Could it be corrupted? +-------------------------------------------------------+
| KnowIt 0.5.2 |
+-------------------------------------------------------+
| pymediainfo |
| |
| libmediainfo.so.0 |
| v23.11 |
| |
| ffprobe |
| v6.1.1 |
| |
| |
| enzyme |
| 0.4.1 |
+-------------------------------------------------------+
| provider: mediainfo |
| profile: default |
+-------------------------------------------------------+
{
"creatingLibrary": {
"name": "MediaInfoLib",
"version": "23.11",
"url": "https://mediaarea.net/MediaInfo"
},
"media": {
"@ref": "/movies/2 Fast 2 Furious (2003)/2 Fast 2 Furious (2003) [imdb-tt0322259][Bluray 2160p][HDR10][DTS-X 7.1][x265]-CtrlHD.mkv",
"track": [
{
"@type": "General",
"Count": "349",
"StreamCount": "1",
"StreamKind": "General",
"StreamKind_String": "General",
"StreamKindID": "0",
"UniqueID": "103355524190536139574237381831131903146",
"UniqueID_String": "103355524190536139574237381831131903146 (0x4DC18CC5F5EAF42A3A47D34C03D7B4AA)",
"VideoCount": "1",
"AudioCount": "2",
"TextCount": "2",
"MenuCount": "1",
"Video_Format_List": "HEVC",
"Video_Format_WithHint_List": "HEVC",
"Video_Codec_List": "HEVC",
"Video_Language_List": "English",
"Audio_Format_List": "DTS XLL X / AC-3",
"Audio_Format_WithHint_List": "DTS XLL X / AC-3",
"Audio_Codec_List": "DTS XLL X / AC-3",
"Audio_Language_List": "English / ",
"Audio_Channels_Total": "10",
"Text_Format_List": "UTF-8 / UTF-8",
"Text_Format_WithHint_List": "UTF-8 / UTF-8",
"Text_Codec_List": "UTF-8 / UTF-8",
"Text_Language_List": "English / English",
"CompleteName": "/movies/2 Fast 2 Furious (2003)/2 Fast 2 Furious (2003) [imdb-tt0322259][Bluray 2160p][HDR10][DTS-X 7.1][x265]-CtrlHD.mkv",
"FolderName": "/movies/2 Fast 2 Furious (2003)",
"FileNameExtension": "2 Fast 2 Furious (2003) [imdb-tt0322259][Bluray 2160p][HDR10][DTS-X 7.1][x265]-CtrlHD.mkv",
"FileName": "2 Fast 2 Furious (2003) [imdb-tt0322259][Bluray 2160p][HDR10][DTS-X 7.1][x265]-CtrlHD",
"FileExtension": "mkv",
"Format": "Matroska",
"Format_String": "Matroska",
"Format_Url": "https://matroska.org/downloads/windows.html",
"Format_Extensions": "mkv mk3d mka mks",
"Format_Commercial": "Matroska",
"Format_Version": "4",
"FileSize": "36346283297",
"FileSize_String": "33.9 GiB",
"FileSize_String1": "34 GiB",
"FileSize_String2": "34 GiB",
"FileSize_String3": "33.9 GiB",
"FileSize_String4": "33.85 GiB",
"Duration": "6454.865",
"Duration_String": "1 h 47 min",
"Duration_String1": "1 h 47 min 34 s 865 ms",
"Duration_String2": "1 h 47 min",
"Duration_String3": "01:47:34.865",
"Duration_String4": "01:47:28:10",
"Duration_String5": "01:47:34.865 (01:47:28:10)",
"OverallBitRate_Mode": "VBR",
"OverallBitRate_Mode_String": "Variable",
"OverallBitRate": "45046684",
"OverallBitRate_String": "45.0 Mb/s",
"FrameRate": "23.976",
"FrameRate_String": "23.976 FPS",
"FrameCount": "154762",
"StreamSize": "3447406",
"StreamSize_String": "3.29 MiB (0%)",
"StreamSize_String1": "3 MiB",
"StreamSize_String2": "3.3 MiB",
"StreamSize_String3": "3.29 MiB",
"StreamSize_String4": "3.288 MiB",
"StreamSize_String5": "3.29 MiB (0%)",
"StreamSize_Proportion": "0.00009",
"IsStreamable": "Yes",
"Title": "2.Fast.2.Furious.2003.2160p.UHD.BluRay.DTS-HD.MA.7.1.HDR.x265-CtrlHD",
"Movie": "2.Fast.2.Furious.2003.2160p.UHD.BluRay.DTS-HD.MA.7.1.HDR.x265-CtrlHD",
"Encoded_Date": "2020-04-09 03:49:20 UTC",
"File_Modified_Date": "2020-04-09 10:31:04 UTC",
"File_Modified_Date_Local": "2020-04-09 11:31:04",
"Encoded_Application": "mkvmerge v44.0.0 ('Domino') 64-bit",
"Encoded_Application_String": "mkvmerge v44.0.0 ('Domino') 64-bit",
"Encoded_Library": "libebml v1.3.10 + libmatroska v1.5.2",
"Encoded_Library_String": "libebml v1.3.10 + libmatroska v1.5.2"
},
{
"@type": "Video",
"Count": "387",
"StreamCount": "1",
"StreamKind": "Video",
"StreamKind_String": "Video",
"StreamKindID": "0",
"StreamOrder": "0",
"ID": "1",
"ID_String": "1",
"UniqueID": "7412574344543922058",
"Format": "HEVC",
"Format_String": "HEVC",
"Format_Info": "High Efficiency Video Coding",
"Format_Url": "http://www.itu.int",
"Format_Commercial": "HEVC",
"Format_Profile": "Main 10",
"Format_Level": "5.1",
"Format_Tier": "High",
"HDR_Format": "SMPTE ST 2086",
"HDR_Format_String": "SMPTE ST 2086, HDR10 compatible",
"HDR_Format_Commercial": "HDR10",
"HDR_Format_Compatibility": "HDR10",
"InternetMediaType": "video/H265",
"CodecID": "V_MPEGH/ISO/HEVC",
"Duration": "6454.865000000",
"Duration_String": "1 h 47 min",
"Duration_String1": "1 h 47 min 34 s 865 ms",
"Duration_String2": "1 h 47 min",
"Duration_String3": "01:47:34.865",
"Duration_String4": "01:47:28:10",
"Duration_String5": "01:47:34.865 (01:47:28:10)",
"BitRate": "40636782",
"BitRate_String": "40.6 Mb/s",
"Width": "3840",
"Width_String": "3 840 pixels",
"Height": "1636",
"Height_String": "1 636 pixels",
"Stored_Height": "1640",
"Sampled_Width": "3840",
"Sampled_Height": "1636",
"PixelAspectRatio": "1.000",
"DisplayAspectRatio": "2.347",
"DisplayAspectRatio_String": "2.35:1",
"FrameRate_Mode": "CFR",
"FrameRate_Mode_String": "Constant",
"FrameRate": "23.976",
"FrameRate_String": "23.976 (24000/1001) FPS",
"FrameRate_Num": "24000",
"FrameRate_Den": "1001",
"FrameCount": "154762",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:2:0",
"ChromaSubsampling_String": "4:2:0 (Type 2)",
"ChromaSubsampling_Position": "Type 2",
"BitDepth": "10",
"BitDepth_String": "10 bits",
"BitsPixel_Frame": "0.270",
"Delay": "0.000",
"Delay_String3": "00:00:00.000",
"Delay_String4": "00:00:00:00",
"Delay_String5": "00:00:00.000 (00:00:00:00)",
"Delay_Source": "Container",
"Delay_Source_String": "Container",
"StreamSize": "32788117750",
"StreamSize_String": "30.5 GiB (90%)",
"StreamSize_String1": "31 GiB",
"StreamSize_String2": "31 GiB",
"StreamSize_String3": "30.5 GiB",
"StreamSize_String4": "30.54 GiB",
"StreamSize_String5": "30.5 GiB (90%)",
"StreamSize_Proportion": "0.90210",
"Title": "2.Fast.2.Furious.2003.2160p.UHD.BluRay.DTS-HD.MA.7.1.HDR.x265-CtrlHD",
"Encoded_Library": "x265 - 3.3+10-g08d895bb6:[Windows][GCC 10.0.1][64 bit] 10bit",
"Encoded_Library_String": "x265 3.3+10-g08d895bb6:[Windows][GCC 10.0.1][64 bit] 10bit",
"Encoded_Library_Name": "x265",
"Encoded_Library_Version": "3.3+10-g08d895bb6:[Windows][GCC 10.0.1][64 bit] 10bit",
"Encoded_Library_Settings": "cpuid=1111039 / frame-threads=4 / numa-pools=24 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x1636 / interlace=0 / total-frames=154762 / level-idc=51 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / repeat-headers / annexb / aud / hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=23 / keyint=250 / gop-lookahead=0 / bframes=8 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=40 / lookahead-slices=4 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=4 / tu-intra-depth=4 / limit-tu=4 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=4 / limit-refs=1 / limit-modes / me=3 / subme=5 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / weightb / no-analyze-src-pics / deblock=-3:-3 / no-sao / no-sao-non-deblock / rd=4 / selective-sao=0 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=3.90 / no-rd-refine / no-lossless / cbqpoffs=-2 / crqpoffs=-2 / rc=crf / crf=17.9 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=160000 / vbv-bufsize=160000 / vbv-init=0.9 / crf-max=0.0 / crf-min=0.0 / ipratio=1.30 / pbratio=1.20 / aq-mode=2 / aq-strength=0.55 / no-cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=0 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=1 / chromaloc-top=2 / chromaloc-bottom=2 / display-window=0 / master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,50) / cll=1000,200 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.00 / hist-threshold=0.01 / no-opt-cu-delta-qp / no-aq-motion / hdr10 / hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / no-scenecut-aware-qpconformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0",
"Language": "en",
"Language_String": "English",
"Language_String1": "English",
"Language_String2": "en",
"Language_String3": "eng",
"Language_String4": "en",
"Default": "Yes",
"Default_String": "Yes",
"Forced": "No",
"Forced_String": "No",
"colour_description_present": "Yes",
"colour_description_present_Source": "Stream",
"colour_range": "Limited",
"colour_range_Source": "Stream",
"colour_primaries": "BT.2020",
"colour_primaries_Source": "Stream",
"transfer_characteristics": "PQ",
"transfer_characteristics_Source": "Stream",
"matrix_coefficients": "BT.2020 non-constant",
"matrix_coefficients_Source": "Stream",
"MasteringDisplay_ColorPrimaries": "Display P3",
"MasteringDisplay_ColorPrimaries_Source": "Stream",
"MasteringDisplay_Luminance": "min: 0.0050 cd/m2, max: 1000 cd/m2",
"MasteringDisplay_Luminance_Source": "Stream",
"MaxCLL": "1000 cd/m2",
"MaxCLL_Source": "Stream",
"MaxFALL": "200 cd/m2",
"MaxFALL_Source": "Stream"
},
{
"@type": "Audio",
"@typeorder": "1",
"Count": "285",
"StreamCount": "2",
"StreamKind": "Audio",
"StreamKind_String": "Audio",
"StreamKindID": "0",
"StreamKindPos": "1",
"StreamOrder": "1",
"ID": "2",
"ID_String": "2",
"UniqueID": "5109920444895903482",
"Format": "DTS",
"Format_String": "DTS XLL X",
"Format_Info": "Digital Theater Systems",
"Format_Url": "https://en.wikipedia.org/wiki/DTS_(sound_system)",
"Format_Commercial": "DTS-HD MA + DTS:X",
"Format_Commercial_IfAny": "DTS-HD MA + DTS:X",
"Format_Settings_Mode": "16",
"Format_Settings_Endianness": "Big",
"Format_AdditionalFeatures": "XLL X",
"CodecID": "A_DTS",
"Duration": "6454.859000000",
"Duration_String": "1 h 47 min",
"Duration_String1": "1 h 47 min 34 s 859 ms",
"Duration_String2": "1 h 47 min",
"Duration_String3": "01:47:34.859",
"Duration_String5": "01:47:34.859",
"BitRate_Mode": "VBR",
"BitRate_Mode_String": "Variable",
"BitRate": "4213533",
"BitRate_String": "4 214 kb/s",
"Channels": "8",
"Channels_String": "8 channels",
"ChannelPositions": "Front: L C R, Side: L R, Back: L R, LFE, Objects",
"ChannelPositions_String2": "3/2/2.1.?",
"ChannelLayout": "C L R LFE Lb Rb Lss Rss Objects",
"SamplesPerFrame": "512",
"SamplingRate": "48000",
"SamplingRate_String": "48.0 kHz",
"SamplingCount": "309833232",
"FrameRate": "93.750",
"FrameRate_String": "93.750 FPS (512 SPF)",
"FrameCount": "605143",
"BitDepth": "16",
"BitDepth_String": "16 bits",
"Compression_Mode": "Lossless",
"Compression_Mode_String": "Lossless",
"Delay": "0.000",
"Delay_String3": "00:00:00.000",
"Delay_String5": "00:00:00.000",
"Delay_Source": "Container",
"Delay_Source_String": "Container",
"Video_Delay": "0.000",
"Video_Delay_String3": "00:00:00.000",
"Video_Delay_String5": "00:00:00.000",
"StreamSize": "3399720396",
"StreamSize_String": "3.17 GiB (9%)",
"StreamSize_String1": "3 GiB",
"StreamSize_String2": "3.2 GiB",
"StreamSize_String3": "3.17 GiB",
"StreamSize_String4": "3.166 GiB",
"StreamSize_String5": "3.17 GiB (9%)",
"StreamSize_Proportion": "0.09354",
"Language": "en",
"Language_String": "English",
"Language_String1": "English",
"Language_String2": "en",
"Language_String3": "eng",
"Language_String4": "en",
"Default": "Yes",
"Default_String": "Yes",
"Forced": "No",
"Forced_String": "No"
},
{
"@type": "Audio",
"@typeorder": "2",
"Count": "308",
"StreamCount": "2",
"StreamKind": "Audio",
"StreamKind_String": "Audio",
"StreamKindID": "1",
"StreamKindPos": "2",
"StreamOrder": "2",
"ID": "3",
"ID_String": "3",
"UniqueID": "1630821384812214348",
"Format": "AC-3",
"Format_String": "AC-3",
"Format_Info": "Audio Coding 3",
"Format_Url": "https://en.wikipedia.org/wiki/AC3",
"Format_Commercial": "Dolby Digital",
"Format_Commercial_IfAny": "Dolby Digital",
"Format_Settings": "Dolby Surround",
"Format_Settings_Mode": "Dolby Surround",
"Format_Settings_Endianness": "Big",
"CodecID": "A_AC3",
"Duration": "6454.848000000",
"Duration_String": "1 h 47 min",
"Duration_String1": "1 h 47 min 34 s 848 ms",
"Duration_String2": "1 h 47 min",
"Duration_String3": "01:47:34.848",
"Duration_String5": "01:47:34.848",
"BitRate_Mode": "CBR",
"BitRate_Mode_String": "Constant",
"BitRate": "192000",
"BitRate_String": "192 kb/s",
"Channels": "2",
"Channels_String": "2 channels",
"ChannelPositions": "Front: L R",
"ChannelPositions_String2": "2/0/0",
"ChannelLayout": "L R",
"SamplesPerFrame": "1536",
"SamplingRate": "48000",
"SamplingRate_String": "48.0 kHz",
"SamplingCount": "309832704",
"FrameRate": "31.250",
"FrameRate_String": "31.250 FPS (1536 SPF)",
"FrameCount": "201714",
"Compression_Mode": "Lossy",
"Compression_Mode_String": "Lossy",
"Delay": "0.000",
"Delay_String3": "00:00:00.000",
"Delay_String5": "00:00:00.000",
"Delay_Source": "Container",
"Delay_Source_String": "Container",
"Video_Delay": "0.000",
"Video_Delay_String3": "00:00:00.000",
"Video_Delay_String5": "00:00:00.000",
"StreamSize": "154916352",
"StreamSize_String": "148 MiB (0%)",
"StreamSize_String1": "148 MiB",
"StreamSize_String2": "148 MiB",
"StreamSize_String3": "148 MiB",
"StreamSize_String4": "147.7 MiB",
"StreamSize_String5": "148 MiB (0%)",
"StreamSize_Proportion": "0.00426",
"ServiceKind": "CM",
"ServiceKind_String": "Complete Main",
"Default": "No",
"Default_String": "No",
"Forced": "No",
"Forced_String": "No",
"extra": {
"bsid": "6",
"dialnorm": "-27",
"dialnorm_String": "-27 dB",
"compr": "5.74",
"compr_String": "5.74 dB",
"dsurmod": "2",
"dsurmod_String": "Dolby Surround encoded",
"acmod": "2",
"lfeon": "0",
"dialnorm_Average": "-27",
"dialnorm_Average_String": "-27 dB",
"dialnorm_Minimum": "-27",
"dialnorm_Minimum_String": "-27 dB",
"dialnorm_Maximum": "-27",
"dialnorm_Maximum_String": "-27 dB",
"dialnorm_Count": "538",
"compr_Average": "-0.04",
"compr_Average_String": "-0.04 dB",
"compr_Minimum": "-4.08",
"compr_Minimum_String": "-4.08 dB",
"compr_Maximum": "5.74",
"compr_Maximum_String": "5.74 dB",
"compr_Count": "476"
}
},
{
"@type": "Text",
"@typeorder": "1",
"Count": "304",
"StreamCount": "2",
"StreamKind": "Text",
"StreamKind_String": "Text",
"StreamKindID": "0",
"StreamKindPos": "1",
"StreamOrder": "3",
"ID": "4",
"ID_String": "4",
"UniqueID": "1414040784097583082",
"Format": "UTF-8",
"Format_String": "UTF-8",
"Format_Commercial": "UTF-8",
"CodecID": "S_TEXT/UTF8",
"CodecID_Info": "UTF-8 Plain Text",
"Duration": "5952.739000000",
"Duration_String": "1 h 39 min",
"Duration_String1": "1 h 39 min 12 s 739 ms",
"Duration_String2": "1 h 39 min",
"Duration_String3": "01:39:12.739",
"Duration_String5": "01:39:12.739",
"BitRate": "52",
"BitRate_String": "52 b/s",
"FrameRate": "0.191",
"FrameRate_String": "0.191 FPS",
"FrameCount": "1138",
"ElementCount": "1138",
"StreamSize": "38850",
"StreamSize_String": "37.9 KiB (0%)",
"StreamSize_String1": "38 KiB",
"StreamSize_String2": "38 KiB",
"StreamSize_String3": "37.9 KiB",
"StreamSize_String4": "37.94 KiB",
"StreamSize_String5": "37.9 KiB (0%)",
"StreamSize_Proportion": "0.00000",
"Language": "en",
"Language_String": "English",
"Language_String1": "English",
"Language_String2": "en",
"Language_String3": "eng",
"Language_String4": "en",
"Default": "No",
"Default_String": "No",
"Forced": "No",
"Forced_String": "No"
},
{
"@type": "Text",
"@typeorder": "2",
"Count": "304",
"StreamCount": "2",
"StreamKind": "Text",
"StreamKind_String": "Text",
"StreamKindID": "1",
"StreamKindPos": "2",
"StreamOrder": "4",
"ID": "5",
"ID_String": "5",
"UniqueID": "16571915535543489246",
"Format": "UTF-8",
"Format_String": "UTF-8",
"Format_Commercial": "UTF-8",
"CodecID": "S_TEXT/UTF8",
"CodecID_Info": "UTF-8 Plain Text",
"Duration": "6034.028000000",
"Duration_String": "1 h 40 min",
"Duration_String1": "1 h 40 min 34 s 28 ms",
"Duration_String2": "1 h 40 min",
"Duration_String3": "01:40:34.028",
"Duration_String5": "01:40:34.028",
"BitRate": "56",
"BitRate_String": "56 b/s",
"FrameRate": "0.217",
"FrameRate_String": "0.217 FPS",
"FrameCount": "1307",
"ElementCount": "1307",
"StreamSize": "42543",
"StreamSize_String": "41.5 KiB (0%)",
"StreamSize_String1": "42 KiB",
"StreamSize_String2": "42 KiB",
"StreamSize_String3": "41.5 KiB",
"StreamSize_String4": "41.55 KiB",
"StreamSize_String5": "41.5 KiB (0%)",
"StreamSize_Proportion": "0.00000",
"Title": "SDH",
"Language": "en",
"Language_String": "English",
"Language_String1": "English",
"Language_String2": "en",
"Language_String3": "eng",
"Language_String4": "en",
"Default": "No",
"Default_String": "No",
"Forced": "No",
"Forced_String": "No"
},
{
"@type": "Menu",
"Count": "120",
"StreamCount": "1",
"StreamKind": "Menu",
"StreamKind_String": "Menu",
"StreamKindID": "0",
"Chapters_Pos_Begin": "101",
"Chapters_Pos_End": "120",
"extra": {
"_00_00_00_000": "Chapter 01",
"_00_11_28_688": "Chapter 02",
"_00_14_19_817": "Chapter 03",
"_00_16_01_627": "Chapter 04",
"_00_18_56_344": "Chapter 05",
"_00_24_22_544": "Chapter 06",
"_00_28_15_819": "Chapter 07",
"_00_35_13_153": "Chapter 08",
"_00_40_07_322": "Chapter 09",
"_00_46_43_384": "Chapter 10",
"_00_58_54_114": "Chapter 11",
"_01_05_02_190": "Chapter 12",
"_01_10_24_303": "Chapter 13",
"_01_13_37_038": "Chapter 14",
"_01_22_14_638": "Chapter 15",
"_01_29_53_138": "Chapter 16",
"_01_35_16_628": "Chapter 17",
"_01_37_31_971": "Chapter 18",
"_01_40_32_026": "Chapter 19"
}
}
]
}
}
+-------------------------------------------------------+
Traceback (most recent call last):
File "/app/bazarr/bin/bazarr/../libs/knowit/api.py", line 59, in know
result = provider.describe(video_path, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/bazarr/bin/bazarr/../libs/knowit/providers/mediainfo.py", line 337, in describe
result = self._describe_tracks(video_path, general_tracks[0] if general_tracks else {},
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/bazarr/bin/bazarr/../libs/knowit/provider.py", line 66, in _describe_tracks
t = self._validate_track(track_type, self._describe_track(track, track_type, context))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/bazarr/bin/bazarr/../libs/knowit/provider.py", line 114, in _describe_track
value = rule.execute(props, pv_props, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/bazarr/bin/bazarr/../libs/knowit/rules/audio.py", line 56, in execute
c += Decimal(i)
^^^^^^^^^^
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]

+-------------------------------------------------------+
| Please report any bug or feature request at |
| https://github.com/ratoaq2/knowit/issues. |
+-------------------------------------------------------+

ratoaq2 added a commit that referenced this issue Jun 22, 2024
@ratoaq2
Copy link
Owner

ratoaq2 commented Jun 22, 2024

This should be fixed in latest release https://github.com/ratoaq2/knowit/releases/tag/0.5.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants