#4648 TaskCfg(cache_folder='E:/win-videotrans-v3.80/tmp23460/speech2text', target_dir='c:/users/yokin/videos/pyvideotrans/reco

2408:8207* Posted at: 1 hour ago 👁5

预处理阶段出错:运行时错误:opening input: Invalid argument opening input file D:/yokin/Downloads/txm/holy拉我-%23小黑子_%23陈泽朋友圈_%23忍不住听了好几...-20260503_161440.mp3. opening input files: Invalid argument:
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 227, in runffmpeg
File "subprocess.py", line 524, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-i', 'D:/yokin/Downloads/txm/holy拉我-%23小黑子_%23陈泽朋友圈_%23忍不住听了好几...-20260503_161440.mp3', '-ac', '1', '-ar', '16000', '-c:a', 'pcm_s16le', 'E:/win-videotrans-v3.80/tmp23460/speech2text/holy拉我-%23小黑子_%23陈泽朋友圈_%23忍不住听了好几...-20260503_161440-1779370656.4709082.wav']' returned non-zero exit status 4294967274.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 67, in run
File "videotrans\task\_speech2text.py", line 49, in prepare
File "videotrans\util\help_ffmpeg.py", line 612, in conver_to_16k
File "videotrans\util\help_ffmpeg.py", line 272, in runffmpeg
RuntimeError: opening input: Invalid argument opening input file D:/yokin/Downloads/txm/holy拉我-%23小黑子_%23陈泽朋友圈_%23忍不住听了好几...-20260503_161440.mp3. opening input files: Invalid argument

TaskCfg(cache_folder='E:/win-videotrans-v3.80/tmp23460/speech2text', target_dir='c:/users/yokin/videos/pyvideotrans/recogn', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='c:/users/yokin/videos/pyvideotrans/recogn/holy拉我-%23小黑子_%23陈泽朋友圈_%23忍不住听了好几...-20260503_161440.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='holy拉我-%23小黑子_%23陈泽朋友圈_%23忍不住听了好几...-20260503_161440', shibie_audio='E:/win-videotrans-v3.80/tmp23460/speech2text/holy拉我-%23小黑子_%23陈泽朋友圈_%23忍不住听了好几...-20260503_161440-1779370656.4709082.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=1, model_name='large-v3', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='D:/yokin/Downloads/txm/holy拉我-%23小黑子_%23陈泽朋友圈_%23忍不住听了好几...-20260503_161440.mp3', basename='holy拉我-%23小黑子_%23陈泽朋友圈_%23忍不住听了好几...-20260503_161440.mp3', ext='mp3', dirname='D:/yokin/Downloads/txm', shound_del_name=None, uuid='8ed360592a', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.86
frozen:True
language:zh
root_dir:E:/win-videotrans-v3.80

1 Replies

这是由文件路径包含特殊字符(#%23、中文、省略号)或文件名过长导致的。Windows 对命令行中的特殊符号和路径长度有限制,导致 ffmpeg 无法正确打开文件。

解决方案:

  1. 重命名音频文件:改为简短、纯英文或数字的名称,例如 audio.mp3

    • 删除文件名中的 %23#、中文、空格、省略号等特殊符号。
  2. 迁移到浅层目录:将文件移动到磁盘根目录下的英文文件夹,例如 D:\videos\audio.mp3
  3. 重新启动软件并重新选择该文件,确保路径仅含英文和数字。

若仍有问题,请检查软件路径是否也包含中文,建议将软件解压到纯英文目录(如 D:\pyVideoTrans)。

Post Your Reply
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.

Related resource