smacke / smacke/ffsubsync

Syncing via bazarr failed (exception)

Open
#134 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

out-of-sync
Dominant language
Python
Stars
7.9k
Forks
323
PR merge metrics
No merged PRs in 30d

Description

Upload a tarball with debugging information

  1. Run the command that produces the out-of-sync subtitle output, but with the additional --make-test-case flag, i.e.: subsync ref.mkv -i in.srt -o failed.srt --make-test-case
  2. This results in a file of the form ref.mkv.$timestamp.tar.gz or similar.
  3. Please upload this file using the "attach files" button at the bottom of the text prompt.
    101 Dalmatians (1996) {tmdb-11674}.mkv.2021-09-19-12-03-04.tar.gz

That's all! Thank you for contributing a test case; this helps me to continue improving the sync and to add additional integration tests once improvements have been made.

Additional context
Add any other context about the problem here that might be helpful.
Bazarr error log;
BAZARR an exception occurs during the synchronization process for this subtitles: /movies/101 Dalmatians (1996) {tmdb-11674}/101 Dalmatians (1996) {tmdb-11674}.nl.srt

19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |utf-8  confidence = 0.99|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |SHIFT_JIS Japanese confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |EUC-JP Japanese confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |GB2312 Chinese confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |EUC-KR Korean confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |CP949 Korean confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |Big5 Chinese confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |EUC-TW Taiwan confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |windows-1251 Russian confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |KOI8-R Russian confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |ISO-8859-5 Russian confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |MacCyrillic Russian confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |IBM866 Russian confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |IBM855 Russian confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |ISO-8859-7 Greek confidence = 0.0|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |windows-1253 Greek confidence = 0.0|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |ISO-8859-5 Bulgairan confidence = 0.0|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |windows-1251 Bulgarian confidence = 0.0|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |TIS-620 Thai confidence = 0.0|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |ISO-8859-9 Turkish confidence = 0.5877259519062737|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |windows-1255 Hebrew confidence = 0.0|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |windows-1255 Hebrew confidence = 0.0|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |windows-1255 Hebrew confidence = 0.0|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |utf-8  confidence = 0.99|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |SHIFT_JIS Japanese confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |EUC-JP Japanese confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |GB2312 Chinese confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |EUC-KR Korean confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |CP949 Korean confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |Big5 Chinese confidence = 0.01|
19/09/2021 11:50:05|DEBUG   |chardet.charsetprober           |EUC-TW Taiwan confidence = 0.01|
19/09/2021 11:50:05|INFO    |ffsubsync.subtitle_parser       |detected encoding: utf-8|
19/09/2021 11:50:06|INFO    |ffsubsync.ffsubsync             |computing alignments...|
19/09/2021 11:50:08|INFO    |ffsubsync.ffsubsync             |...done|
19/09/2021 11:50:08|INFO    |ffsubsync.ffsubsync             |score: 405679.000|
19/09/2021 11:50:08|INFO    |ffsubsync.ffsubsync             |offset seconds: 0.000|
19/09/2021 11:50:08|INFO    |ffsubsync.ffsubsync             |framerate scale factor: 1.000|
19/09/2021 11:50:08|INFO    |ffsubsync.ffsubsync             |writing output to /movies/101 Dalmatians (1996) {tmdb-11674}/101 Dalmatians (1996) {tmdb-11674}.nl.synced.srt|
19/09/2021 11:50:08|ERROR   |root                            |BAZARR unable to sync subtitles: /movies/12 Dates of Christmas (2011) {tmdb-81393}/12 Dates of Christmas (2011) {tmdb-81393}.en.srt|
19/09/2021 11:50:12|INFO    |ffsubsync.ffsubsync             |...done|```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the attached tarball and the subsync command using --make-test-case; review the Bazarr log around subtitle parsing, alignment, and output writing. Done means the reported synchronization exception is understood and fixed, with an integration test added for this case as described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.