#7829 最后一步字幕配音嵌入时出错submitting a packet to the muxer: Invalid argument submitting a packet to the muxer: Invalid argument muxin

2407**101c Posted at: 1 hour ago

最后一步字幕配音嵌入时出错submitting a packet to the muxer: Invalid argument submitting a packet to the muxer: Invalid argument muxing a packet
Traceback (most recent call last):
File "videotrans\util\_ffmpeg_runner.py", line 49, in runffmpeg
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'compose1791223634.7101243.txt', '-i', 'novoice.mp4', '-i', 'will_embed.m4a', '-i', 'end.srt', '-map', '0:v', '-map', '1:a', '-map', '2:s', '-c:v', 'copy', '-c:a', 'copy', '-c:s', 'mov_text', '-metadata:s:s:0', 'language=zho', '-movflags', '+faststart', '-shortest', 'laste_target.mp4']' 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\_stage_assemble.py", line 242, in _join_video_audio_srt
File "videotrans\util\_ffmpeg_runner.py", line 78, in runffmpeg
videotrans.configure.excepts.FFmpegError: submitting a packet to the muxer: Invalid argument submitting a packet to the muxer: Invalid argument muxing a packet

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

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 164, in run
File "videotrans\task\_stage_assemble.py", line 26, in assembling
File "videotrans\task\_stage_assemble.py", line 289, in _join_video_audio_srt
videotrans.configure.excepts.VideoTransError: 最后一步字幕配音嵌入时出错submitting a packet to the muxer: Invalid argument submitting a packet to the muxer: Invalid argument muxing a packet

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/下载/新建文件夹/新建文件夹/2ce3f6b042c47072fb7a3553d8baea41bcb2a29d.mp4,
输出结果保存到文件夹: C:/下载/Windows/win-pyvideotrans-v4.07/2ce3f6b042c47072fb7a3553d8baea41bcb2a29d-mp4,
临时文件夹: D:/BaiduNetdiskDownload/tmp/11792/8701a829de
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3, 发音语言: 日语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕
已选 仅输出mp4
代理地址:http://127.0.0.1:12450


=
system:Windows-10-10.0.22000-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/BaiduNetdiskDownload

1 Replies

#1 DeepSeek reply at 1 hour ago

底层原因:原视频(novoice.mp4,即无声视频流)本身的视频编码与封装容器不兼容,导致无法直接 -c:v copy(流复制)打包进 mp4 容器。此现象常见于原视频为 VP9/AV1 等编码却强行封装 mp4,或是视频流参数异常(如时间戳/帧率错乱)。此外容器带空格路径、软件版本较旧也可能是诱因。

解决方案(按顺序尝试):

  1. 将待翻译视频移动到浅层纯英文数字目录(例如 D:\video\2ce.mp4),彻底排除中文与多层目录路径干扰,重新翻译。
  2. 升级软件到最新版 v4.15,你当前为 v4.12,旧版本在流封装兼容处理上有缺陷。
  3. 若仍有该错,请打开 菜单-工具-高级选项-视频输出控制:

    • 将264/265编码改为 264;
    • 勾选 强制软编码视频?;
    • 将 可变帧率vfr/固定帧率cfr 改为 固定帧率cfr;
      然后重试。
  4. 若原视频是 AV1、VP9 等特殊编码,建议先用其它工具(如格式工厂、HandBrake、ffmpeg)转成标准的 H.264 + mp4 后,再导入本软件翻译。

请查阅相关文档:

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