antiboredom/videogrep

Error Codes and Messages on Transcriptions with Vosk

cmprmsd opened this issue · 0 comments

Hey there!

It seems the error messages and error codes are off when using the transcribe function.

videogrep -i file  --transcribe --model vosk-model-small-de-0.15
  • First time running the script will return error code 1 after the "transcribing" message and after writing the transcription file to disk.
  • A second run with the json already placed in the folder will also return error code 1 but no error message.
  • Running the script with a wrong model folder and existing json will yield no error message but error code 1 and without an existing json it will correctly display "could not find model folder".

PS: The transcribe function is not exposed when using videogrep as a Python module, which is why I have to use subprocess in the first place. :D

Working on some fun project at the moment 😄
The tool allows to search for multiple words or phrases, for each select any of the matches in the video, trim the snippet with sliders and chain them together creating a super cut, first temporarily by chaining the video snippets in the video player and then creating the merged video with click on "merge". Kind of a phrase builder 🤣
image