#405 2025-09-10 11:09:02,333 - VideoTrans - ERROR - FFmpeg 命令执行失败 (force_cpu=True)。 命令: ffmpeg -hide_banner -ignore_unknown -

*ec00:b198* Posted at: 20 days ago 👁148

2025-09-10 11:09:02,333 - VideoTrans - ERROR - FFmpeg 命令执行失败 (force_cpu=True)。

命令: ffmpeg -hide_banner -ignore_unknown -y -ss 00:18:46.530 -to 00:18:47.305 -i C:/py/pyvideotrans/tmp/e7f1d339c7/novoice.mp4 -an -c:v libx264 -preset ultrafast -crf 10 -pix_fmt yuv420p -r 23.976023976023978 C:/py/pyvideotrans/tmp/e7f1d339c7/zzzz_final_gap.mp4

错误: Unrecognized option 'preset'.

Error splitting the argument list: Option not found

2025-09-10 11:09:02,404 - VideoTrans - ERROR - 没有任何有效的视频中间片段生成,视频处理失败!

How to fix? tried change model and speech split, did not help

11 Replies

Admin

Deployed from source code? Perhaps your system's FFmpeg version is too low. Update FFmpeg to 7.

Or try a different video to see if the issue persists. If so, it's definitely an FFmpeg version issue.

Updated to v8, still same error.

Using win11

at server start it gives this screen:

####信号绑定结束:1757504257.4146476

2025-09-10 14:37:37,598 - VideoTrans - WARNING - 失败: 编码器 'h264_nvenc' 测试失败。FFmpeg 返回码: 3165764104

2025-09-10 14:37:37,703 - VideoTrans - WARNING - 失败: 编码器 'h264_qsv' 测试失败。FFmpeg 返回码: 3165764104

2025-09-10 14:37:37,819 - VideoTrans - WARNING - 失败: 编码器 'h264_amf' 测试失败。FFmpeg 返回码: 3165764104

ah and yes, source code - i will later try add language, just need to get it running at all

updated - full startup:

(venv) (base) PS C:\AI\pyvideotrans> python sp.py

####开始启动时间:1757504253.1739852

所有初始化完毕,准备关闭启动窗口: 1757504255.945028

####缓存读取结束:1757504256.232832

####启动窗口结束:1757504256.2516482

[诊断] 首次调用 tools 中的函数,开始从预定义列表构建函数映射表...

[诊断] 函数映射表构建完毕。

####信号绑定结束:1757504257.4146476

2025-09-10 14:37:37,598 - VideoTrans - WARNING - 失败: 编码器 'h264_nvenc' 测试失败。FFmpeg 返回码: 3165764104

2025-09-10 14:37:37,703 - VideoTrans - WARNING - 失败: 编码器 'h264_qsv' 测试失败。FFmpeg 返回码: 3165764104

2025-09-10 14:37:37,819 - VideoTrans - WARNING - 失败: 编码器 'h264_amf' 测试失败。FFmpeg 返回码: 3165764104

Admin

termal exec ffmpeg -hide_banner -ignore_unknown -y -ss 00:00:01.000 -to 00:00:03.305 -i C:/py/pyvideotrans/test.mp4 -an -c:v libx264 -preset ultrafast -crf 10 -pix_fmt yuv420p -r 23.976023976023978 C:/py/pyvideotrans/out.mp4

print output

(venv) (base) PS C:\py\pyvideotrans> ffmpeg -hide_banner -ignore_unknown -y -ss 00:00:01.000 -to 00:00:03.305 -i C:/py/pyvideotrans/test.mp4 -an -c:v libx264 -preset ultrafast -crf 10 -pix_fmt yuv420p -r 23.976023976023978 C:/py/pyvideotrans/out.mp4

Unrecognized option 'preset'.

Error splitting the argument list: Option not found

(venv) (base) PS C:\py\pyvideotrans>

I think more likely it can be FFMPEG - as i 1st try instaled from exe file, when you asked i updated with GIT repo, and also tried to download zip from Gyn repo and extract and replace 1st installed filed wich is in C:/ffmpeg (also PATH is set there), but i don`t know where GIT installed...

Anyway, UP are output of your code - still PRESET and list options

Admin

ffmpeg --version

print

Admin

Open the cmd console and execute ffmpeg -version to check the output version number. Then go to the c:/ffmpeg directory and execute ffmpeg -version to check the output version number. If the two outputs are different, copy the two exe files in c:/ffmpeg to the C:\py\pyvideotrans directory and try again.

Thanks for support, got it running, also added lang i needed.

Only downside - in desired lang output is crazy - wrong, not contextual, direct translated what is totally wrong context what is talking about (tried to convert tutorial for Power BI needed by my Uncle)

Otherwise app is working, with few warnings etc, but thats ok, i`ll manage to deal with them, just need to good translate - dunno how to...

btw, you need update code

this -> VideoTrans - WARNING - 失败: 编码器 'h264_nvenc'

no more supported i think, i checked encondings, it starts from 360.

also this warning / error occured

\venv\Lib\site-packages\zhconv\zhconv.py:33: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools

Admin

Use openai chatgpt as the translation channel and select Send full subtitles for better translation results. This error is just a test. When starting, it will detect the hardware encoding method supported by the current ffmpeg. If one succeeds, it will use it. If all fail, it will use software encoding.

This -> VideoTrans - WARNING - Failed: Encoder 'h264_nvenc'

This indicates that the current hardware does not support the nvenc encoding method. Continue testing other

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions