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

Framerate was not specified and cannot be read from the MicroDVD file error when used on a .sub file #162

Open
Nicryc opened this issue Jun 28, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Nicryc
Copy link

Nicryc commented Jun 28, 2022

Environment (please complete the following information):

  • OS: Windows 10 WSL Debian
  • python version 3.9.2
  • subsync version 0.4.20

Describe the bug
I get a Framerate was not specified and cannot be read from the MicroDVD file. error when trying to use ffsubsync on a .sub file, although I used --frame-rate FRAMERATE to specify the frame-rate.

To Reproduce
What I have tried:

ffs --frame-rate 31250 "video.mkv" -i "unsync.sub" -o "sync.sub"
ffs --frame-rate 31250 --skip-infer-framerate-ratio "video.mkv" -i "unsync.sub" -o "sync.sub"
ffs --frame-rate 31250 "reference.srt" -i "unsync.sub" -o "sync.sub"

Expected behavior
Frame-rate should be read from the command line argument and the program should carry on.

Output

[13:16:58] INFO     extracting speech segments from reference 'video.mkv'...
           INFO     Checking video for subtitles stream...                                              speech_transformers.py:259
           INFO     Video file appears to lack subtitle stream                                          speech_transformers.py:264
100%|██████████████████████████████████████████████████████████████████████████████████▉| 5460.0/5460.051 [01:01<00:00, 88.96it/s]
[13:18:00] INFO     ...done                                                                                       ffsubsync.py:444
           INFO     extracting speech segments from subtitles file(s)                                             ffsubsync.py:134
                    ['unsync.sub']...
           INFO     detected encoding: WINDOWS-1252                                                          subtitle_parser.py:85
           ERROR    Framerate was not specified and cannot be read from the MicroDVD file.                        ffsubsync.py:223
@Nicryc Nicryc added the bug Something isn't working label Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant