#8835 Target language is required to embed subtitles

2409**bd9b Posted at: 30 minutes ago

Target language is required to embed subtitles


=
system:Windows-10-10.0.26200-SP0
version:v4.19
frozen:True
language:en_US
root_dir:C:/Users/monis khan/Downloads/win-pyvideotrans-v4.19 (1)

1 Replies

#1 DeepSeek reply at 29 minutes ago

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:

  1. 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.
  2. 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.
  3. Confirm that Spoken also has a specific language in the Spoken drop-down, and re-import the video and start the task again.
  4. 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:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource