合并阶段出错:运行时错误:最后一步字幕配音嵌入时出错:
Traceback (most recent call last):
File "/Users/peijingbo/MyCode/pyvideotrans/videotrans/util/help_ffmpeg.py", line 274, in runffmpeg
subprocess.run(File "/opt/homebrew/Cellar/[email protected]/3.10.19_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-progress', '/Users/peijingbo/MyCode/pyvideotrans/tmp45706/compose1775708764.3278441.txt', '-i', '/Users/peijingbo/MyCode/pyvideotrans/tmp45706/12f84ddbc9/novoice.mp4', '-i', '/Users/peijingbo/MyCode/pyvideotrans/tmp45706/12f84ddbc9/target.wav', '-c:v', 'h264_videotoolbox', '-c:a', 'aac', '-b:a', '128k', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-shortest', '/Users/peijingbo/Movies/翻译输出/08,09,10,11,12,13/11-Early Programming: Crash Course Computer Science #10/11-Early Programming: Crash Course Computer Science #10.mp4']' returned non-zero exit status 234.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/peijingbo/MyCode/pyvideotrans/videotrans/util/help_ffmpeg.py", line 274, in runffmpeg
subprocess.run(File "/opt/homebrew/Cellar/[email protected]/3.10.19_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-progress', '/Users/peijingbo/MyCode/pyvideotrans/tmp45706/compose1775708764.3278441.txt', '-i', '/Users/peijingbo/MyCode/pyvideotrans/tmp45706/12f84ddbc9/novoice.mp4', '-i', '/Users/peijingbo/MyCode/pyvideotrans/tmp45706/12f84ddbc9/target.wav', '-c:v', 'libx264', '-c:a', 'aac', '-b:a', '128k', '-vf', 'subtitles=end.srt.ass', '-movflags', '+faststart', '-crf', '22', '-preset', 'fast', '-shortest', '/Users/peijingbo/Movies/翻译输出/08,09,10,11,12,13/11-Early Programming: Crash Course Computer Science #10/11-Early Programming: Crash Course Computer Science #10.mp4']' returned non-zero exit status 234.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/peijingbo/MyCode/pyvideotrans/videotrans/task/trans_create.py", line 1082, in _join_video_audio_srt
tools.runffmpeg(cmd)File "/Users/peijingbo/MyCode/pyvideotrans/videotrans/util/help_ffmpeg.py", line 314, in runffmpeg
return runffmpeg(fallback_args, noextname=noextname, uuid=uuid, force_cpu=True)File "/Users/peijingbo/MyCode/pyvideotrans/videotrans/util/help_ffmpeg.py", line 319, in runffmpeg
raise RuntimeError(err)RuntimeError: Error opening output file /Users/peijingbo/Movies/翻译输出/08,09,10,11,12,13/11-Early Programming: Crash Course Computer Science #10/11-Early Programming: Crash Course Computer Science #10.mp4.
Error opening output files: Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/peijingbo/MyCode/pyvideotrans/videotrans/task/job.py", line 256, in run
trk.assembling()File "/Users/peijingbo/MyCode/pyvideotrans/videotrans/task/trans_create.py", line 508, in assembling
self._join_video_audio_srt()File "/Users/peijingbo/MyCode/pyvideotrans/videotrans/task/trans_create.py", line 1085, in _join_video_audio_srt
raise RuntimeError(msg)RuntimeError: 最后一步字幕配音嵌入时出错
=
system:macOS-26.3.1-arm64-arm-64bit
version:v3.84
frozen:False
language:zh
root_dir:/Users/peijingbo/MyCode/pyvideotrans
Python: 3.10.19 (main, Oct 9 2025, 15:25:03) [Clang 17.0.0 (clang-1700.3.19.1)]