#8303 initializing output stream 0:1 -- Traceback (most recent call last):

112.0**3 Posted at: 1 hour ago

initializing output stream 0:1 --
Traceback (most recent call last):
File "videotrans\util\_ffmpeg_runner.py", line 48, in runffmpeg
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-y', '-i', 'E:/peiyin/tmp/2376/2b3bcff081/novoice.mp4', '-i', 'E:/peiyin/tmp/2376/2b3bcff081/target.wav', '-c:v', 'copy', '-c:a', 'copy', 'E:/peiyin/tmp/2376/2b3bcff081/recogn2_tmp_video.mp4']' returned non-zero exit status 1.

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

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 149, in run
File "videotrans\util\_ffmpeg_runner.py", line 77, in runffmpeg
videotrans.configure.excepts.FFmpegError: initializing output stream 0:1 --

trk=[TransCreate]: uuid='2b3bcff081', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Nzd/Desktop/aaa.mp4,
输出结果保存到文件夹: C:/Users/Nzd/Desktop/新建文件夹/aaa-mp4,
临时文件夹: E:/peiyin/tmp/2376/2b3bcff081
未选 清理已存在
已启用CUDA加速
已选 降噪
语音识别:openai-whisper(内置), large-v3-turbo, 发音语言: 英语,
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:ChatTTS(本地API), 角色:4444, 配音语言:简体中文, 已选 二次语音识别
音量:+100%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入软字幕
已选 仅输出mp4, precent=18, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=True, do_diarize=True
video_duration_ms=126296


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:E:/peiyin

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:报错发生在“二次识别”前的临时合成步骤——该步骤用 -c:v copy -c:a copy 把无声视频 novoice.mp4 与配音 target.wav 直接封装成 recogn2_tmp_video.mp4。此时 -c:a copy 会原样复制音频流,而 MP4 容器不支持直接封装 PCM/WAV 类音频流,因此 FFmpeg 在 “initializing output stream 0:1” 处初始化失败并退出(exit status 1)。该问题与应用配置(语言、翻译、字幕类型)无关,属于音频流格式与输出容器不兼容。

解决/绕过步骤:

  1. 先跳过失败环节:主界面取消勾选 二次识别,并勾选 清理已生成,重新执行。该步骤即被跳过,任务可继续完成配音与合成。
  2. 定位触发源:ChatTTS(本地API) 返回的 wav 采样率、声道数或编码(如 float32)可能不被 MP4 接受。临时改用 Edge-TTS(免费) 或 Qwen3-TTS(内置) 配音,保留 二次识别 再跑一次;若不报错,说明由该本地 API 输出音频格式触发。
  3. 确认版本文件完整:用最新 v4.16 补丁包(或完整包)整体覆盖,务必覆盖 sp.exe、_internal、videotrans 全部目录,不要只替换 sp.exe;覆盖前删除 _internal 内搜索到的所有 __pycache__。
  4. 若第 1~3 步仍复现,说明该合成命令的音频参数需修正。请提供软件安装目录 logs/ 下最新日志文件(YYYYMMDD.log)底部约 50 行内容,以及你所用 ChatTTS 本地服务的版本/启动参数,我再进一步判断。

请查阅相关文档:

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