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

[Bug]: Failed to execute Plugin 'Add Extra Stereo Audio' #411

Open
p4xel opened this issue Apr 12, 2024 · 0 comments
Open

[Bug]: Failed to execute Plugin 'Add Extra Stereo Audio' #411

p4xel opened this issue Apr 12, 2024 · 0 comments
Labels
status:awaiting-triage type:bug Something isn't working

Comments

@p4xel
Copy link

p4xel commented Apr 12, 2024

Describe the Bug

Task failing on certain TV shows when parsing file for adding extra stereo audio track.
From logs it seems it is having problems with detecting languages (the show is in english)

Steps to Reproduce

Library Management - File test:

  • Convert ASS sub to SRT
  • Re-order audio streams by language
  • Add Extra Stereo Audio (v 0.0.9, no extra settings, everything unchecked)
  • Audio encoder AC3
  • Video ENcorer H265 hevc_qsv (intel)

Add video files to queue. Failing almost immediately with
PLUGIN FAILED!
Failed to execute Plugin 'Add Extra Stereo Audio'
Check Unmanic logs for more information
No Plugin requested for Unmanic to run commands for this file '/library/tv/video_file.mkv

Expected Behavior

Add an extra audio track, or skip that step and execute remaining plugins for transcoding.

Screenshots

No response

Relevant Settings

  • Installed in Docker (josh5/unmanic:latest)
  • RAM limit 4GB
  • Intel QSV passthrough

Version

0.2.6~41346cb

Platform

  • Synology DS920+

Relevant log output

2024-04-12T11:13:22:INFO:Unmanic.ScheduledTasksManager - [FORMATTED] - Updating session data

2024-04-12T11:15:56:INFO:Unmanic.Foreman - [FORMATTED] - Processing item - /library/tv/video_file.mkv

2024-04-12T11:15:57:INFO:Unmanic.Halasuwa-Worker-1 - [FORMATTED] - Picked up job - /library/tv/video_file.mkv

2024-04-12T11:15:58:ERROR:Unmanic.PluginExecutor - [FORMATTED] - Exception while carrying out 'worker.process_item' plugin runner 'add_extra_stereo_audio'

Traceback (most recent call last):

  File "/usr/local/lib/python3.10/dist-packages/unmanic/libs/unplugins/executor.py", line 256, in execute_plugin_runner

    runner(data)

  File "/config/.unmanic/plugins/add_extra_stereo_audio/plugin.py", line 204, in on_worker_process

    stream = stream_to_stereo_encode(stream_language, channels, codec_name, probe_streams)

  File "/config/.unmanic/plugins/add_extra_stereo_audio/plugin.py", line 83, in stream_to_stereo_encode

    logger.debug("i '{}', probe_streams[i][codec_type]: '{}', probe_streams[i][channels]: '{}', probe_streams[i][tags][language]: '{}', probe_streams[i][codec_name]: '{}'".format(i, probe_streams[i]["codec_type"], probe_streams[i]["channels"], probe_streams[i]["tags"]["language"], probe_streams[i]["codec_name"]))

KeyError: 'language'

2024-04-12T11:15:58:WARNING:Unmanic.Halasuwa-Worker-1 - [FORMATTED] - No Plugin requested for Unmanic to run commands for this file '/library/tv/video_file.mkv'

2024-04-12T11:15:58:WARNING:Unmanic.Halasuwa-Worker-1 - [FORMATTED] - Failed to process task for file '/library/tv/video_file.mkv'

2024-04-12T11:15:58:INFO:Unmanic.Halasuwa-Worker-1 - [FORMATTED] - Finished job - /library/tv/video_file.mkv

2024-04-12T11:16:01:INFO:Unmanic.PostProcessor - [FORMATTED] - Post-processing task - /library/tv/video_file.mkv

2024-04-12T11:16:01:WARNING:Unmanic.PostProcessor - [FORMATTED] - Skipping file movement post-processor as the task was not successful '/tmp/unmanic/unmanic_file_conversion-dwfpn-1712916955/video_file.mkv'

2024-04-12T11:16:01:WARNING:Unmanic.Plugin.file_size_metrics - Plugin data file is missing. Fetching source size direct from source path.
@p4xel p4xel added status:awaiting-triage type:bug Something isn't working labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:awaiting-triage type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant