McCloudS / subgen

Autogenerate subtitles using OpenAI Whisper Model via Jellyfin, Plex, Emby, Tautulli, or Bazarr
MIT License
453 stars 45 forks source link

File doesn't have any Audio to transcribe #49

Closed 0xT3chN0 closed 5 months ago

0xT3chN0 commented 5 months ago

Hi,

I really appreciate this tool. But I have an weird Issue (sometimes).

Environment:

OS: Ubuntu 22.04 LTS Runtime: Docker Version: Latest (as of now)

Error:

Log Error: "Angry Birds (2016.mkv doesn't have any audio to transcribe!" Log Error without Try-Catch in subgen.py: "An error occurred: [Errno 40] Too many levels of symbolic links: '/plexfiles/media/Movies/Automated/Sonarr/Angry Birds (2016)/Angry Birds (2016).mkv'"

Explanation:

This error happens when I recreate the container with "docker compose up --force-recreate", however it can also happen, that the script just works normally for a few files, then it will show the same error again and I have to restart it a few times (*docker compose up --force-recreate") to fix it.

Have a Nice day.

McCloudS commented 5 months ago

Unless you can provide more info, this solely appears to be an issue with your files, or directories, or symlinks. Googling the error shows symlink loops. Are you manually using symlinks or using a tool that uses symlinks instead of actually moving the files (ie torrents while seeding)?

What does readlink -f /plexfiles/media/Movies/Automated/Sonarr/Angry Birds (2016)/Angry Birds (2016).mkv return?

0xT3chN0 commented 5 months ago

Here is the output:

readlink -f /plexfiles/media/Movies/Automated/Radarr/The\ Angry\ Birds\ Movie\ (2016)/The\ Angry\ Birds\ Movie\ (2016).mkv

/plexfiles/media/Movies/Automated/Radarr/The Angry Birds Movie (2016)/The Angry Birds Movie (2016).mkv

I'm using AutoFS to mount my Plex datastore (NFS).

0xT3chN0 commented 5 months ago

It was a problem with autofs. Adding ":shared" in the docker compose volume fixed the error for me.

Thanks for your time.