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

[Plugin SubtitleSwitcher] Error send SRT file #9148

Open
gbrn opened this issue Jun 20, 2024 · 24 comments
Open

[Plugin SubtitleSwitcher] Error send SRT file #9148

gbrn opened this issue Jun 20, 2024 · 24 comments
Labels

Comments

@gbrn
Copy link
Contributor

gbrn commented Jun 20, 2024

@DanielnetoDotCom Danny, doing some testing here at Plugin SubtitleSwitcher. When I sent an SRT file, I selected the language and clicked save.... it presented the following error popup, without any information... I don't even know what to do...

image

@gbrn gbrn added the bug label Jun 20, 2024
@gbrn
Copy link
Contributor Author

gbrn commented Jun 20, 2024

LOG:

[20-Jun-2024 13:59:38 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [20-Jun-2024 13:59:37 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [20-Jun-2024 13:59:37 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [20-Jun-2024 16:59:37 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [20-Jun-2024 16:59:37 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [20-Jun-2024 16:59:37 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [20-Jun-2024 13:59:35 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [20-Jun-2024 13:59:34 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [20-Jun-2024 13:59:34 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [20-Jun-2024 16:59:34 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/SubtitleSwitcher/uploadSubtitle.php
 [20-Jun-2024 16:59:34 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/SubtitleSwitcher/uploadSubtitle.php
 [20-Jun-2024 16:59:34 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/SubtitleSwitcher/uploadSubtitle.php
 [20-Jun-2024 13:59:28 America/Sao_Paulo] AVideoLog::DEBUG: getVideosURL_V2(_YPTuniqid_60ab1017bc78a1.78234839) Recreate cache requested [{"file":"\/var\/www\/html\/AVideo\/objects\/video.php","line":6815,"function":"getVideosURL_V2"},{"file":"\/var\/www\/html\/AVideo\/objects\/video.php","line":6780,"function":"isMediaFileMissing","class":"Video","type":"::"},{"file":"\/var\/www\/html\/AVideo\/objects\/videos.json.php","line":86,"function":"checkIfIsBroken","class":"Video","type":"::"}] SCRIPT_NAME: /objects/videos.json.php

[20-Jun-2024 13:51:52 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [20-Jun-2024 13:51:51 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [20-Jun-2024 13:51:51 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [20-Jun-2024 13:51:51 America/Sao_Paulo] AVideoLog::DEBUG: convertVideoFileWithFFMPEG try[0] output: [] SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php

@gbrn
Copy link
Contributor Author

gbrn commented Jun 20, 2024

1- I verified that the error appears when the SRT file is not UPLOAD. Important to correct this.
2- After uploading the SRT file. The available language is displayed in the window. But if I click Save it shows the error "Select a language!". Causing confusion. I can't understand the function of the save changes button.
3- If I upload without selecting the language, it shows the error: "select a lang".

image

@gbrn
Copy link
Contributor Author

gbrn commented Jun 20, 2024

After uploading 2 different subtitles. I did this with the video running, but the subtitles are not displayed.
Check it out in the video below:

O-Saci-1951-.-CNETV.mp4

@DanielnetoDotCom
Copy link
Member

image

Please try disable the UTF8 and upload the file again

@gbrn
Copy link
Contributor Author

gbrn commented Jun 21, 2024

@DanielnetoDotCom Danny, I checked to disable UTF8...
I took the test in 2 different languages, Spanish and English. But none of them loaded.

image

@DanielnetoDotCom
Copy link
Member

Can you please share a link for one of your videos that supposed to have subtitles?

@gbrn
Copy link
Contributor Author

gbrn commented Jun 22, 2024

I checked that it was talking about a pending plugin upgrade, but it didn't change the problem.

The video is at this URL, register to access it.
https://cnetv.com.br/video/83/o-saci-1951

If you need the SRT files, follow this ZIP:
O Saci (1951).zip

 [22-Jun-2024 01:26:04 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [22-Jun-2024 01:26:04 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: Another instance of the script is already running PIDs=379915,379916 videos_id=83 age=1 [83] /tmp/transcriber.lock logFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [22-Jun-2024 01:26:04 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: isFileUnchangedForOneMinute(path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log) 1719030363 <= 1719030304 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [22-Jun-2024 01:26:04 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: lock file exists videos_id=83 time=1719030363 /tmp/transcriber.lock path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [22-Jun-2024 04:26:04 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /view/videosList.php
 [22-Jun-2024 04:26:04 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /view/videosList.php
 [22-Jun-2024 04:26:04 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /view/videosList.php
 [22-Jun-2024 01:26:03 America/Sao_Paulo] AVideoLog::DEBUG: getCaptchaImage: admin - session_name 84b11d010cced71edffee7aa62c4eda0 session_id: urhmpep2r9rdlhibr75eaknd7a SCRIPT_NAME: /objects/getCaptcha.php
 [22-Jun-2024 01:26:03 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [22-Jun-2024 01:26:03 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [22-Jun-2024 04:26:03 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php
 [22-Jun-2024 04:26:03 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php
 [22-Jun-2024 04:26:03 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php
 [22-Jun-2024 01:26:02 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [22-Jun-2024 01:26:01 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [22-Jun-2024 01:26:01 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [22-Jun-2024 04:26:00 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /view/modeYoutube.php
 [22-Jun-2024 04:26:00 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /view/modeYoutube.php
 [22-Jun-2024 04:26:00 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /view/modeYoutube.php

@DanielnetoDotCom
Copy link
Member

Sorry, I could not verify the video.
To access this video, it is requiring credentials.

@gbrn
Copy link
Contributor Author

gbrn commented Jun 24, 2024

Danny, Just create a new registration on my platform. You can do it?
Take the opportunity to honor my work with classic and independent films ;D

@DanielnetoDotCom
Copy link
Member

I can see this file

https://cnetv.com.br/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.en.vtt

this is NOT a vtt file, this is a SRT file

I am not sure why it is not converting

try to catch the logs when you upload a srt file

@gbrn
Copy link
Contributor Author

gbrn commented Jun 24, 2024

@DanielnetoDotCom Danny, actually, checking the subtitle file mentioned, it is an SRT, renamed the extension to VTT only.

I tried testing the "AVideo Platform Full-Access Demo", but I couldn't access the plugin correctly.

I found the following log stored from the video directory:

Traceback (most recent call last):
  File "/usr/lib/python3.10/pathlib.py", line 1175, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/var/www/.cache/vosk'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/vosk-transcriber", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/vosk/transcriber/cli.py", line 71, in main
    transcriber = Transcriber(args)
  File "/usr/local/lib/python3.10/dist-packages/vosk/transcriber/transcriber.py", line 21, in __init__
    self.model = Model(model_path=args.model, model_name=args.model_name, lang=args.lang)
  File "/usr/local/lib/python3.10/dist-packages/vosk/__init__.py", line 54, in __init__
    model_path = self.get_model_path(model_name, lang)
  File "/usr/local/lib/python3.10/dist-packages/vosk/__init__.py", line 67, in get_model_path
    model_path = self.get_model_by_lang(lang)
  File "/usr/local/lib/python3.10/dist-packages/vosk/__init__.py", line 105, in get_model_by_lang
    self.download_model(Path(directory, result_model[0]))
  File "/usr/local/lib/python3.10/dist-packages/vosk/__init__.py", line 110, in download_model
    (model_name.parent).mkdir(parents=True)
  File "/usr/lib/python3.10/pathlib.py", line 1179, in mkdir
    self.parent.mkdir(parents=True, exist_ok=True)
  File "/usr/lib/python3.10/pathlib.py", line 1175, in mkdir
    self._accessor.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/var/www/.cache'
Exception ignored in: <function Model.__del__ at 0xfb8a1a645f30>
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/vosk/__init__.py", line 60, in __del__
    _c.vosk_model_free(self._handle)
AttributeError: 'Model' object has no attribute '_handle'

The question is this... do you need Vosk to convert from SRT to VTT?

(I didn't find this information on WIKI: https://github.com/WWBN/AVideo/wiki/Video-Transcription-for-the-SubtitleSwitcher-Plugin)

LOG:

 [24-Jun-2024 14:19:18 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Jun-2024 14:19:17 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Jun-2024 14:19:17 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Jun-2024 17:19:17 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [24-Jun-2024 17:19:17 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [24-Jun-2024 17:19:17 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [24-Jun-2024 14:19:16 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Jun-2024 14:19:15 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Jun-2024 14:19:15 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Jun-2024 17:19:15 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/SubtitleSwitcher/uploadSubtitle.php
 [24-Jun-2024 17:19:15 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/SubtitleSwitcher/uploadSubtitle.php
 [24-Jun-2024 17:19:15 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/SubtitleSwitcher/uploadSubtitle.php

@DanielnetoDotCom
Copy link
Member

I can confirm something is wrong, I am investigating

@DanielnetoDotCom
Copy link
Member

Vosk is not necessary

I am not sure what happened, but the SubtitleSwitcher version 6.7 may be working now.

I did not change anything, I just added more debugs and it is working on demo site.

@gbrn
Copy link
Contributor Author

gbrn commented Jun 25, 2024

@DanielnetoDotCom I updated the plugin, deleted the caption and sent it again. But the problem still persists, it doesn't display the subtitle.
Another issue is that the subtitles and setup options are not appearing now.
image

LOGs:

 [25-Jun-2024 00:06:35 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:06:35 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: Another instance of the script is already running PIDs=2909,2910 videos_id=83 age=1 [83] /tmp/transcriber.lock logFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:06:35 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: isFileUnchangedForOneMinute(path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log) 1719284794 <= 1719284735 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:06:35 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: lock file exists videos_id=83 time=1719284794 /tmp/transcriber.lock path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 03:06:34 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php
 [25-Jun-2024 03:06:34 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php
 [25-Jun-2024 03:06:34 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php
 [25-Jun-2024 00:06:34 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:06:34 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 03:06:34 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /view/videosList.php
 [25-Jun-2024 03:06:34 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /view/videosList.php
 [25-Jun-2024 03:06:34 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /view/videosList.php
 [25-Jun-2024 00:06:32 America/Sao_Paulo] AVideoLog::DEBUG: getCaptchaImage: admin - session_name 84b11d010cced71edffee7aa62c4eda0 session_id: nueigjmgvnak9iul7c57rg1m6q SCRIPT_NAME: /objects/getCaptcha.php
 [25-Jun-2024 00:06:31 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:06:30 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:06:30 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 03:06:30 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /view/modeYoutube.php
 [25-Jun-2024 03:06:30 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /view/modeYoutube.php
 [25-Jun-2024 03:06:30 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /view/modeYoutube.php
 [25-Jun-2024 00:06:02 America/Sao_Paulo] AVideoLog::DEBUG: getCaptchaImage: QdRmy - session_name 84b11d010cced71edffee7aa62c4eda0 session_id: k1b4qf9tvv0esdvlpm70t33l2v SCRIPT_NAME: /objects/getCaptcha.php
 [25-Jun-2024 00:03:30 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:29 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: Another instance of the script is already running PIDs=2809,2810 videos_id=83 age=0 [83] /tmp/transcriber.lock logFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:29 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: isFileUnchangedForOneMinute(path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log) 1719284609 <= 1719284549 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:29 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: lock file exists videos_id=83 time=1719284609 /tmp/transcriber.lock path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:29 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:29 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 03:03:29 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /view/videosList.php
 [25-Jun-2024 03:03:29 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /view/videosList.php
 [25-Jun-2024 03:03:29 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /view/videosList.php
 [25-Jun-2024 03:03:29 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php
 [25-Jun-2024 03:03:29 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php
 [25-Jun-2024 03:03:29 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php
 [25-Jun-2024 00:03:24 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:23 America/Sao_Paulo] AVideoLog::DEBUG: getCaptchaImage: admin - session_name 84b11d010cced71edffee7aa62c4eda0 session_id: nueigjmgvnak9iul7c57rg1m6q SCRIPT_NAME: /objects/getCaptcha.php
 [25-Jun-2024 00:03:23 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:23 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 03:03:22 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /view/modeYoutube.php
 [25-Jun-2024 03:03:22 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /view/modeYoutube.php
 [25-Jun-2024 03:03:22 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /view/modeYoutube.php
 [25-Jun-2024 00:03:03 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:03 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: Another instance of the script is already running PIDs=2767,2768 videos_id=83 age=1 [83] /tmp/transcriber.lock logFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:03 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: isFileUnchangedForOneMinute(path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log) 1719284582 <= 1719284523 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:03 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: lock file exists videos_id=83 time=1719284582 /tmp/transcriber.lock path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 03:03:02 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [25-Jun-2024 03:03:02 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [25-Jun-2024 03:03:02 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [25-Jun-2024 00:03:02 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:02 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:03:02 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 45 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 00:03:02 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 42 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 00:03:02 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 34 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 00:03:02 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 29 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 00:03:02 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 24 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 00:03:02 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 17 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 00:03:02 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 5 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 03:03:02 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 03:03:02 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 03:03:02 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 00:02:50 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:02:49 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: Another instance of the script is already running PIDs=2743,2744 videos_id=83 age=0 [83] /tmp/transcriber.lock logFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:02:49 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: isFileUnchangedForOneMinute(path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log) 1719284569 <= 1719284509 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:02:49 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: lock file exists videos_id=83 time=1719284569 /tmp/transcriber.lock path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:02:49 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:02:49 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 03:02:49 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [25-Jun-2024 03:02:49 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [25-Jun-2024 03:02:49 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [25-Jun-2024 03:02:49 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/SubtitleSwitcher/deleteSubtitle.php
 [25-Jun-2024 03:02:49 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/SubtitleSwitcher/deleteSubtitle.php
 [25-Jun-2024 03:02:49 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/SubtitleSwitcher/deleteSubtitle.php
 [25-Jun-2024 00:02:46 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:02:45 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:02:45 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 03:02:45 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [25-Jun-2024 03:02:45 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [25-Jun-2024 03:02:45 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/SubtitleSwitcher/subtitles.json.php
 [25-Jun-2024 00:02:43 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: done videos_id=83 path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:02:42 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3'  -t srt -o 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt' > 'path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 00:02:42 America/Sao_Paulo] AVideoLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.srt mp3File=path/to/my/streamer/site/videos/_YPTuniqid_60ab1017bc78a1.78234839/_YPTuniqid_60ab1017bc78a1.78234839.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [25-Jun-2024 03:02:42 UTC] AVideoLog::DEBUG: Return value: 0 SCRIPT_NAME: /plugin/SubtitleSwitcher/uploadSubtitle.php
 [25-Jun-2024 03:02:42 UTC] AVideoLog::DEBUG: Command output: [] SCRIPT_NAME: /plugin/SubtitleSwitcher/uploadSubtitle.php
 [25-Jun-2024 03:02:42 UTC] AVideoLog::DEBUG: execAsync Linux: nohup sh -c "/usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 83 & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/SubtitleSwitcher/uploadSubtitle.php

The logs show the problem of Multiple Instances Running:
The log indicates that multiple instances of the transcription script are running simultaneously. This can cause conflicts and errors in the transcription process.

Lock File Verification:
The system is using a lock file (/tmp/transcriber.lock) to prevent concurrent executions, yet multiple instances are still being detected.

There are issues with multiple instances of the script running simultaneously. Improvements in lock file management and more effective checks can help resolve these problems.

@DanielnetoDotCom
Copy link
Member

Hi

first please disable the autotranscript.
then please share a link of a new uploaded subtitle

@gbrn
Copy link
Contributor Author

gbrn commented Jun 25, 2024

@DanielnetoDotCom I even completed installing VOSK to test... it was installed, but the model and path were missing. But anyway I'm disabling it for testing.

So I did the following. I uploaded a new video and a new subtitle, to isolate problems.
I didn't find anything in the LOG that referred to subtitles.

In the video directory, the SRT file was converted to VTT, but keeping all SRT data, just changing the extension:
https://cnetv.com.br/videos/video_240625115628_vad34/video_240625115628_vad34.pt_BR.vtt

I tested by sending the subtitles in VTT and it worked normally.

So the problem I see is that the conversion script is not converting the SRT files to VTT.

As a default, I took the test video and subtitles that come in the plugin's ZIP:

Link video: https://cnetv.com.br/video/325

Video used:
https://github.com/WWBN/AVideo/assets/37880073/35b6f564-56ae-416c-a9bc-a076e34ed3fc

Subtitle used:
MIB2-subtitles-pt-BR.zip

@DanielnetoDotCom
Copy link
Member

can you please share the logs when you upload the subtitle?
I need this now after you disable the autotranscription.

@gbrn
Copy link
Contributor Author

gbrn commented Jun 25, 2024

I tried to find some information in the LOG, but there is nothing about it.

I think something is broken in the script that converts the SRT file to VTT.
Autotranscription is disabled and did not affect anything.

This is the only information in the LOG:

 [25-Jun-2024 12:41:08 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 45 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 12:41:08 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 42 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 12:41:08 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 34 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 12:41:08 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 29 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 12:41:08 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 24 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 12:41:08 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 17 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 12:41:08 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 5 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php

 [25-Jun-2024 14:04:24 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 45 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 14:04:24 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 42 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 14:04:24 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 34 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 14:04:24 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 29 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 14:04:24 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 24 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 14:04:24 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 17 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php
 [25-Jun-2024 14:04:24 America/Sao_Paulo] AVideoLog::DEBUG: SubtitleSwitcher 5 SCRIPT_NAME: /plugin/SubtitleSwitcher/saveSubtitle.php

@gbrn
Copy link
Contributor Author

gbrn commented Jun 25, 2024

@DanielnetoDotCom I already discovered the problem...
The problem is in the way the SRT file is saved by the system.

It works:
1- Select the file
2- Select the language
3- Click on the "Save changes" button

Does not work:
1- Select the file
2- Select the language
3- Click on Upload
image

Watch the video:

Videos-.-AVideo-Platform-Demo.mp4

In the LOG this problem is not displayed.

@DanielnetoDotCom
Copy link
Member

I see, thanks for clarifying this.
I will see what I can do

@DanielnetoDotCom
Copy link
Member

Please check version 6.8

I sent some updates

@gbrn
Copy link
Contributor Author

gbrn commented Jun 25, 2024

I updated here and apparently the initial problem was resolved.
But it seems to me that there was a residue of some test left in the code. There is a file that I didn't upload and I can't delete, named CC.

MIB2-.-CNETV.mp4

@DanielnetoDotCom
Copy link
Member

can you please check your logs if this issue is a file permission issue?
I guess the problem is because it was created with the auto transcription (root), and you are trying to delete with apache

@gbrn
Copy link
Contributor Author

gbrn commented Jun 25, 2024

Yes, the last thing that happened was because I turned on the auto transcription to test if it was changing anything and forgot to turn it off.
So this "CC" represents the caption that VOSK created.
When I disabled transcription, it allowed me to delete the file.

So, the initial problem was resolved.
Thanks Danny!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants