WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.9k stars 972 forks source link

Question about automatic Transcription in Subititleswitcher #8574

Closed h3ll3 closed 11 months ago

h3ll3 commented 11 months ago

Hey Folks,

I have just enabled the Subtitleswitcher Plugin and tried to enable the automatic voice transcription for my videos.

I am not sure about how this should work. I have read this (https://github.com/WWBN/AVideo/wiki/Video-Transcription-for-the-SubtitleSwitcher-Plugin#the-transcriber) and this (https://alphacephei.com/vosk/install)

python3 --version Python 3.11.2

pip3 --version pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11)

I tried with all model packs that are available for my language "german".

Here is my problem as far as i was able to find out: There is a .srt.log file and (not always but often) a .srt file inside of each video folder. The .srt file, if it exists is empty. Sometimes there is a .vtt file in this folder (i understood that there should be the closed caption content inside, shouldnt it?). The .vtt file contains only WEBVTT. Those files are generated by the plugin, correct?

The content of the .srt.log file is

LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=13 max-active=7000 lattice-beam=6
LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10
LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes.
LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components.
LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from /usr/share/vosk/vosk-model-de-0.21/ivector/final.ie
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.
LOG (VoskAPI:ReadDataFiles():model.cc:279) Loading HCLG from /usr/share/vosk/vosk-model-de-0.21/graph/HCLG.fst
LOG (VoskAPI:ReadDataFiles():model.cc:297) Loading words from /usr/share/vosk/vosk-model-de-0.21/graph/words.txt
LOG (VoskAPI:ReadDataFiles():model.cc:308) Loading winfo /usr/share/vosk/vosk-model-de-0.21/graph/phones/word_boundary.int
LOG (VoskAPI:ReadDataFiles():model.cc:315) Loading subtract G.fst model from /usr/share/vosk/vosk-model-de-0.21/rescore/G.fst
LOG (VoskAPI:ReadDataFiles():model.cc:317) Loading CARPA model from /usr/share/vosk/vosk-model-de-0.21/rescore/G.carpa
LOG (VoskAPI:ReadDataFiles():model.cc:323) Loading RNNLM model from /usr/share/vosk/vosk-model-de-0.21/rnnlm/final.raw
INFO:root:Recognizing /var/www/html/AVideo/videos/cache/tmpFiles/6537c68924b15.mp3
INFO:root:File /var/www/html/AVideo/videos/v_230830075033_v1911/v_230830075033_v1911.srt processing complete
Traceback (most recent call last):
  File "/usr/local/bin/vosk-transcriber", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/vosk/transcriber/cli.py", line 86, in main
    transcriber.process_task_list(task_list)
  File "/usr/local/lib/python3.11/dist-packages/vosk/transcriber/transcriber.py", line 193, in process_task_list
    self.process_task_list_pool(task_list)
  File "/usr/local/lib/python3.11/dist-packages/vosk/transcriber/transcriber.py", line 189, in process_task_list_pool
    pool.map(self.pool_worker, task_list)
  File "/usr/lib/python3.11/multiprocessing/pool.py", line 367, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/multiprocessing/pool.py", line 774, in get
    raise self._value
  File "/usr/lib/python3.11/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/vosk/transcriber/transcriber.py", line 179, in pool_worker
    "xRT {:.3f}".format(elapsed, float(elapsed) * (2 * SAMPLE_RATE) / tot_samples))
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
ZeroDivisionError: float division by zero

In my AVideo.log i find this line (where '155' is the ID of the video that the plugin is trying to transcribe, right?).

