Skip to content
New issue

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

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

Already on GitHub? # to your account

Subtitle sync not working #2837

Open
JKE-93 opened this issue Jan 27, 2025 · 5 comments
Open

Subtitle sync not working #2837

JKE-93 opened this issue Jan 27, 2025 · 5 comments

Comments

@JKE-93
Copy link

JKE-93 commented Jan 27, 2025

Describe the bug
Subtitle sync for tv show not working, mkv file.

To Reproduce
Steps to reproduce the behavior:
Supernatural.S03E02.The.Kids.Are.Alright.1080p.BluRay.Remux.VC-1.DD.5.1-EPSiLON.mkv
With this subtitle file
Supernatural.S03E02.The.Kids.Are.Alright.1080p.BluRay.Remux.VC-1.DD.5.1-EPSiLON.nl.srt
This file and other files, it's not working

Expected behavior
Sync the subtitle file

Screenshots

Software (please complete the following information):

  • Bazarr: 1.5.1
  • Radarr version 5.16.0.9485
  • Sonarr version 4.0.11.2724
  • OS: Linux-5.10.60-qnap-x86_64-with-glibc2.21

Additional context
I'm getting this error:

Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/subtitles/tools/subsyncer.py", line 97, in sync
    result = run(self.args)
          ^^^^^^^^^^^^^^
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/../libs/ffsubsync/ffsubsync.py", line 509, in run
    sync_was_successful = _run_impl(args, result)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/../libs/ffsubsync/ffsubsync.py", line 445, in _run_impl
    reference_pipe.fit(args.reference)
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/../libs/ffsubsync/sklearn_shim.py", line 255, in fit
    self._final_estimator.fit(Xt, y, **fit_params)
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/../libs/ffsubsync/speech_transformers.py", line 429, in fit
    raise ValueError(
ValueError: Unable to detect speech. Perhaps try specifying a different stream / track, or a different vad.
@morpheus65535
Copy link
Owner

I've just tested with some subtitles and it works as expected. If it doesn't work for you, we're going to need at least a sync debug log that you can enable under Automatic Subtitles Audio Synchronization. Depending of it, we may redirect you to ffsubsync Github.

@JKE-93
Copy link
Author

JKE-93 commented Jan 28, 2025

I enabled it and know I'm getting this error (for another file of the same show, I'm not seeing any log file in the same directory):

Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/../libs/ffsubsync/ffsubsync.py", line 509, in run
    sync_was_successful = _run_impl(args, result)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/../libs/ffsubsync/ffsubsync.py", line 445, in _run_impl
    reference_pipe.fit(args.reference)
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/../libs/ffsubsync/sklearn_shim.py", line 255, in fit
    self._final_estimator.fit(Xt, y, **fit_params)
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/../libs/ffsubsync/speech_transformers.py", line 429, in fit
    raise ValueError(
ValueError: Unable to detect speech. Perhaps try specifying a different stream / track, or a different vad.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/Apache83/lib/python3.11/shutil.py", line 825, in move
    os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: \'/share/Multimedia/TV Shows - Sonarr/Supernatural/Season 3/Supernatural.S03E04.Sin.City.1080p.BluRay.Remux.VC-1.DD.5.1-EPSiLON.npz\' -> \'/share/Multimedia/TV Shows - Sonarr/Supernatural/Season 3/Supernatural.S03E04.Sin.City.1080p.BluRay.Remux.VC-1.DD.5.1-EPSiLON.mkv.2025-01-28-19-39-21/Supernatural.S03E04.Sin.City.1080p.BluRay.Remux.VC-1.DD.5.1-EPSiLON.npz\'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/subtitles/tools/subsyncer.py", line 97, in sync
    result = run(self.args)
        ^^^^^^^^^^^^^^
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/../libs/ffsubsync/ffsubsync.py", line 517, in run
    result["retval"] += make_test_case(
           ^^^^^^^^^^^^^^^
  File "/share/CACHEDEV1_DATA/.qpkg/Bazarr83/Bazarr/bazarr/../libs/ffsubsync/ffsubsync.py", line 82, in make_test_case
    shutil.move(npy_savename, tar_dir)
  File "/opt/Apache83/lib/python3.11/shutil.py", line 845, in move
    copy_function(src, real_dst)
  File "/opt/Apache83/lib/python3.11/shutil.py", line 436, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/opt/Apache83/lib/python3.11/shutil.py", line 256, in copyfile
    with open(src, \'rb\') as fsrc:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: \'/share/Multimedia/TV Shows - Sonarr/Supernatural/Season 3/Supernatural.S03E04.Sin.City.1080p.BluRay.Remux.VC-1.DD.5.1-EPSiLON.npz\

@morpheus65535
Copy link
Owner

It seems like ffsubsync is unable to find the numpy file it created. Something interfering with your file system? Some caching or cloud storage maybe?

@JKE-93
Copy link
Author

JKE-93 commented Jan 29, 2025

No, no caching or could storage setup

@morpheus65535
Copy link
Owner

Is Always use Audio Track as Reference for Syncing enabled in Settings-->Subtitles?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants