#1629 TaskCfg(cache_folder='D:/win-videotrans/tmp15716/8062e123f2', target_dir='D:/Downloads/IDM/vedio/_video_out/33rd Degree

38.54* Posted at: 1 day ago 👁19

合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
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', '-progress', 'D:/win-videotrans/tmp15716/compose1764047649.6654842.txt', '-i', 'D:/win-videotrans/tmp15716/8062e123f2/novoice.mp4', '-i', 'D:/win-videotrans/tmp15716/8062e123f2/origin_audio.m4a', '-c:v', 'h264_nvenc', '-c:a', 'copy', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-cq', '23', '-preset', 'p1', '-shortest', 'D:/Downloads/IDM/vedio/_video_out/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality.mp4']' returned non-zero exit status 4294967294.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line
......
ocess.py", line 524, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'D:/win-videotrans/tmp15716/compose1764047649.6654842.txt', '-i', 'D:/win-videotrans/tmp15716/8062e123f2/novoice.mp4', '-i', 'D:/win-videotrans/tmp15716/8062e123f2/origin_audio.m4a', '-c:v', 'libx264', '-c:a', 'copy', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-crf', '23', '-preset', 'fast', '-shortest', 'D:/Downloads/IDM/vedio/_video_out/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality.mp4']' returned non-zero exit status 4294967294.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 1230, in _join_video_audio_srt
File "videotrans\util\help_ffmpeg.py", line 267, in runffmpeg
File "videotrans\util\help_ffmpeg.py", line 272, in runffmpeg
RuntimeError: initializing filters opening output file D:/Downloads/IDM/vedio/_video_out/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality.mp4. opening output files: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 299, in run
File "videotrans\task\trans_create.py", line 549, in assembling
File "videotrans\task\trans_create.py", line 1233, in _join_video_audio_srt
RuntimeError: 最后一步字幕配音嵌入时出错

TaskCfg(cache_folder='D:/win-videotrans/tmp15716/8062e123f2', target_dir='D:/Downloads/IDM/vedio/_video_out/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality', remove_noise=True, is_separate=True, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='D:/Downloads/IDM/vedio/_video_out/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality/en.srt', target_sub='D:/Downloads/IDM/vedio/_video_out/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality/zh-cn.srt', source_wav='D:/win-videotrans/tmp15716/8062e123f2/en.wav', source_wav_output='D:/Downloads/IDM/vedio/_video_out/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality/en.m4a', target_wav='D:/win-videotrans/tmp15716/8062e123f2/target.wav', target_wav_output='D:/Downloads/IDM/vedio/_video_out/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality/zh-cn.m4a', subtitles='', novoice_mp4='D:/win-videotrans/tmp15716/8062e123f2/novoice.mp4', noextname='33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality', shibie_audio=None, targetdir_mp4='D:/Downloads/IDM/vedio/_video_out/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality.mp4', instrument='D:/win-videotrans/tmp15716/8062e123f2/instrument-concat.wav', vocal='D:/win-videotrans/tmp15716/8062e123f2/vocal.wav', back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='晓涵(Female/CN)', copysrt_rawvideo=False, clear_cache=False, translate_type=5, tts_type=0, recogn_type=0, model_name='large-v3-turbo', split_type=0, voice_autorate=True, video_autorate=True, cuda=True, name='D:/Downloads/IDM/vedio/33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality.mp4', basename='33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality.mp4', ext='mp4', dirname='D:/Downloads/IDM/vedio', shound_del_name=None, uuid='8062e123f2', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


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

1 Replies

这个错误是由于输出文件路径过长或包含特殊字符导致的。从错误信息可以看出,ffmpeg 无法创建输出文件,提示 "No such file or directory"。

解决方案:

  1. 缩短输出路径

    • 将源视频文件移动到更短的路径,例如 D:/video/ 目录下
    • 将视频文件名重命名为简短的英文名称,如 test.mp4
  2. 避免特殊字符

    • 确保路径中不包含空格、括号、引号等特殊字符
    • 建议使用纯英文路径和文件名
  3. 具体操作步骤

    • 将原视频 33rd Degree Knowledge - The Book That Shows EXACTLY How To BEND Reality.mp4 重命名为短名称,如 video.mp4
    • 将其移动到 D:/video/ 目录
    • 重新在软件中处理这个文件
  4. 清理缓存

    • 重新处理时,请勾选主界面上的"清理已生成"选项

路径长度限制是 Windows 系统的常见问题,缩短路径和文件名通常能解决此类 ffmpeg 错误。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions