#5341 最后一步字幕配音嵌入时出错: Filter not foundTraceback (most recent call last): File "/Users/emojii/Desktop/pyvideotrans/videotrans/t

203.27* Posted at: 2 days ago

最后一步字幕配音嵌入时出错: Filter not found
Traceback (most recent call last):
File "/Users/emojii/Desktop/pyvideotrans/videotrans/task/trans_create.py", line 1664, in _subprocess

subprocess.run(

File "/Users/emojii/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/subprocess.py", line 526, in run

raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['ffmpeg', '-nostdin', '-y', '-progress', 'compose1782027464.117085.txt', '-i', 'novoice.mp4', '-i', 'will_embed.m4a', '-filter_complex', "[0:v]subtitles=filename='end.ass'[v_out]", '-map', '[v_out]', '-map', '1:a', '-c:v', 'h264_videotoolbox', '-c:a', 'copy', '-q:v', '67', '-movflags', '+faststart', '-shortest', 'laste_target.mp4']' returned non-zero exit status 8.

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

Traceback (most recent call last):
File "/Users/emojii/Desktop/pyvideotrans/videotrans/task/trans_create.py", line 1481, in _join_video_a
......
on 8.1.2 Copyright (c) 2000-2026 the FFmpeg developers
built with Apple clang version 17.0.0 (clang-1700.6.4.2)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/8.1.2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gpl --enable-libsvtav1 --enable-libopus --enable-libx264 --enable-libmp3lame --enable-libdav1d --enable-libvmaf --enable-libvpx --enable-libx265 --enable-openssl --enable-videotoolbox --enable-audiotoolbox --enable-neon
libavutil 60. 26.102 / 60. 26.102
libavcodec 62. 28.102 / 62. 28.102
libavformat 62. 12.102 / 62. 12.102
libavdevice 62. 3.102 / 62. 3.102
libavfilter 11. 14.102 / 11. 14.102
libswscale 9. 5.102 / 9. 5.102
libswresample 6. 3.102 / 6. 3.102
[AVFilterGraph @ 0x60000110f600] No such filter: 'subtitles'
Error : Filter not found

,Command '['ffmpeg', '-nostdin', '-y', '-progress', 'compose1782027464.117085.txt', '-i', 'novoice.mp4', '-i', 'will_embed.m4a', '-filter_complex', "[0:v]subtitles=filename='end.ass'[v_out]", '-map', '[v_out]', '-map', '1:a', '-c:v', 'h264_videotoolbox', '-c:a', 'copy', '-q:v', '67', '-movflags', '+faststart', '-shortest', 'laste_target.mp4']' returned non-zero exit status 8.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/emojii/Desktop/pyvideotrans/videotrans/util/help_ffmpeg.py", line 57, in runffmpeg

subprocess.run(

File "/Users/emojii/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/subprocess.py", line 526, in run

raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'compose1782027464.117085.txt', '-i', 'novoice.mp4', '-i', 'will_embed.m4a', '-filter_complex', "[0:v]subtitles=filename='end.ass'[v_out]", '-map', '[v_out]', '-map', '1:a', '-c:v', 'libx264', '-c:a', 'copy', '-crf', '23', '-preset', 'medium', '-movflags', '+faststart', '-shortest', 'laste_target.mp4']' returned non-zero exit status 8.

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

Traceback (most recent call last):
File "/Users/emojii/Desktop/pyvideotrans/videotrans/task/trans_create.py", line 1485, in _join_video_audio_srt

runffmpeg(cmd0 + cmd1 + subtitle_filter + cmd2 + enc_qua + cmd3,

File "/Users/emojii/Desktop/pyvideotrans/videotrans/util/help_ffmpeg.py", line 87, in runffmpeg

raise FFmpegError(err) from e

videotrans.configure.excepts.FFmpegError: : Filter not found

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

Traceback (most recent call last):
File "/Users/emojii/Desktop/pyvideotrans/videotrans/task/only_one.py", line 124, in run

trk.assembling()

File "/Users/emojii/Desktop/pyvideotrans/videotrans/task/trans_create.py", line 761, in assembling

self._join_video_audio_srt()

File "/Users/emojii/Desktop/pyvideotrans/videotrans/task/trans_create.py", line 1488, in _join_video_audio_srt

raise VideoTransError(tr('Error in embedding the final step of the subtitle dubbing')+str(e)) from e

videotrans.configure.excepts.VideoTransError: 最后一步字幕配音嵌入时出错: Filter not found

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: /Users/emojii/Downloads/Funniest Moments from The L Word | SHOWTIME [XJbN-7tO6UE].mp4,
输出结果保存到文件夹: /Users/emojii/Downloads/_video_out/Funniest Moments from The L Word | SHOWTIME [XJbN-7tO6UE]-mp4,
临时文件夹: /Users/emojii/Desktop/pyvideotrans/tmp/25686/8a598ee146
未选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:


=
system:macOS-15.1-arm64-arm-64bit
version:v4.03
frozen:False
language:zh
root_dir:/Users/emojii/Desktop/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

这是由你的macOS系统自带的Homebrew版ffmpeg未编译libass库导致的,subtitles滤镜无法使用。

解决方案:

  1. 卸载现有ffmpeg:

    brew uninstall ffmpeg
  2. 重新安装带libass支持的ffmpeg:

    brew install ffmpeg --with-libass

    如果--with-libass不生效,可改用:

    brew tap homebrew-ffmpeg/ffmpeg
    brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libass
  3. 验证是否生效:

    ffmpeg -filters | grep subtitles

    输出中应出现subtitles字样。

完成后重启pyVideoTrans重新处理即可。

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. Dondate: ko-fi.com/jianchang512

Related resource