[25-Oct-2023 05:46:12 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 155 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /view/videosList.php
 [25-Oct-2023 05:46:12 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 155 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /view/videosList.php
 [24-Oct-2023 15:54:40 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Oct-2023 15:54:40 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SUCCESS on create VTT file path/to/my/streamer/site/videos/v_231024155437_v75a2/v_231024155437_v75a2.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Oct-2023 15:54:39 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/cache/tmpFiles/6537cc9fc55c9.mp3'  --model '/usr/share/vosk/vosk-model-small-de-0.15'  -t srt -o 'path/to/my/streamer/site/videos/v_231024155437_v75a2/v_231024155437_v75a2.srt' > 'path/to/my/streamer/site/videos/v_231024155437_v75a2/v_231024155437_v75a2.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Oct-2023 15:54:39 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file path/to/my/streamer/site/videos/cache/tmpFiles/6537cc9fc55c9.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Oct-2023 15:54:39 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [24-Oct-2023 15:54:39 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/v_231024155437_v75a2/v_231024155437_v75a2.srt mp3File=path/to/my/streamer/site/videos/v_231024155437_v75a2/v_231024155437_v75a2.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php

Vosk seems to work properly. When i try to test it with one of the mp4 files e.g., it recognizes every word.

vosk-transcriber -i test.mp4 -o test.txt

Does anyone have a hint?

h3ll3 commented 11 months ago

Okay - some more Infos i found out:

... .vtt file and .srt file are existent at uploaded videos, not at recorded live streams. isn't it possible to autocreate subtitles at recorded and hls encoded livestreams?

I can check CC option when watching the video on both types.

at recorded live streams, i can only find .srt.log file which contains

LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=13 max-active=7000 lattice-beam=6
LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10
LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes.
LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components.
LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from /usr/share/vosk/vosk-model-de-0.21/ivector/final.ie
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.
LOG (VoskAPI:ReadDataFiles():model.cc:279) Loading HCLG from /usr/share/vosk/vosk-model-de-0.21/graph/HCLG.fst
LOG (VoskAPI:ReadDataFiles():model.cc:297) Loading words from /usr/share/vosk/vosk-model-de-0.21/graph/words.txt
LOG (VoskAPI:ReadDataFiles():model.cc:308) Loading winfo /usr/share/vosk/vosk-model-de-0.21/graph/phones/word_boundary.int
LOG (VoskAPI:ReadDataFiles():model.cc:315) Loading subtract G.fst model from /usr/share/vosk/vosk-model-de-0.21/rescore/G.fst
LOG (VoskAPI:ReadDataFiles():model.cc:317) Loading CARPA model from /usr/share/vosk/vosk-model-de-0.21/rescore/G.carpa
LOG (VoskAPI:ReadDataFiles():model.cc:323) Loading RNNLM model from /usr/share/vosk/vosk-model-de-0.21/rnnlm/final.raw
INFO:root:Wrong arguments

My Subtitleswitcher Plugin looks like this (i also tried to place vosk model in other folders before):

subtitleDivStyle:
3px
[ ] disableSubtitleSettings
[ ] disableUTF8Encode
[X] addClosedCaptionIcons
[ ] defaultSubtitleIsOff
defaultSubtitleLanguage:
de
[ ] defaultSubtitleLanguageUseUserLocation
[X] automaticTranscript
automaticTranscriptModelPath:
/usr/share/vosk/vosk-model-de-0.21

did i miss or misunterstand something?

DanielnetoDotCom commented 11 months ago

It seems to me your Python version is old and your Vosk was not installed properly

the first step is to make sure your Vosk is working

can you please share the complete .srt.log?

h3ll3 commented 11 months ago

Hi Daniel,

i reinstalled python3 from source, changed the installation candidate and reinstalled pip3 and Vosk.

pip3 -V
pip 23.3.1 from /usr/local/lib/python3.12/site-packages/pip (python 3.12)

python3 -V
Python 3.12.0

then i reinstalled vosk.

pip3 list

Package            Version
------------------ ----------
...
vosk               0.3.45
...

I re-enabled the Subtitleswitcher Plugin and uploaded a video as mp4. (upload started at 09:40:00).

This is my AVideo.log

  [26-Oct-2023 09:42:38 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0036239624023438 seconds SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:42:38 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:42:38 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:42:38 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SUCCESS on create VTT file path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/cache/tmpFiles/653a18619669f.mp3'  --model '/var/www/html/vosk-model-de-0.21'  -t srt -o 'path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.srt' > 'path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file path/to/my/streamer/site/videos/cache/tmpFiles/653a18619669f.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.srt mp3File=path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: Files Received for video 156: 20231025_113133 {"error":false,"video_id":156,"jpgDest":"\/var\/www\/html\/myMySQLUser\/videos\/video_231026094014_vfca3\/video_231026094014_vfca3.jpg","jpgDestSize":109322,"gifDest":"\/var\/www\/html\/myMySQLUser\/videos\/video_231026094014_vfca3\/video_231026094014_vfca3.gif","gifDestSize":245248,"webpDest":"\/var\/www\/html\/myMySQLUser\/videos\/video_231026094014_vfca3\/video_231026094014_vfca3.webp","webpDestSize":84534,"jpgDest_deleteInvalidImage":false,"gifDest_deleteInvalidImage":true,"webpDest_deleteInvalidImage":false,"video_id_hash":"M3BTVmZGaHNkdCtDaXk1UnUzMEZzS0tNOWFISVRHYVpDVnBZQUlCOFFGdz0=","releaseDate":null,"releaseTime":null} SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.002561092376709 seconds SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: updateFilesize: videos_id=156 filename=video_231026094014_vfca3 filesize=443200 432.81KB SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: YPTStorage getFileInfo ERROR empty siteURL video_231026094014_vfca3, ,  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: found 443200 from - 443200 path/to/my/streamer/site/videos/video_231026094014_vfca3/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: start path/to/my/streamer/site/videos/video_231026094014_vfca3/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0026021003723145 seconds SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: deleteThumbs [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":5573,"function":"deleteThumbs","class":"Video","type":"::","args":["video_231026094014_vfca3",true]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderReceiveImage.json.php","line":190,"function":"clearCache","class":"Video","type":"::","args":[156,true]}] SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3_512.jpg) unlink line=10613 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3_384.jpg) unlink line=10613 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3_256.jpg) unlink line=10613 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3_192.jpg) unlink line=10613 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3_128.jpg) unlink line=10613 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3_96.jpg) unlink line=10613 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: Video:deleteThumbs(video_231026094014_vfca3) [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":5573,"function":"deleteThumbs","class":"Video","type":"::","args":["video_231026094014_vfca3",true]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderReceiveImage.json.php","line":190,"function":"clearCache","class":"Video","type":"::","args":[156,true]}] SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0027320384979248 seconds SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0046041011810303 seconds SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: Video::save ([NULL] 20231025_113133) Saved id = 156 0:00:20 [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderReceiveImage.json.php","line":189,"function":"save","class":"Video","type":"->"}] SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: duration Line 179 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: duration NOT empty 0:00:20 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: download https://www.mysite.com/upload/videos/125_tmpFile.mp4.webp 84534 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: download https://www.mysite.com/upload/videos/125_tmpFile.mp4.gif 245248 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: download https://www.mysite.com/upload/videos/125_tmpFile.mp4.jpg to path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.jpg 106.76KB SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: videoFilename = [video_231026094014_vfca3] destination_local = path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3 Encoder receiving post {"image":{"name":"125tmpFile.mp4.jpg","full_path":"\/var\/www\/html\/myMySQLUser\/upload\/videos\/125_tmpFile.mp4.jpg","type":"application\/octet-stream","tmp_name":"\/tmp\/phpfNJm6n","error":0,"size":109322},"gifimage":{"name":"125tmpFile.mp4.gif","full_path":"\/var\/www\/html\/myMySQLUser\/upload\/videos\/125_tmpFile.mp4.gif","type":"application\/octet-stream","tmp_name":"\/tmp\/phpAgGwQ9","error":0,"size":245248},"webpimage":{"name":"125tmpFile.mp4.webp","full_path":"\/var\/www\/html\/myMySQLUser\/upload\/videos\/125_tmpFile.mp4.webp","type":"application\/octet-stream","tmp_name":"\/tmp\/phpW5PYCy","error":0,"size":84534}} SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
[26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 156 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:25 Europe/Berlin] myMySQLUserLog::DEBUG: GET: [] SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
[26-Oct-2023 07:42:25 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 156 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 07:42:25 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 07:42:25 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 07:42:25 UTC] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 156 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: getVideosURL_V2(video_230906100233_vac06) Recreate cache requested [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":6779,"function":"getVideosURL_V2"},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":6764,"function":"isMediaFileMissing","class":"Video","type":"::"},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/videos.json.php","line":85,"function":"checkIfIsBroken","class":"Video","type":"::"}] SCRIPT_NAME: /objects/videos.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: Video::duration_in_seconds: id=156 EE:EE:EE video SCRIPT_NAME: /objects/videos.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0025291442871094 seconds SCRIPT_NAME: /objects/videos.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/videos.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/videos.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: Video::updateLikesDislikes: id=156 SCRIPT_NAME: /objects/videos.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.010990142822266 seconds SCRIPT_NAME: /objects/videos.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/videos.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/videos.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: Video::updateLikesDislikes: id=156 SCRIPT_NAME: /objects/videos.json.php
 [26-Oct-2023 09:42:13 Europe/Berlin] myMySQLUserLog::DEBUG: Live::getStats Live_servers::getAllActive total=1 SCRIPT_NAME: /plugin/Live/stats.json.php
 [26-Oct-2023 09:42:12 Europe/Berlin] myMySQLUserLog::DEBUG: Time: 0.308s   | Limit: 0.2s | Location: path/to/my/streamer/site/view/managerVideos.php Line 129 [navbar.php] IP=10.242.2.10 SCRIPT_NAME: /view/managerVideos.php
 [26-Oct-2023 09:42:12 Europe/Berlin] myMySQLUserLog::DEBUG: Live::getStats Live_servers::getAllActive total=1 SCRIPT_NAME: /view/managerVideos.php
 [26-Oct-2023 09:42:12 Europe/Berlin] myMySQLUserLog::DEBUG: Live::getStats Live_servers::getAllActive total=1 SCRIPT_NAME: /view/managerVideos.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: done videos_id=156 path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/cache/tmpFiles/653a17dea0a02.mp3'  --model '/var/www/html/vosk-model-de-0.21'  -t srt -o 'path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.srt' > 'path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file path/to/my/streamer/site/videos/cache/tmpFiles/653a17dea0a02.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.srt mp3File=path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files Received for video 156: 20231025_113133 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update HLS duration: file not exists path/to/my/streamer/site/videos/video_231026094014_vfca3//res1080/index.m3u8 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update duration: file not exists  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0027859210968018 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.014430046081543 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: Video::save ([NULL] 20231025_113133) Saved id = 156 EE:EE:EE [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":188,"function":"save","class":"Video","type":"->"}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: onNewVideo $insert_row = 156 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 09:40:14 Europe/Berlin] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 156 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /objects/aVideoEncoder.json.php

This is the content of /var/www/AVideo/videos/

-rw-r--r--  1 www-data www-data 1805261 Oct 26 09:42 video_231026094014_vfca3_1080.mp4
-rw-r--r--  1 www-data www-data  434937 Oct 26 09:42 video_231026094014_vfca3_240.mp4
-rw-r--r--  1 www-data www-data  500744 Oct 26 09:42 video_231026094014_vfca3_360.mp4
-rw-r--r--  1 www-data www-data  579691 Oct 26 09:42 video_231026094014_vfca3_480.mp4
-rw-r--r--  1 www-data www-data  800239 Oct 26 09:42 video_231026094014_vfca3_540.mp4
-rw-r--r--  1 www-data www-data 1049149 Oct 26 09:42 video_231026094014_vfca3_720.mp4
-rw-r--r--  1 www-data www-data  245248 Oct 26 09:42 video_231026094014_vfca3.gif
-rw-r--r--  1 www-data www-data  109322 Oct 26 09:42 video_231026094014_vfca3.jpg
-rw-r--r--  1 www-data www-data       0 Oct 26 09:42 video_231026094014_vfca3.srt
-rw-r--r--  1 www-data www-data    3054 Oct 26 09:42 video_231026094014_vfca3.srt.log
-rw-r--r--  1 www-data www-data  147137 Oct 26 09:48 video_231026094014_vfca3_thumbsSprit.jpg
-rw-rw-rw-  1 www-data www-data   30776 Oct 26 09:44 video_231026094014_vfca3_thumbsV2.jpg
-rw-r--r--  1 www-data www-data       8 Oct 26 09:42 video_231026094014_vfca3.vtt
-rw-r--r--  1 www-data www-data   84534 Oct 26 09:42 video_231026094014_vfca3.webp

video_231026094014_vfca3.srt

is empty

video_231026094014_vfca3.vtt

WEBVTT

video_231026094014_vfca3.srt.log

LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=13 max-active=7000 lattice-beam=6
LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10
LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes.
LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components.
LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from /var/www/html/vosk-model-de-0.21/ivector/final.ie
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.
LOG (VoskAPI:ReadDataFiles():model.cc:279) Loading HCLG from /var/www/html/vosk-model-de-0.21/graph/HCLG.fst
LOG (VoskAPI:ReadDataFiles():model.cc:297) Loading words from /var/www/html/vosk-model-de-0.21/graph/words.txt
LOG (VoskAPI:ReadDataFiles():model.cc:308) Loading winfo /var/www/html/vosk-model-de-0.21/graph/phones/word_boundary.int
LOG (VoskAPI:ReadDataFiles():model.cc:315) Loading subtract G.fst model from /var/www/html/vosk-model-de-0.21/rescore/G.fst
LOG (VoskAPI:ReadDataFiles():model.cc:317) Loading CARPA model from /var/www/html/vosk-model-de-0.21/rescore/G.carpa
LOG (VoskAPI:ReadDataFiles():model.cc:323) Loading RNNLM model from /var/www/html/vosk-model-de-0.21/rnnlm/final.raw
INFO:root:Recognizing /var/www/html/AVideo/videos/cache/tmpFiles/653a18619669f.mp3
INFO:root:File /var/www/html/AVideo/videos/video_231026094014_vfca3/video_231026094014_vfca3.srt processing complete
Traceback (most recent call last):
  File "/usr/local/bin/vosk-transcriber", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/vosk/transcriber/cli.py", line 86, in main
    transcriber.process_task_list(task_list)
  File "/usr/local/lib/python3.12/site-packages/vosk/transcriber/transcriber.py", line 193, in process_task_list
    self.process_task_list_pool(task_list)
  File "/usr/local/lib/python3.12/site-packages/vosk/transcriber/transcriber.py", line 189, in process_task_list_pool
    pool.map(self.pool_worker, task_list)
  File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 367, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 774, in get
    raise self._value
  File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/vosk/transcriber/transcriber.py", line 179, in pool_worker
    "xRT {:.3f}".format(elapsed, float(elapsed) * (2 * SAMPLE_RATE) / tot_samples))
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
ZeroDivisionError: float division by zero

