#8750 Audio/Video Speed Sync Stage An Error Occurred Expecting value: line 1 column 1 (char 0)Traceback (most recent call last

91.196**4 Posted at: 2 hours ago

Audio/Video Speed Sync Stage An Error Occurred Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 163, in process_task

File "videotrans\task\dubbing.py", line 300, in align

File "videotrans\task\_rate.py", line 811, in run

File "videotrans\task\_rate.py", line 844, in _prepare_data

File "pydub\audio_segment.py", line 728, in from_file

File "pydub\utils.py", line 279, in mediainfo_json

File "json\__init__.py", line 346, in loads

File "json\decoder.py", line 337, in decode

File "json\decoder.py", line 355, in raw_decode

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
trk=Text-to-Speech
self.cfg.name='C:/Dubs/ep1.uk.srt',
Output Directory: C:/Dubs/app/output/tts,
self.cfg.cache_folder='C:/Dubs/app/tmp/12216/e7e68bbae0'
self.cfg.is_cuda=False
TTS Service:Edge-TTS (Free), Voices:Ostap(Male/UA), Target:uk
Volume:+0%, Speed:+0%, Selected TTS Speedup
Output Format: wav
Selected Trim Start/End Silence in Dubbed Segments
Silence Removal Intensity: default
self.cfg=TaskCfgTTS(uuid='e7e68bbae0', name='C:/Dubs/ep1.uk.srt', dirname='C:/Dubs', noextname='ep1.uk', basename='ep1.uk.srt', ext='srt', target_dir='C:/Dubs/app/output/tts', cache_folder='C:/Dubs/app/tmp/12216/e7e68bbae0', is_cuda=False, source_language='', source_language_code='', source_sub=None, source_wav=None, source_wav_output=None, target_language='', target_language_code='uk', target_sub='C:/Dubs/ep1.uk.srt', target_wav='C:/Dubs/app/output/tts/ep1.uk.wav', target_wav_output=None, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Ostap(Male/UA)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)


=
system:Windows-10-10.0.22631-SP0
version:v4.18
frozen:True
language:en_US
root_dir:C:/Dubs/app

1 Replies

#1 DeepSeek reply at 2 hours ago

The direct cause: in the audio/video alignment stage, pydub calls ffprobe to read a dubbing clip, and ffprobe returned an empty result. This is because the audio file being read does not exist, is 0 bytes or corrupted, or ffprobe is unavailable; it is not a JSON parsing logic problem.

Common causes and troubleshooting steps, in order:

  1. Check the clip files in the cache directory C:/Dubs/app/tmp/12216/e7e68bbae0: look for .wav files whose size is 0 bytes or less than 1024 bytes. These come from an abnormal TTS output for a certain subtitle line. Delete the whole cache directory and rerun.
  2. If Edge-TTS generates empty audio due to being rate-limited or disconnected, go to Menu → Tools/Options → Advanced Options → Dubbing Settings and set EdgeTTS Max Concurrency to 1 and Post-Dubbing Delay (s) to 5~10.
  3. Confirm that ffprobe exists in the ffmpeg/ folder under the software installation directory. If it is missing or cannot be executed, the media info read will return an empty result. Redownload and extract the full package to overwrite it.
  4. Confirm that the input SRT C:/Dubs/ep1.uk.srt is a standard SRT format. If it contains empty segments, extremely long repeated text, or timestamp lines written incorrectly in the text, some segments may generate no audio at all.
  5. Rerun the task and check whether the error still occurs at the same subtitle line. If so, that line is the source.

If the above steps do not locate the problem, the cause cannot be confirmed at present. Please provide the last 30 or so lines of the latest log file in the logs/ folder under the software installation directory, focusing on which audio file failed, and the software version is v4.18, Windows pre-packaged build.

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