#4929 TaskCfgVTT(uuid='0b98fb24a8', name='/Users/travischen/Desktop/Listings素材/26年第一批货/80W摄影灯/raw video.mp4', dirname='/Users/

2401:d005* Posted at: 9 hours ago

Error embedding final dub: Filter not foundASR Error:faster-whisper (Local), Trans Error: Microsoft (Free), Dubbing Error:Edge-TTS(Free)
Traceback (most recent call last):
File "/Users/travischen/Projects/pyvideotrans/videotrans/task/trans_create.py", line 1584, in _subprocess

subprocess.run(

File "/Users/travischen/.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', 'compose1780494702.2687309.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', '-fps_mode', 'vfr', '-t', '50.520000', 'laste_target.mp4']' returned non-zero exit status 8.

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

......
, line 526, in run

raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'compose1780494702.2687309.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', '-fps_mode', 'vfr', '-t', '50.520000', '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/travischen/Projects/pyvideotrans/videotrans/task/trans_create.py", line 1406, in _join_video_audio_srt

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

File "/Users/travischen/Projects/pyvideotrans/videotrans/util/help_ffmpeg.py", line 88, 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/travischen/Projects/pyvideotrans/videotrans/task/only_one.py", line 128, in run

trk.assembling()

File "/Users/travischen/Projects/pyvideotrans/videotrans/task/trans_create.py", line 709, in assembling

self._join_video_audio_srt()

File "/Users/travischen/Projects/pyvideotrans/videotrans/task/trans_create.py", line 1409, 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: Error embedding final dub: Filter not found
TaskCfgVTT(uuid='0b98fb24a8', name='/Users/travischen/Desktop/Listings素材/26年第一批货/80W摄影灯/raw video.mp4', dirname='/Users/travischen/Desktop/Listings素材/26年第一批货/80W摄影灯', noextname='raw video', basename='raw video.mp4', ext='mp4', target_dir='/Users/travischen/Desktop/Listings素材/26年第一批货/80W摄影灯/_video_out/raw video-mp4', cache_folder='/Users/travischen/Projects/pyvideotrans/tmp/27711/0b98fb24a8', is_cuda=False, source_language='Simplified Chinese', source_language_code='zh-cn', source_sub='/Users/travischen/Desktop/Listings素材/26年第一批货/80W摄影灯/_video_out/raw video-mp4/zh-cn.srt', source_wav='/Users/travischen/Projects/pyvideotrans/tmp/27711/0b98fb24a8/zh-cn.wav', source_wav_output='/Users/travischen/Desktop/Listings素材/26年第一批货/80W摄影灯/_video_out/raw video-mp4/zh-cn.m4a', target_language='Portuguese', target_language_code='pt', target_sub='/Users/travischen/Desktop/Listings素材/26年第一批货/80W摄影灯/_video_out/raw video-mp4/pt.srt', target_wav='/Users/travischen/Projects/pyvideotrans/tmp/27711/0b98fb24a8/target.wav', target_wav_output='/Users/travischen/Desktop/Listings素材/26年第一批货/80W摄影灯/_video_out/raw video-mp4/pt.m4a', translate_type=1, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Antonio(Male/BR)', voice_autorate=True, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='zh-cn', recogn_type=0, model_name='tiny', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='/Users/travischen/Desktop/Listings素材/26年第一批货/80W摄影灯/_video_out/raw video-mp4/raw video.mp4', novoice_mp4='/Users/travischen/Projects/pyvideotrans/tmp/27711/0b98fb24a8/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='/Users/travischen/Projects/pyvideotrans/tmp/27711/0b98fb24a8/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:macOS-26.3.1-arm64-arm-64bit
version:v4.01
frozen:False
language:en
root_dir:/Users/travischen/Projects/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

The error No such filter: 'subtitles' indicates your ffmpeg installation lacks the libass library, which is required for rendering hardcoded subtitles. The subtitles filter is not compiled in.

Solution:

  1. Reinstall ffmpeg with libass support on macOS via Homebrew:

    brew uninstall ffmpeg
    brew install ffmpeg

    The default Homebrew formula includes --enable-libass. After reinstalling, verify:

    ffmpeg -filters | grep subtitles

    You should see subtitles listed.

  2. Alternative (workaround): In the software, choose "Soft subtitles" instead of "Hard subtitles" (or select "No subtitle") for this task. Soft subtitles do not require the subtitles filter.
  3. If you've built ffmpeg manually, ensure the configuration includes --enable-libass.

The problem is not specific to Python or pyVideoTrans; it's a missing system dependency.

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