I can do

vosk-transcriber -l de -i /var/www/html/AVideo/videos/video_231026094014_vfca3/video_231026094014_vfca3_1080.mp4 -o test.txt

and the output of test.txt is correct

test eins zwei drei

Thats all i can show you. :(

DanielnetoDotCom commented 11 months ago

Try to run this manually

vosk-transcriber -i 'path/to/my/streamer/site/videos/cache/tmpFiles/653a18619669f.mp3'  --model '/var/www/html/vosk-model-de-0.21'  -t srt -o 'path/to/my/streamer/site/videos/video_231026094014_vfca3/video_231026094014_vfca3.srt' 
h3ll3 commented 11 months ago

seems that there is no tmpFiles folder generated in /cache dir...so there is also no whatever.mp3 that could get used to transcribe.

on which way is this folder created?

26-Oct-2023 18:34:30 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 18:34:30 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 18:34:30 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: destinationFile path/to/my/streamer/site/videos/v_231026183416_v4099/v_231026183416_v4099.zip filesize= (0 bytes) SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [26-Oct-2023 18:34:29 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/cache/tmpFiles/653a951594888.mp3'  --model '/var/www/html/vosk-model-de-0.21'  -t srt -o 'path/to/my/streamer/site/videos/v_231026183416_v4099/v_231026183416_v4099.srt' > 'path/to/my/streamer/site/videos/v_231026183416_v4099/v_231026183416_v4099.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 18:34:29 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file path/to/my/streamer/site/videos/cache/tmpFiles/653a951594888.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 18:34:29 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [26-Oct-2023 18:34:29 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/v_231026183416_v4099/v_231026183416_v4099.srt mp3File=path/to/my/streamer/site/videos/v_231026183416_v4099/v_231026183416_v4099.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php

This is my Chache Plugin, if you need. Its at v7.0

image

DanielnetoDotCom commented 11 months ago

it is probably because you clear the cache.

try to do it in any mp3, check your videos folder

h3ll3 commented 11 months ago

This is the output

LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=13 max-active=7000 lattice-beam=6
LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10
LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes.
LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components.
LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from /var/www/html/vosk-model-de-0.21/ivector/final.ie
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.
LOG (VoskAPI:ReadDataFiles():model.cc:279) Loading HCLG from /var/www/html/vosk-model-de-0.21/graph/HCLG.fst
LOG (VoskAPI:ReadDataFiles():model.cc:297) Loading words from /var/www/html/vosk-model-de-0.21/graph/words.txt
LOG (VoskAPI:ReadDataFiles():model.cc:308) Loading winfo /var/www/html/vosk-model-de-0.21/graph/phones/word_boundary.int
LOG (VoskAPI:ReadDataFiles():model.cc:315) Loading subtract G.fst model from /var/www/html/vosk-model-de-0.21/rescore/G.fst
LOG (VoskAPI:ReadDataFiles():model.cc:317) Loading CARPA model from /var/www/html/vosk-model-de-0.21/rescore/G.carpa
LOG (VoskAPI:ReadDataFiles():model.cc:323) Loading RNNLM model from /var/www/html/vosk-model-de-0.21/rnnlm/final.raw
INFO:root:Recognizing 6500061be643b-1-26-Oct-23-21:08:23.mp3
INFO:root:File /var/www/html/AVideo/videos/video_231026094014_vfca3/video_231026094014_vfca3.srt processing complete
Traceback (most recent call last):
  File "/usr/local/bin/vosk-transcriber", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.12/site-packages/vosk/transcriber/cli.py", line 86, in main
    transcriber.process_task_list(task_list)
  File "/usr/local/lib/python3.12/site-packages/vosk/transcriber/transcriber.py", line 193, in process_task_list
    self.process_task_list_pool(task_list)
  File "/usr/local/lib/python3.12/site-packages/vosk/transcriber/transcriber.py", line 189, in process_task_list_pool
    pool.map(self.pool_worker, task_list)
  File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 367, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 774, in get
    raise self._value
  File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/vosk/transcriber/transcriber.py", line 179, in pool_worker
    "xRT {:.3f}".format(elapsed, float(elapsed) * (2 * SAMPLE_RATE) / tot_samples))
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
ZeroDivisionError: float division by zero

I will try tomorrow with some other models.

DanielnetoDotCom commented 11 months ago

You need to fix the Traceback (most recent call last): error

h3ll3 commented 11 months ago

Sorry i dont get it - do u think i should open a question in vosk git section?

I re-downloaded the models and now i can do it manually...with mp3 or mp4 file, with several model packs. Maybe i had some permission issues here.

When i upload e.g. a mp4 video, the .srt.log shows exactly the same error as above (traceback) including an empty .srt file.

But when i do

vosk-transcriber -i '/var/www/html/AVideo/videos/video_231027074524_v6206/video_231027074524_v6206_1080.mp4' --model '/var/www/html/vosk-model-de-0.21' -t srt -o '/var/www/html/AVideo/videos/video_231027074524_v6206/video_231027074524_v6206.srt'

The output in my cli is

LOG (VoskAPI:ReadDataFiles():model.cc:213) Decoding params beam=13 max-active=7000 lattice-beam=6
LOG (VoskAPI:ReadDataFiles():model.cc:216) Silence phones 1:2:3:4:5:6:7:8:9:10
LOG (VoskAPI:RemoveOrphanNodes():nnet-nnet.cc:948) Removed 0 orphan nodes.
LOG (VoskAPI:RemoveOrphanComponents():nnet-nnet.cc:847) Removing 0 orphan components.
LOG (VoskAPI:ReadDataFiles():model.cc:248) Loading i-vector extractor from /var/www/html/vosk-model-de-0.21/ivector/final.ie
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:183) Computing derived variables for iVector extractor
LOG (VoskAPI:ComputeDerivedVars():ivector-extractor.cc:204) Done.
LOG (VoskAPI:ReadDataFiles():model.cc:279) Loading HCLG from /var/www/html/vosk-model-de-0.21/graph/HCLG.fst
LOG (VoskAPI:ReadDataFiles():model.cc:297) Loading words from /var/www/html/vosk-model-de-0.21/graph/words.txt
LOG (VoskAPI:ReadDataFiles():model.cc:308) Loading winfo /var/www/html/vosk-model-de-0.21/graph/phones/word_boundary.int
LOG (VoskAPI:ReadDataFiles():model.cc:315) Loading subtract G.fst model from /var/www/html/vosk-model-de-0.21/rescore/G.fst
LOG (VoskAPI:ReadDataFiles():model.cc:317) Loading CARPA model from /var/www/html/vosk-model-de-0.21/rescore/G.carpa
LOG (VoskAPI:ReadDataFiles():model.cc:323) Loading RNNLM model from /var/www/html/vosk-model-de-0.21/rnnlm/final.raw
INFO:root:Recognizing /var/www/html/AVideo/videos/video_231027074524_v6206/video_231027074524_v6206_1080.mp4
INFO:root:{'partial': 'so'}
INFO:root:{'partial': 'so'}
INFO:root:{'partial': 'so'}
INFO:root:{'partial': 'so'}
[...]
INFO:root:{'partial': 'so dies ist ein'}
INFO:root:{'partial': 'so dies ist ein'}
INFO:root:{'partial': 'so dies ist ein'}
INFO:root:{'partial': 'so dies ist ein'}
INFO:root:{'partial': 'so dies ist ein test'}
INFO:root:{'partial': 'so dies ist ein test'}
INFO:root:File /var/www/html/AVideo/videos/video_231027074524_v6206/video_231027074524_v6206.srt processing complete
INFO:root:Execution time: 0.958 sec; xRT 0.213

And my .srt file shows

1
00:00:01,500 --> 00:00:04,020
so dies ist ein test

edit: not sure if this is useful, but in the failure log it says

INFO:root:Recognizing 6500061be643b-1-26-Oct-23-21:08:23.mp3 without any file path.

...and when doing it manually, the path shows up in the log.

INFO:root:Recognizing /var/www/html/AVideo/videos/video_231027074524_v6206/video_231027074524_v6206_1080.mp4

DanielnetoDotCom commented 11 months ago

Hi,

after redownload does it work?

h3ll3 commented 11 months ago

Yes. I downloaded another model Pack (small one), tried it and it worked. Then i adjusted permissions (www-data was owner before, i changed this to root) on the model pack i used before (vosk-model-de-0.21) and it worked too.

But only when i do it manually!

The behaviour in Avideo is still the same and the content of the log file is still Traceback (most recent call last)...

DanielnetoDotCom commented 11 months ago

what is the log from AVideo?

h3ll3 commented 11 months ago

Hope i got it all...i am currently on My Phone.

[27-Oct-2023 19:30:01 Europe/Berlin] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 165 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [27-Oct-2023 19:30:01 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: start SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [27-Oct-2023 17:30:01 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 165 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [27-Oct-2023 17:30:01 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [27-Oct-2023 17:30:01 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [27-Oct-2023 17:30:01 UTC] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 165 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [27-Oct-2023 19:29:39 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: done videos_id=165 path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:39 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0034809112548828 seconds SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:39 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:39 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:39 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SUCCESS on create VTT file path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/cache/tmpFiles/653bf38240347.mp3'  --model '/var/www/html/vosk-model-small-de-0.15'  -t srt -o 'path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.srt' > 'path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file path/to/my/streamer/site/videos/cache/tmpFiles/653bf38240347.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.srt mp3File=path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: Files Received for video 165: 20231025_113133 {"error":false,"video_id":165,"jpgDest":"\/var\/www\/html\/myMySQLUser\/videos\/video_231027192919_ve283\/video_231027192919_ve283.jpg","jpgDestSize":109322,"gifDest":"\/var\/www\/html\/myMySQLUser\/videos\/video_231027192919_ve283\/video_231027192919_ve283.gif","gifDestSize":245248,"webpDest":"\/var\/www\/html\/myMySQLUser\/videos\/video_231027192919_ve283\/video_231027192919_ve283.webp","webpDestSize":84534,"jpgDest_deleteInvalidImage":false,"gifDest_deleteInvalidImage":true,"webpDest_deleteInvalidImage":false,"video_id_hash":"Q1h1Z1JmUnRhNDlrcWZKWkpvK1FPczJtTnMzWGpPUFdJTzR5VmNkUFpSTT0=","releaseDate":null,"releaseTime":null} SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0027079582214355 seconds SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: updateFilesize: videos_id=165 filename=video_231027192919_ve283 filesize=443200 432.81KB SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: YPTStorage getFileInfo ERROR empty siteURL video_231027192919_ve283, ,  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: found 443200 from - 443200 path/to/my/streamer/site/videos/video_231027192919_ve283/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: start path/to/my/streamer/site/videos/video_231027192919_ve283/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0021998882293701 seconds SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: deleteThumbs [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":5573,"function":"deleteThumbs","class":"Video","type":"::","args":["video_231027192919_ve283",true]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderReceiveImage.json.php","line":190,"function":"clearCache","class":"Video","type":"::","args":[165,true]}] SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283_512.jpg) unlink line=10642 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283_384.jpg) unlink line=10642 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283_256.jpg) unlink line=10642 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283_192.jpg) unlink line=10642 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283_128.jpg) unlink line=10642 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283_96.jpg) unlink line=10642 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: Video:deleteThumbs(video_231027192919_ve283) [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":5573,"function":"deleteThumbs","class":"Video","type":"::","args":["video_231027192919_ve283",true]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderReceiveImage.json.php","line":190,"function":"clearCache","class":"Video","type":"::","args":[165,true]}] SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0022838115692139 seconds SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0038540363311768 seconds SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: Video::save ([NULL] 20231025_113133) Saved id = 165 0:00:20 [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderReceiveImage.json.php","line":189,"function":"save","class":"Video","type":"->"}] SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: duration Line 179 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: duration NOT empty 0:00:20 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: download https://www.mysite.com/upload/videos/134_tmpFile.mp4.webp 84534 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: download https://www.mysite.com/upload/videos/134_tmpFile.mp4.gif 245248 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: download https://www.mysite.com/upload/videos/134_tmpFile.mp4.jpg to path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.jpg 106.76KB SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:38 Europe/Berlin] myMySQLUserLog::DEBUG: ReceiveImage: videoFilename = [video_231027192919_ve283] destination_local = path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283 Encoder receiving post {"image":{"name":"134tmpFile.mp4.jpg","full_path":"\/var\/www\/html\/myMySQLUser\/upload\/videos\/134_tmpFile.mp4.jpg","type":"application\/octet-stream","tmp_name":"\/tmp\/phpCD0SpU","error":0,"size":109322},"gifimage":{"name":"134tmpFile.mp4.gif","full_path":"\/var\/www\/html\/myMySQLUser\/upload\/videos\/134_tmpFile.mp4.gif","type":"application\/octet-stream","tmp_name":"\/tmp\/phpZhaiwS","error":0,"size":245248},"webpimage":{"name":"134tmpFile.mp4.webp","full_path":"\/var\/www\/html\/myMySQLUser\/upload\/videos\/134_tmpFile.mp4.webp","type":"application\/octet-stream","tmp_name":"\/tmp\/phpos5tmi","error":0,"size":84534}} SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
********************************* ************ ******************************************* - pass
 [27-Oct-2023 17:29:38 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 165 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 17:29:37 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 17:29:37 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 17:29:37 UTC] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 165 SCRIPT_NAME: /objects/aVideoEncoderReceiveImage.json.php
 [27-Oct-2023 19:29:20 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: done videos_id=165 path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:20 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/cache/tmpFiles/653bf37009d99.mp3'  --model '/var/www/html/vosk-model-small-de-0.15'  -t srt -o 'path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.srt' > 'path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:20 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file path/to/my/streamer/site/videos/cache/tmpFiles/653bf37009d99.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:20 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:20 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.srt mp3File=path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:19 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files Received for video 165: 20231025_113133 SCRIPT_NAME: /objects/aVideoEncoder.json.php
[27-Oct-2023 19:28:17 Europe/Berlin] myMySQLUserLog::DEBUG: Unmatched image request: /view/img/image404.php?notFound=1 SCRIPT_NAME: /view/img/image404.php
 [27-Oct-2023 19:28:17 Europe/Berlin] myMySQLUserLog::DEBUG: Unmatched image request: view/img/userSilhouette.jpg SCRIPT_NAME: /view/img/image404.php
 [27-Oct-2023 19:28:17 Europe/Berlin] myMySQLUserLog::DEBUG: Page generated in 0.1637 seconds. User: user1 - No Cache (/) FROM: 10.17.17.43 Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 SCRIPT_NAME: /view/index.php
 [27-Oct-2023 19:28:17 Europe/Berlin] myMySQLUserLog::DEBUG: Live::getStats Live_servers::getAllActive total=1 SCRIPT_NAME: /view/index.php
 [27-Oct-2023 19:28:15 Europe/Berlin] myMySQLUserLog::DEBUG: Unmatched image request: /view/img/image404.php?notFound=1 SCRIPT_NAME: /view/img/image404.php
 [27-Oct-2023 19:28:15 Europe/Berlin] myMySQLUserLog::DEBUG: Unmatched image request: view/img/userSilhouette.jpg SCRIPT_NAME: /view/img/image404.php
 [27-Oct-2023 17:28:15 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 162 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /view/videosList.php
 [27-Oct-2023 17:28:15 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 162 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /plugin/PlayerSkins/mediaSession.json.php
 [27-Oct-2023 17:28:15 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 162 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /view/videosList.php
 [27-Oct-2023 19:28:15 Europe/Berlin] myMySQLUserLog::DEBUG: Live::getStats Live_servers::getAllActive total=1 SCRIPT_NAME: /plugin/Live/stats.json.php
 [27-Oct-2023 19:28:15 Europe/Berlin] myMySQLUserLog::DEBUG: getCaptchaImage: admin - session_name 84b11d010cced71edffee7aa62c4eda0 session_id: or9agepsfhe1eig3jrdm68g8i4 SCRIPT_NAME: /objects/getCaptcha.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: Page generated in 0.4094 seconds. User: user1 - No Cache (/video/162/i-am-live-on-24-oct-23-11-45-00) FROM: 10.17.17.43 Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: Live::getStats Live_servers::getAllActive total=1 SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0096590518951416 seconds SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts  SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: updateFilesize: videos_id=162 filename=video_231027074524_v6206 filesize=3855675 3.68MB SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: YPTStorage getFileInfo ERROR empty siteURL video_231027074524_v6206, ,  SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: found 3855675 from - 3855675   path/to/my/streamer/site/videos/video_231027074524_v6206/ SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: start path/to/my/streamer/site/videos/video_231027074524_v6206/ SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: created old=[147137] new=[126122] path/to/my/streamer/site/videos/video_231027074524_v6206/video_231027074524_v6206_thumbsSprit.jpg SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: https://www.mysite.com/upload/getSpiritsFromVideo/aHR0cHM6Ly90dWJlLmRpYmlwb2wuZGUvdmlkZW9zL3ZpZGVvXzIzMTAyNzA3NDUyNF92NjIwNi92aWRlb18yMzEwMjcwNzQ1MjRfdjYyMDZfMzYwLm1wNA==/150/100/0%3A00%3A04?disableCache=653bf32edbe80&sync=0 SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: creating https://www.mysite.com/videos/video_231027074524_v6206/video_231027074524_v6206_360.mp4 SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: videosURL+token: https://www.mysite.com/videos/video_231027074524_v6206/video_231027074524_v6206_360.mp4 SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: videosURL: https://www.mysite.com/videos/video_231027074524_v6206/video_231027074524_v6206_360.mp4 SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 19:28:14 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: filesize is (147137) (path/to/my/streamer/site/videos/video_231027074524_v6206/video_231027074524_v6206_thumbsSprit.jpg) SCRIPT_NAME: /view/modeYoutube.php
 [27-Oct-2023 17:28:14 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 162 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /view/modeYoutube.php
DanielnetoDotCom commented 11 months ago

what type of storage are you using?

"transcribe subtitle: mp3 was a dummy file" calls my attention

[27-Oct-2023 19:29:20 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: done videos_id=165 path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.vtt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:20 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle:  exec vosk-transcriber -i 'path/to/my/streamer/site/videos/cache/tmpFiles/653bf37009d99.mp3'  --model '/var/www/html/vosk-model-small-de-0.15'  -t srt -o 'path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.srt' > 'path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.srt.log' 2>&1 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:20 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file path/to/my/streamer/site/videos/cache/tmpFiles/653bf37009d99.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:20 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [27-Oct-2023 19:29:20 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.srt mp3File=path/to/my/streamer/site/videos/video_231027192919_ve283/video_231027192919_ve283.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
h3ll3 commented 11 months ago

I have Set Up YPTStorage but the user i used has local storage as default.

Edit: Just disabled YPTStorage Plugin for testing and the "mp3 Dummy" message still occurs.

DanielnetoDotCom commented 11 months ago

YPTStorage should stay enabled.

that means the mp3 file is in the YPTStorage, can you please confirm it?

This feature was not tested with YPTStorage

DanielnetoDotCom commented 11 months ago

Can you please download the new version of SubtitleSwitcher version 4.6?

I added some more logs to help understand what is going on

h3ll3 commented 11 months ago

Hey Daniel,

i have set up YPTStorage Plugin with 3 Storages ...Local (Streamer .../AVideo/videos)), Storage 1 and Storage 2 (both separate Servers). For my Testuser i have set local storage as default.

I can not find any mp3 files on any of my Servers that are related to any livestream record or another video i have uploaded. I understood they should be at /videos/cache/tmpFiles/ and that they are getting removed when clearing the cache?

This is the content of my /cache folder on my Streamer Server (local Storage). I can not see that there is any tmpFiles folder, even not during a live stream or during encoding the stream record...

total 64
drwxrwxrwx  2 www-data www-data  4096 Oct 28 09:45 .
drwxrwxrwx 21 www-data www-data  4096 Oct 28 09:36 ..
-rw-r--r--  1 www-data www-data     0 Oct 28 09:36 custom.css
-rw-r--r--  1 www-data www-data    10 Oct 28 09:36 lastDeleteALLCacheTime.cache
-rw-rw-rw-  1 www-data www-data 21827 Oct 28 09:36 og_200X200.jpg
-rwxrwxrwx  1 root     root        10 Oct 28 09:45 schedulerLastVisit.log
-rw-r--r--  1 www-data www-data 21125 Oct 28 09:45 version1.cache

I have updated the Subtitleswitcher Plugin and made another mp4 upload. These are my logs:


[28-Oct-2023 09:50:11 Europe/Berlin] myMySQLUserLog::DEBUG: Live::getStats Live_servers::getAllActive total=1 SCRIPT_NAME: /view/iframe.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0027141571044922 seconds SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: YPTStorage: onUploadIsDone(167) SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0031049251556396 seconds SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: updateFilesize: videos_id=167 filename=video_231028094916_v7236 filesize=3584298 3.42MB SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: YPTStorage getFileInfo ERROR empty siteURL video_231028094916_v7236, ,  SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: found 3584298 from - 3584298   path/to/my/streamer/site/videos/video_231028094916_v7236/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: start path/to/my/streamer/site/videos/video_231028094916_v7236/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: created old=[] new=[147137] path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_thumbsSprit.jpg SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: https://www.mysite.com/upload/getSpiritsFromVideo/aHR0cHM6Ly90dWJlLmRpYmlwb2wuZGUvdmlkZW9zL3ZpZGVvXzIzMTAyODA5NDkxNl92NzIzNi92aWRlb18yMzEwMjgwOTQ5MTZfdjcyMzZfMzYwLm1wNA==/150/100/0%3A00%3A04?disableCache=653cbd1bb73ed&sync=0 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file and we could not download it from  {"path":false,"url":false} SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt mp3File=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: lock file exists videos_id=167 time=1698479386 /tmp/transcriber.lock path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0025460720062256 seconds SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0022408962249756 seconds SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: creating https://www.mysite.com/videos/video_231028094916_v7236/video_231028094916_v7236_360.mp4 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: videosURL+token: https://www.mysite.com/videos/video_231028094916_v7236/video_231028094916_v7236_360.mp4 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: createStprits: videosURL: https://www.mysite.com/videos/video_231028094916_v7236/video_231028094916_v7236_360.mp4 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Notifications::sendVideoUploadEmails [167] status=p SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Notification::onNewVideo: 167 start SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: YPTStorage getFileInfo ERROR empty siteURL video_231028094916_v7236, ,  SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: found 3437161 from - 3437161   path/to/my/streamer/site/videos/video_231028094916_v7236/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: start path/to/my/streamer/site/videos/video_231028094916_v7236/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.002432107925415 seconds SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteThumbs [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":5573,"function":"deleteThumbs","class":"Video","type":"::","args":["video_231028094916_v7236",true]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderNotifyIsDone.json.php","line":57,"function":"clearCache","class":"Video","type":"::","args":[167,true]}] SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_512.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_384.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_256.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_192.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_128.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_96.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Video:deleteThumbs(video_231028094916_v7236) [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":5573,"function":"deleteThumbs","class":"Video","type":"::","args":["video_231028094916_v7236",true]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderNotifyIsDone.json.php","line":57,"function":"clearCache","class":"Video","type":"::","args":[167,true]}] SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Video is done notified 167: 20231024_131711 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0023798942565918 seconds SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: updateFilesize: videos_id=167 filename=video_231028094916_v7236 filesize=3437161 3.28MB SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: YPTStorage getFileInfo ERROR empty siteURL video_231028094916_v7236, ,  SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: found 3437161 from - 3437161   path/to/my/streamer/site/videos/video_231028094916_v7236/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: getDirSize: start path/to/my/streamer/site/videos/video_231028094916_v7236/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0027937889099121 seconds SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0020849704742432 seconds SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Video::save ([NULL] 20231024_131711) Saved id = 167 0:00:04 [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderNotifyIsDone.json.php","line":44,"function":"save","class":"Video","type":"->"}] SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [p]  SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0029230117797852 seconds SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":851,"function":"setStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:47"},"type":"->","args":["p"]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderNotifyIsDone.json.php","line":42,"function":"setAutoStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:47"},"type":"->","args":["a"]}] SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
[28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0040628910064697 seconds SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteThumbs [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":5573,"function":"deleteThumbs","class":"Video","type":"::","args":["video_231028094916_v7236",true]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderNotifyIsDone.json.php","line":36,"function":"clearCache","class":"Video","type":"::","args":[167,true]}] SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_512.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_384.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_256.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_192.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_128.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: deleteMediaSessionPosters (path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_96.jpg) unlink line=10659 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Video:deleteThumbs(video_231028094916_v7236) [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":5573,"function":"deleteThumbs","class":"Video","type":"::","args":["video_231028094916_v7236",true]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoderNotifyIsDone.json.php","line":36,"function":"clearCache","class":"Video","type":"::","args":[167,true]}] SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 167 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 07:49:47 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 167 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 07:49:47 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 07:49:47 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 07:49:47 UTC] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 167 SCRIPT_NAME: /objects/aVideoEncoderNotifyIsDone.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Success path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_720.mp4  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files Received for video 167: 20231024_131711 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update HLS duration: duration is valid 0:00:04, file not exists path/to/my/streamer/site/videos/video_231028094916_v7236//res1080/index.m3u8 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update duration: duration is valid 0:00:04, file not exists  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0027551651000977 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0021460056304932 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: Video::save ([NULL] 20231024_131711) Saved id = 167 0:00:04 [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":188,"function":"save","class":"Video","type":"->"}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.003572940826416 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:47 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: destinationFile path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_720.mp4 filesize=594574 (580.64KB) SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file and we could not download it from  {"path":false,"url":false} SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt mp3File=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: lock file exists videos_id=167 time=1698479384 /tmp/transcriber.lock path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: SUCCESS Local path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_720.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: Local video_231028094916_v7236_720.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: NOT ZIp file video_231028094916_v7236_720.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: video_231028094916_v7236_720.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: receiving video upload to video_231028094916_v7236_720.mp4 filesize=594574 (580.64KB){"video":{"name":"avideoTmpFile_136_streamers_id_3_720.mp4","tmp_name":"\/var\/www\/html\/myMySQLUser\/videos\/cache\/tmpFile\/avideoTmpFile_136_streamers_id_3_720.mp4"}} SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: saved path/to/my/streamer/site/videos/cache/tmpFile/avideoTmpFile_136_streamers_id_3_720.mp4 580.64KB SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Got the download https://www.mysite.com/upload/videos/avideoTmpFile_136_streamers_id_3_720.mp4 580.64KB SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Try to download https://www.mysite.com/upload/videos/avideoTmpFile_136_streamers_id_3_720.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files EMPTY SCRIPT_NAME: /objects/aVideoEncoder.json.php
[28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [p]  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0041029453277588 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":851,"function":"setStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:45"},"type":"->","args":["p"]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":93,"function":"setAutoStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:45"},"type":"->","args":[]}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
  [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Title not updated 20231024_131711  SCRIPT_NAME: /objects/aVideoEncoder.json.php
[28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 167 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:46 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: start SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:46 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 167 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:45 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:45 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:45 UTC] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 167 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Success path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_540.mp4  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files Received for video 167: 20231024_131711 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update HLS duration: duration is valid 0:00:04, file not exists path/to/my/streamer/site/videos/video_231028094916_v7236//res1080/index.m3u8 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update duration: duration is valid 0:00:04, file not exists  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0024330615997314 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0027971267700195 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: Video::save ([NULL] 20231024_131711) Saved id = 167 0:00:04 [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":188,"function":"save","class":"Video","type":"->"}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0038888454437256 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:45 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: destinationFile path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_540.mp4 filesize=382751 (373.78KB) SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file and we could not download it from  {"path":false,"url":false} SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt mp3File=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: lock file exists videos_id=167 time=1698479383 /tmp/transcriber.lock path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: SUCCESS Local path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_540.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: Local video_231028094916_v7236_540.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: NOT ZIp file video_231028094916_v7236_540.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: video_231028094916_v7236_540.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: receiving video upload to video_231028094916_v7236_540.mp4 filesize=382751 (373.78KB){"video":{"name":"avideoTmpFile_136_streamers_id_3_540.mp4","tmp_name":"\/var\/www\/html\/myMySQLUser\/videos\/cache\/tmpFile\/avideoTmpFile_136_streamers_id_3_540.mp4"}} SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: saved path/to/my/streamer/site/videos/cache/tmpFile/avideoTmpFile_136_streamers_id_3_540.mp4 373.78KB SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Got the download https://www.mysite.com/upload/videos/avideoTmpFile_136_streamers_id_3_540.mp4 373.78KB SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Try to download https://www.mysite.com/upload/videos/avideoTmpFile_136_streamers_id_3_540.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files EMPTY SCRIPT_NAME: /objects/aVideoEncoder.json.php
  [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [p]  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0037870407104492 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":851,"function":"setStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:44"},"type":"->","args":["p"]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":93,"function":"setAutoStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:44"},"type":"->","args":[]}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
[28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Title not updated 20231024_131711  SCRIPT_NAME: /objects/aVideoEncoder.json.php
[28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 167 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: start SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:44 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 167 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:44 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:44 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:44 UTC] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 167 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Success path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_480.mp4  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files Received for video 167: 20231024_131711 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update HLS duration: duration is valid 0:00:04, file not exists path/to/my/streamer/site/videos/video_231028094916_v7236//res1080/index.m3u8 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update duration: duration is valid 0:00:04, file not exists  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0019888877868652 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0022449493408203 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: Video::save ([NULL] 20231024_131711) Saved id = 167 0:00:04 [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":188,"function":"save","class":"Video","type":"->"}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0026869773864746 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:44 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: destinationFile path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_480.mp4 filesize=298875 (291.87KB) SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file and we could not download it from  {"path":false,"url":false} SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt mp3File=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: lock file exists videos_id=167 time=1698479382 /tmp/transcriber.lock path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: SUCCESS Local path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_480.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: Local video_231028094916_v7236_480.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: NOT ZIp file video_231028094916_v7236_480.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: video_231028094916_v7236_480.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: receiving video upload to video_231028094916_v7236_480.mp4 filesize=298875 (291.87KB){"video":{"name":"avideoTmpFile_136_streamers_id_3_480.mp4","tmp_name":"\/var\/www\/html\/myMySQLUser\/videos\/cache\/tmpFile\/avideoTmpFile_136_streamers_id_3_480.mp4"}} SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: saved path/to/my/streamer/site/videos/cache/tmpFile/avideoTmpFile_136_streamers_id_3_480.mp4 291.87KB SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Got the download https://www.mysite.com/upload/videos/avideoTmpFile_136_streamers_id_3_480.mp4 291.87KB SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Try to download https://www.mysite.com/upload/videos/avideoTmpFile_136_streamers_id_3_480.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files EMPTY SCRIPT_NAME: /objects/aVideoEncoder.json.php
  [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [p]  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0042078495025635 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":851,"function":"setStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:42"},"type":"->","args":["p"]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":93,"function":"setAutoStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:42"},"type":"->","args":[]}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
[28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Title not updated 20231024_131711  SCRIPT_NAME: /objects/aVideoEncoder.json.php
  [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 167 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:43 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: start SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:43 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 167 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:43 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:43 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:43 UTC] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 167 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Success path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_360.mp4  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files Received for video 167: 20231024_131711 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update HLS duration: duration is valid 0:00:04, file not exists path/to/my/streamer/site/videos/video_231028094916_v7236//res1080/index.m3u8 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update duration: duration is valid 0:00:04, file not exists  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.002357006072998 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0023210048675537 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: Video::save ([NULL] 20231024_131711) Saved id = 167 0:00:04 [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":188,"function":"save","class":"Video","type":"->"}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0036399364471436 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: destinationFile path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_360.mp4 filesize=221781 (216.58KB) SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file and we could not download it from  {"path":false,"url":false} SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:42 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt mp3File=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: lock file exists videos_id=167 time=1698479380 /tmp/transcriber.lock path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: SUCCESS Local path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_360.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: Local video_231028094916_v7236_360.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: NOT ZIp file video_231028094916_v7236_360.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: video_231028094916_v7236_360.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: receiving video upload to video_231028094916_v7236_360.mp4 filesize=221781 (216.58KB){"video":{"name":"avideoTmpFile_136_streamers_id_3_360.mp4","tmp_name":"\/var\/www\/html\/myMySQLUser\/videos\/cache\/tmpFile\/avideoTmpFile_136_streamers_id_3_360.mp4"}} SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: saved path/to/my/streamer/site/videos/cache/tmpFile/avideoTmpFile_136_streamers_id_3_360.mp4 216.58KB SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Got the download https://www.mysite.com/upload/videos/avideoTmpFile_136_streamers_id_3_360.mp4 216.58KB SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Try to download https://www.mysite.com/upload/videos/avideoTmpFile_136_streamers_id_3_360.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files EMPTY SCRIPT_NAME: /objects/aVideoEncoder.json.php
[28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [p]  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0035860538482666 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":851,"function":"setStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:41"},"type":"->","args":["p"]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":93,"function":"setAutoStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:41"},"type":"->","args":[]}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
[28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Title not updated 20231024_131711  SCRIPT_NAME: /objects/aVideoEncoder.json.php
  [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 167 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: start SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:41 UTC] myMySQLUserLog::DEBUG: execAsync Linux: /usr/bin/php path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php 167 > /dev/null 2>&1 & echo $!;  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:41 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:41 UTC] myMySQLUserLog::DEBUG: User:login finish users_id=2 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 07:49:41 UTC] myMySQLUserLog::DEBUG: useVideoHashOrLogin: 2, 167 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Success path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_240.mp4  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files Received for video 167: 20231024_131711 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update HLS duration: duration is valid 0:00:04, file not exists path/to/my/streamer/site/videos/video_231028094916_v7236//res1080/index.m3u8 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: Do not need update duration: duration is valid 0:00:04, file not exists  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0025370121002197 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0021829605102539 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: Video::save ([NULL] 20231024_131711) Saved id = 167 0:00:04 [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":188,"function":"save","class":"Video","type":"->"}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0034739971160889 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:41 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: destinationFile path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_240.mp4 filesize=150837 (147.30KB) SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: mp3 was a dummy file and we could not download it from  {"path":false,"url":false} SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: url_get_contents Cannot download  SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: SRT will be created srtFile=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt mp3File=path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.mp3 SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: transcribe subtitle: lock file exists videos_id=167 time=1698479379 /tmp/transcriber.lock path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236.srt SCRIPT_NAME: path/to/my/streamer/site/plugin/SubtitleSwitcher/transcribe.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: SUCCESS Local path/to/my/streamer/site/videos/video_231028094916_v7236/video_231028094916_v7236_240.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: Local video_231028094916_v7236_240.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: NOT ZIp file video_231028094916_v7236_240.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: decideMoveUploadedToVideos: video_231028094916_v7236_240.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: receiving video upload to video_231028094916_v7236_240.mp4 filesize=150837 (147.30KB){"video":{"name":"avideoTmpFile_136_streamers_id_3_240.mp4","tmp_name":"\/var\/www\/html\/myMySQLUser\/videos\/cache\/tmpFile\/avideoTmpFile_136_streamers_id_3_240.mp4"}} SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: saved path/to/my/streamer/site/videos/cache/tmpFile/avideoTmpFile_136_streamers_id_3_240.mp4 147.30KB SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Got the download https://www.mysite.com/upload/videos/avideoTmpFile_136_streamers_id_3_240.mp4 147.30KB SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Try to download https://www.mysite.com/upload/videos/avideoTmpFile_136_streamers_id_3_240.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: aVideoEncoder.json: Files EMPTY SCRIPT_NAME: /objects/aVideoEncoder.json.php
[28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [p]  SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache end in 0.0031449794769287 seconds SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: rrmdir: do not delete videos or cache folder path/to/my/streamer/site/videos/cache/ SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: clearCache starts 1 SCRIPT_NAME: /objects/aVideoEncoder.json.php
 [28-Oct-2023 09:49:40 Europe/Berlin] myMySQLUserLog::DEBUG: Video::setStatus(p) [{"file":"\/var\/www\/html\/myMySQLUser\/objects\/video.php","line":851,"function":"setStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:40"},"type":"->","args":["p"]},{"file":"\/var\/www\/html\/myMySQLUser\/objects\/aVideoEncoder.json.php","line":93,"function":"setAutoStatus","class":"Video","object":{"views_count_25":null,"views_count_50":null,"views_count_75":null,"views_count_100":null,"modified":"2023-10-28 09:49:40"},"type":"->","args":[]}] SCRIPT_NAME: /objects/aVideoEncoder.json.php
walt93 commented 11 months ago

It is possible to code a complete solution external to AVideo using something like python and I'm getting phenomenal results out of OpenAI's whisper model - its an order of magnitude improvement over Vosk. Basically you'd just write a little app that has its own little database, it's model consists of a foreign key id to store the id from the AVideo database and a TEXT field to hold the transcript. Run it a few times a day and have it pick up video IDs that it hasn't transcribed yet, then use something like scp or rsync to shuffle them back - assuming you're doing AI on a separate box that has a GPU. Performance of these things is awful without one..

I've got scripts worked out to do about half of it, just need to integrate it with AVideo. Mostly I just put that description into a generative AI and test/integrate the code because I'm lazy and I can. Stay tuned, I'll have something up in not very long.

DanielnetoDotCom commented 11 months ago

Thanks, I found something.

can you please try the SubtitleSwitcher ver 4.7?

h3ll3 commented 11 months ago

Hi Daniel,

thank you. As far as i was able to figure it out it seems to work now.

In "My Videos" i have now two types of file format

image

and the folder of my video looks like this

total 1220
drwxr-xr-x  8 www-data www-data   4096 Oct 30 16:32 .
drwxrwxrwx 15 www-data www-data   4096 Oct 30 16:32 ..
-rw-r--r--  1 www-data www-data     16 Oct 30 16:31 enc_653fcc5316e3c.key
-rw-r--r--  1 www-data www-data    348 Oct 30 16:31 index.m3u8
-rw-r--r--  1 www-data www-data    115 Oct 30 16:31 keyinfo
drwxr-xr-x  2 www-data www-data   4096 Oct 30 16:31 res1080
drwxr-xr-x  2 www-data www-data   4096 Oct 30 16:31 res240
drwxr-xr-x  2 www-data www-data   4096 Oct 30 16:31 res360
drwxr-xr-x  2 www-data www-data   4096 Oct 30 16:31 res480
drwxr-xr-x  2 www-data www-data   4096 Oct 30 16:31 res540
drwxr-xr-x  2 www-data www-data   4096 Oct 30 16:31 res720
-rw-rw-rw-  1 www-data www-data   7486 Oct 30 16:32 video_231030163106_v0820_128.jpg
-rw-rw-rw-  1 www-data www-data  15377 Oct 30 16:32 video_231030163106_v0820_192.jpg
-rw-rw-rw-  1 www-data www-data  23940 Oct 30 16:32 video_231030163106_v0820_256.jpg
-rw-rw-rw-  1 www-data www-data  46877 Oct 30 16:32 video_231030163106_v0820_384.jpg
-rw-rw-rw-  1 www-data www-data  74094 Oct 30 16:32 video_231030163106_v0820_512.jpg
-rw-rw-rw-  1 www-data www-data   4756 Oct 30 16:32 video_231030163106_v0820_96.jpg
-rw-r--r--  1 www-data www-data 253849 Oct 30 16:31 video_231030163106_v0820.gif
-rw-r--r--  1 www-data www-data  82899 Oct 30 16:31 video_231030163106_v0820.jpg
-rw-r--r--  1 www-data www-data 201453 Oct 30 16:31 video_231030163106_v0820.mp3
-rw-r--r--  1 www-data www-data   3458 Oct 30 16:31 video_231030163106_v0820.mp3.log
-rw-r--r--  1 www-data www-data    273 Oct 30 16:32 video_231030163106_v0820.srt
-rw-r--r--  1 www-data www-data   9709 Oct 30 16:32 video_231030163106_v0820.srt.log
-rw-r--r--  1 www-data www-data 147137 Oct 30 16:32 video_231030163106_v0820_thumbsSprit.jpg
-rw-rw-rw-  1 www-data www-data  42659 Oct 30 16:32 video_231030163106_v0820_thumbsV2.jpg
-rw-r--r--  1 www-data www-data  14512 Oct 30 16:32 video_231030163106_v0820_thumbsV2_jpg.webp
-rw-r--r--  1 www-data www-data    281 Oct 30 16:32 video_231030163106_v0820.vtt
-rw-r--r--  1 www-data www-data 237628 Oct 30 16:31 video_231030163106_v0820.webp

automatic translated subtitles are now displayed when i click "CC"...

image

Great! Thank you!

h3ll3 commented 11 months ago

Think you fixed it. Thanks again. I close this now.

Let me know if you need more logfiles or something.