davidde / mpv-autosub

Fully automatic subtitle downloading for the MPV media player
https://mpv.io/
MIT License
295 stars 42 forks source link

Issue with Ubuntu 21.10 #27

Closed hyuma78 closed 2 years ago

hyuma78 commented 2 years ago

This is the debug output of mpv, seems like there is a sort of error when the lua script trying to generate the command for subliminal...

 (+) Video --vid=1 (*) (h264 1920x1080 23.976fps)
 (+) Audio --aid=1 --alang=eng (*) (eac3 6ch 48000Hz)
     Subs  --sid=1 --slang=eng (subrip)
     Subs  --sid=2 --slang=eng 'SDH' (subrip)
File tags:
 Title: Chucky - S01E07 - Twice the Grieving Double the Loss
[autosub] Reactivate external subtitle files: 
Track list:
 (+) Video --vid=1 (*) (h264 1920x1080 23.976fps)
 (+) Audio --aid=1 --alang=eng (*) (eac3 6ch 48000Hz)
     Subs  --sid=1 --slang=eng (subrip)
     Subs  --sid=2 --slang=eng 'SDH' (subrip)
[autosub] Subtitle track 1 :
[autosub] { 
[autosub]   "selected": false 
[autosub]   "albumart": false 
[autosub]   "default": false 
[autosub]   "id": 1 
[autosub]   "src-id": 3 
[autosub]   "forced": false 
[autosub]   "type": "sub" 
[autosub]   "hearing-impaired": false 
[autosub]   "codec": "subrip" 
[autosub]   "ff-index": 2 
[autosub]   "external": false 
[autosub]   "visual-impaired": false 
[autosub]   "dependent": false 
[autosub]   "lang": "eng" 
[autosub] }
[autosub]  
[autosub] Subtitle track 2 :
[autosub] { 
[autosub]   "selected": false 
[autosub]   "albumart": false 
[autosub]   "default": false 
[autosub]   "id": 2 
[autosub]   "src-id": 4 
[autosub]   "forced": false 
[autosub]   "codec": "subrip" 
[autosub]   "type": "sub" 
[autosub]   "hearing-impaired": false 
[autosub]   "ff-index": 3 
[autosub]   "title": "SDH" 
[autosub]   "external": false 
[autosub]   "visual-impaired": false 
[autosub]   "dependent": false 
[autosub]   "lang": "eng" 
[autosub] }
[autosub]  
[autosub] No Italian subtitles were detected
[autosub] => Proceeding to download: 
[autosub] Searching Italian subtitles ... 
AO: [pulse] 48000Hz 5.1(side) 6ch float
VO: [gpu] 1920x1080 yuv420p
AV: 00:00:00 / 00:41:05 (0%) A-V:  0.004
[autosub] Usage: subliminal [OPTIONS] COMMAND [ARGS]...
[autosub] Try 'subliminal --help' for help.
[autosub] 
[autosub] Error: No such option: -e
AV: 00:00:01 / 00:41:05 (0%) A-V:  0.002
[autosub] No Italian subtitles found
[autosub]  
[autosub] No subtitles were found 
AV: 00:00:02 / 00:41:05 (0%) A-V:  0.000

Exiting... (Quit)

[autosub] Usage: subliminal [OPTIONS] COMMAND [ARGS]... [autosub] Try 'subliminal --help' for help. [autosub] [autosub] Error: No such option: -e

hyuma78 commented 2 years ago

I tried to set this variables:

local bools = {
    auto = true,   -- Automatically download subtitles, no hotkeys required
    debug = true, -- Use `--debug` in subliminal command for debug output
    force = false,  -- Force download; will overwrite existing subtitle files
    utf8 = false,   -- Save all subtitle files as UTF-8

to remove utf8 and force, but now the error is in the "- l " command

hyuma78 commented 2 years ago

Nevermind, i fixed by myself