#8977 声画变速对齐阶段 出错了 initializing the muxer for 导出干净视频: Invalid argument opening output file 导出干净视频. opening output files: Inval

120.40**2 Posted at: 8 hours ago

声画变速对齐阶段 出错了 initializing the muxer for 导出干净视频: Invalid argument opening output file 导出干净视频. opening output files: Invalid argument
Traceback (most recent call last):
File "videotrans\util\_ffmpeg_runner.py", line 66, in runffmpeg
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-y', '-progress', 'D:/.appdata/tmp/12060/74aa30df45/concataudio-1795675911.5624213.txt', '-f', 'concat', '-safe', '0', '-i', 'D:/.appdata/tmp/12060/74aa30df45/final_audio_concat.txt', '-c:a', 'copy', '导出干净视频', 'D:/.appdata/tmp/12060/74aa30df45/final_audio_temp.wav']' returned non-zero exit status 4294967274.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 175, in run
File "videotrans\task\_stage_align.py", line 44, in align
File "videotrans\task\_rate.py", line 388, in run
File "videotrans\task\_rate.py", line 713, in _concat_audio_aligned
File "videotrans\task\_rate.py", line 779, in _exec_concat_audio
File "videotrans\util\_ffmpeg_runner.py", line 95, in runffmpeg
videotrans.configure.excepts.FFmpegError: initializing the muxer for 导出干净视频: Invalid argument opening output file 导出干净视频. opening output files: Invalid argument

trk=翻译视频 单视频模式
选择音视频文件: C:/Users/Administrator/Documents/uf.mp4,
输出目录: C:/Users/Administrator/Documents/_video_out/uf-mp4,
self.cfg.cache_folder='D:/.appdata/tmp/12060/74aa30df45'
已选 清理已生成, 未选 启用硬件加速
已选 降噪,降噪模型:dpdfnet2.onnx
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语
最长语音持续(秒): 5s
最短语音持续(毫秒): 3000ms
静音分割持续毫秒: 600ms
语音阈值: 0.45
选择VAD: silero
计算数据类型:default
识别准确度beam_size:5
识别准确度best_of:5
启用上下文感知:False
重复惩罚:1.0
文本压缩率:2.4
翻译渠道:Google(免费),发音语言:英语,目标语言:简体中文
传统翻译渠道每批字幕行数: 5
配音渠道:Edge-TTS(免费), 配音角色:Xiaoxiao(Female/CN), 目标语言:简体中文
Volume:+0%, Speed:+0%, 已选 配音加速, 已选 视频慢速
已选 移除每条字幕配音开头结尾静音缓冲
静音移除力度: max
已选: 二次语音识别, 二次识别所用模型: large-v3-turbo
二次识别最长语音持续(秒): 1.0s
二次识别最短语音持续(毫秒): 300ms
已选 识别说话人: 不限数量
说话人分离模型: built
嵌入硬字幕
中日韩字幕单行字符数:15, 其他语言字幕单行字符数:40
video duration:1899064ms
video information:{'video_fps': 18.18, 'r_frame_rate': 18.18, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 640, 'height': 368, 'time': 1899064, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='74aa30df45', name='C:/Users/Administrator/Documents/uf.mp4', dirname='C:/Users/Administrator/Documents', noextname='uf', basename='uf.mp4', ext='mp4', target_dir='C:/Users/Administrator/Documents/_video_out/uf-mp4', cache_folder='D:/.appdata/tmp/12060/74aa30df45', is_cuda=False, source_language='英语', source_language_code='en', source_sub='C:/Users/Administrator/Documents/_video_out/uf-mp4/en.srt', source_wav='D:/.appdata/tmp/12060/74aa30df45/remove_noise.wav', source_wav_output='C:/Users/Administrator/Documents/_video_out/uf-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/Administrator/Documents/_video_out/uf-mp4/zh-cn.srt', target_wav='D:/.appdata/tmp/12060/74aa30df45/target.wav', target_wav_output='C:/Users/Administrator/Documents/_video_out/uf-mp4/zh-cn.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Xiaoxiao(Female/CN)', voice_autorate=True, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, tts_model_name=None, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=True, enable_diariz=True, nums_diariz=0, rephrase=False, fix_punc=0, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='C:/Users/Administrator/Documents/_video_out/uf-mp4/uf.mp4', novoice_mp4='D:/.appdata/tmp/12060/74aa30df45/novoice.mp4', is_separate=False, embed_bgm=True, instrument='D:/.appdata/tmp/12060/74aa30df45/instrument.wav', vocal='D:/.appdata/tmp/12060/74aa30df45/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=True, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=1899064


=
system:Windows-10-10.0.19045-SP0
version:v4.19
frozen:True
language:zh_CN
root_dir:D:/.appdata

1 Replies

#1 DeepSeek reply at 8 hours ago

这是软件内部命令拼接 bug,不是你的环境或视频问题。

原因分析:
报错中的 ffmpeg 命令为:

ffmpeg ... -i final_audio_concat.txt -c:a copy 导出干净视频 D:/.appdata/.../final_audio_temp.wav

导出干净视频 本是软件界面上的一句状态提示文字,却被错误地拼进了 ffmpeg 参数列表中。ffmpeg 会把它当成「第一个输出文件」,随后又遇到真正的输出文件 final_audio_temp.wav,参数映射混乱,于是报 initializing the muxer for 导出干净视频: Invalid argument / opening output file 导出干净视频。这与磁盘空间、路径权限、文件名无关。

出问题位置在音画对齐引擎的音频拼接环节(videotrans/task/_rate.py 的 _exec_concat_audio),仅在你同时启用「配音加速」+「视频慢速」走变速对齐流程时进入。

处理建议:

  1. 先尝试规避:取消勾选「视频慢速」,仅保留「配音加速」,重新勾选「清理已生成」后重试。
  2. 若仍报同样错误,改为两者都不勾选(此时会出现「删字幕间静音」和「对齐字幕声音」两个选项),通过选中「对齐字幕声音」来对齐,绕开变速拼接分支。
  3. 这属于 v4.19 的确定性 bug,请把该报错信息和复现条件(同时选中配音加速+视频慢速、嵌入硬字幕、二次识别)反馈给开发者,等待修复版本;也可先将版本停留在此前版本使用。
  4. 若上述规避均无效,请提供 软件安装目录/logs/ 下最新日志文件底部约 30 行,以便进一步确认是否为同一分支触发。

补充提示:本任务还同时开启了 降噪、二次语音识别、识别说话人、嵌入硬字幕,这些都会延长耗时,但与本次报错无关。

请查阅相关文档:

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