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

RuntimeError while processing video with Medusa #200

Open
rdeherder opened this issue Dec 25, 2024 · 0 comments
Open

RuntimeError while processing video with Medusa #200

rdeherder opened this issue Dec 25, 2024 · 0 comments

Comments

@rdeherder
Copy link

I'm running Medusa in a docker container. Medusa uses knowit and while processing a list of video's I got some runtime errors with knowit. Hopefully you can do something with this log entry.
If you say it's a Medusa issue I'll report it there.

2024-12-25 09:49:56 WARNING	SHOWQUEUE-REFRESH :: An error occurred while parsing: /video/Series/One-Punch Man/One-Punch Man - S02E11 - Everyone’s Dignity.mkv
KnowIt reported:
+-------------------------------------------------------+
|                     KnowIt 0.4.0                      |
+-------------------------------------------------------+
|                      pymediainfo                      |
|                                                       |
|                   libmediainfo.so.0                   |
|                        v23.11                         |
|                                                       |
|                        ffprobe                        |
|                        v6.1.1                         |
|                                                       |
|                                                       |
|                        enzyme                         |
|                         0.4.2                         |
+-------------------------------------------------------+
|                   profile: default                    |
+-------------------------------------------------------+
Traceback (most recent call last):
  File "/app/medusa/ext/knowit/api.py", line 59, in know
    result = provider.describe(video_path, context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 284, in describe
    data = self.executor.extract_info(video_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 91, in extract_info
    return self._execute(filename)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 157, in _execute
    return json.loads(MediaInfo.parse(filename, library_file=self.location, output='JSON'))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/pymediainfo/__init__.py", line 496, in parse
    raise RuntimeError(
RuntimeError: An error occured while opening /video/Series/One-Punch Man/One-Punch Man - S02E11 - Everyone’s Dignity.mkv with libmediainfo
+-------------------------------------------------------+
|      Please report any bug or feature request at      |
|       https://github.com/ratoaq2/knowit/issues.       |
+-------------------------------------------------------+
Traceback (most recent call last):
  File "/app/medusa/ext/knowit/api.py", line 59, in know
    result = provider.describe(video_path, context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 284, in describe
    data = self.executor.extract_info(video_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 91, in extract_info
    return self._execute(filename)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 157, in _execute
    return json.loads(MediaInfo.parse(filename, library_file=self.location, output='JSON'))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/pymediainfo/__init__.py", line 496, in parse
    raise RuntimeError(
RuntimeError: An error occured while opening /video/Series/One-Punch Man/One-Punch Man - S02E11 - Everyone’s Dignity.mkv with libmediainfo
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/app/medusa/medusa/common.py", line 416, in quality_from_file_meta
    knowledge = knowit.know(file_path)
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/knowit/api.py", line 65, in know
    raise KnowitException(debug_info(context=context, exc_info=True))
knowit.api.KnowitException: +-------------------------------------------------------+
|                     KnowIt 0.4.0                      |
+-------------------------------------------------------+
|                      pymediainfo                      |
|                                                       |
|                   libmediainfo.so.0                   |
|                        v23.11                         |
|                                                       |
|                        ffprobe                        |
|                        v6.1.1                         |
|                                                       |
|                                                       |
|                        enzyme                         |
|                         0.4.2                         |
+-------------------------------------------------------+
|                   profile: default                    |
+-------------------------------------------------------+
Traceback (most recent call last):
  File "/app/medusa/ext/knowit/api.py", line 59, in know
    result = provider.describe(video_path, context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 284, in describe
    data = self.executor.extract_info(video_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 91, in extract_info
    return self._execute(filename)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 157, in _execute
    return json.loads(MediaInfo.parse(filename, library_file=self.location, output='JSON'))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/medusa/ext/pymediainfo/__init__.py", line 496, in parse
    raise RuntimeError(
RuntimeError: An error occured while opening /video/Series/One-Punch Man/One-Punch Man - S02E11 - Everyone’s Dignity.mkv with libmediainfo
+-------------------------------------------------------+
|      Please report any bug or feature request at      |
|       https://github.com/ratoaq2/knowit/issues.       |
+-------------------------------------------------------+
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

1 participant