Cause: the Target language is not actually set (the target language code is empty). When Subtitle Embedding Type is set to hard/soft subtitles, the software needs a valid target language code to embed the subtitle track; if Target is empty, contains Auto Detect, or the saved configuration is corrupted, this error is raised.
Steps:
- On the main window, in the subtitle translation row, explicitly select a real language in the
Target drop-down (for example English / Chinese). It must not be left blank or set to Auto Detect. - If a target language does appear to be selected, the config files are likely corrupted. Close the software, delete
videotrans/params.json, videotrans/cfg.json, videotrans/codec.json, videotrans/ass.json, then restart sp.exe and set the languages again. - Confirm that
Spoken also has a specific language in the Spoken drop-down, and re-import the video and start the task again. - Separately, your software path is
C:/Users/monis khan/Downloads/win-pyvideotrans-v4.19 (1), which contains a space and parentheses—this is highly likely to cause FFmpeg/temporary file errors. Move the extracted folder to a short pure-English path such as D:/pyvideotrans and start sp.exe there.
If the error still appears after the above steps, provide the last ~30 lines involving the error from the latest logs/YYYYMMDD.log file in the software directory for further analysis.
Please refer to the related documentation: