#6068 Error embedding final dubselecting an encoder opening output file laste_target.mp4. opening output files: Encoder not fo

171.252* Posted at: 2 hours ago

Error embedding final dubselecting an encoder opening output file laste_target.mp4. opening output files: Encoder not found
Traceback (most recent call last):
File "C:\Users\ad\Downloads\pyvideotrans-main\pyvideotrans-main\videotrans\util\_ffmpeg_runner.py", line 49, in runffmpeg

subprocess.run(

File "C:\Users\ad\AppData\Roaming\uv\python\cpython-3.10.19-windows-x86_64-none\lib\subprocess.py", line 526, in run

raise CalledProcessError(retcode, process.args,

subprocess.CalledProcessError: Command '['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'compose1784913598.2978368.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', 'slow', '-movflags', '+faststart', '-fps_mode', 'vfr', '-shortest', 'laste_target.mp4']' returned non-zero exit status 3165764104.

The above excepti
......
dio_srt

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

File "C:\Users\ad\Downloads\pyvideotrans-main\pyvideotrans-main\videotrans\util\_ffmpeg_runner.py", line 78, in runffmpeg

raise FFmpegError(err) from e

videotrans.configure.excepts.FFmpegError: selecting an encoder opening output file laste_target.mp4. opening output files: Encoder not found

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

Traceback (most recent call last):
File "C:\Users\ad\Downloads\pyvideotrans-main\pyvideotrans-main\videotrans\task\only_one.py", line 139, in run

trk.assembling()

File "C:\Users\ad\Downloads\pyvideotrans-main\pyvideotrans-main\videotrans\task\_stage_assemble.py", line 26, in assembling

self._join_video_audio_srt()

File "C:\Users\ad\Downloads\pyvideotrans-main\pyvideotrans-main\videotrans\task\_stage_assemble.py", line 291, 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 dubselecting an encoder opening output file laste_target.mp4. opening output files: Encoder not found

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/ad/Downloads/snaptik.vn_7629927629017156871.mp4,
输出结果保存到文件夹: C:/Users/ad/Downloads/pyvideotrans-main/pyvideotrans-main/snaptik.vn_7629927629017156871-mp4,
临时文件夹: C:/Users/ad/Downloads/pyvideotrans-main/pyvideotrans-main/tmp/25284/1e701eea2a
已选 清理已存在
未选 启用CUDA加速
未选 降噪
ASR Channel:faster-whisper(LocalBuilt-in), model_name: small, 发音语言: Simplified Chinese, 断句方式:默认断句
Trans Channel:Google (Free),原始语言:Simplified Chinese,目标语言:Vietnamese, 已选 SendSrt
未选 配音角色,不进行配音
字幕: Embed Hard Subs
已选 仅输出mp4
代理地址:


=
system:Windows-10-10.0.19045-SP0
version:v4.07
frozen:False
language:en
root_dir:C:/Users/ad/Downloads/pyvideotrans-main/pyvideotrans-main
Python: 3.10.19 (main, Feb 12 2026, 00:37:08) [MSC v.1944 64 bit (AMD64)]

1 Replies

This error is caused by FFmpeg failing to find the libx264 encoder during the final video assembly step. The command uses -c:v libx264, but your current FFmpeg installation either lacks this encoder or is not properly placed.

Root Cause

You are running the source-code deployment (non-packaged version). According to the project requirements, you must manually download FFmpeg (≥ v6.0) and place ffmpeg.exe and ffprobe.exe inside the ffmpeg/ directory under the project root. The software automatically adds this directory to the system PATH at runtime. If the files are missing, or the downloaded FFmpeg build does not include libx264 (e.g. a minimal build), this "Encoder not found" error occurs.

Fix Steps

  1. Verify existing FFmpeg files
    Go to C:\Users\ad\Downloads\pyvideotrans-main\pyvideotrans-main\ffmpeg\ and confirm that both ffmpeg.exe and ffprobe.exe exist.
  2. If missing or incorrect, download the full FFmpeg build

    • Download the full FFmpeg package from:
      https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z
    • Extract the archive.
    • Copy ffmpeg.exe and ffprobe.exe from the bin/ folder inside the extracted archive into the ffmpeg/ directory mentioned above.
    • Do not use any "essentials" or "lite" builds – they may omit libx264.
  3. Quick test
    Open Command Prompt in that ffmpeg/ folder and run:

    ffmpeg -encoders | findstr libx264

    You should see a line starting with ... libx264. If not, the build is incomplete.

  4. Restart pyVideoTrans and retry the task.

If the problem persists, please provide the output of the above ffmpeg -encoders command and check that your antivirus hasn't blocked the executable.

Related Documentation

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 via ko-fi.com

Dondate via PayPal

Related resource