Duix.Heygem icon indicating copy to clipboard operation
Duix.Heygem copied to clipboard

[Ubuntu 22.04.5 LTS]Error: Video codec h264_nvenc is not available

Open wingyippp opened this issue 4 months ago • 11 comments

Error occurred in handler for 'model/addModel': Error: Video codec h264_nvenc is not available
    at /tmp/.mount_Duix.ADF3MTb/resources/app.asar/node_modules/fluent-ffmpeg/lib/capabilities.js:656:21
    at fn (/tmp/.mount_Duix.ADF3MTb/resources/app.asar/node_modules/fluent-ffmpeg/node_modules/async/lib/async.js:582:34)
    at Immediate.<anonymous> (/tmp/.mount_Duix.ADF3MTb/resources/app.asar/node_modules/fluent-ffmpeg/node_modules/async/lib/async.js:498:34)

How to fix it?

wingyippp avatar Aug 17 '25 14:08 wingyippp

I also have this error on ubuntu 24.04

daimiaoyu avatar Aug 17 '25 15:08 daimiaoyu

[info] FFmpeg path: /tmp/.mount_Duix.AH4dxW1/resources/app.asar.unpacked/resources/ffmpeg/linux-amd64/ffmpeg [info] FFprobe path: /tmp/.mount_Duix.AH4dxW1/resources/app.asar.unpacked/resources/ffmpeg/linux-amd64/ffprobe

Maybe the path is not default (/usr/bin/ffmpeg)?

daimiaoyu avatar Aug 17 '25 15:08 daimiaoyu

me too This is my log:

[debug] ENV: production-linux
[info]  FFmpeg path: /tmp/.mount_Duix.AOyAg3D/resources/app.asar.unpacked/resources/ffmpeg/linux-amd64/ffmpeg
[info]  FFprobe path: /tmp/.mount_Duix.AOyAg3D/resources/app.asar.unpacked/resources/ffmpeg/linux-amd64/ffprobe
[info]  [DB] Connected: /home/hsai/.config/Duix.Avatar/biz.db
[debug] [SQL Get]: select val from context where key = ? [ 'db_version' ]
[debug] [SQL Get]: select val from context where key = ? [ 'lang' ]
[debug] [SQL Run]: update context set val = ? where key = ? [ 'zh', 'lang' ]
[debug] [SQL Get]: select val from context where key = ? [ 'is_agree' ]
[debug] [SQL Get]: SELECT COUNT(*) as total FROM f2f_model WHERE name like '%%' []
[debug] [SQL All]: SELECT * FROM f2f_model WHERE name like '%%' ORDER BY created_at DESC LIMIT 10 OFFSET 0 []
[debug] [SQL Get]: SELECT COUNT(*) as total FROM f2f_model WHERE name like '%%' []
[debug] hasNvidia: true
Error occurred in handler for 'model/addModel': Error: Video codec h264_nvenc is not available
    at /tmp/.mount_Duix.AOyAg3D/resources/app.asar/node_modules/fluent-ffmpeg/lib/capabilities.js:656:21
    at fn (/tmp/.mount_Duix.AOyAg3D/resources/app.asar/node_modules/fluent-ffmpeg/node_modules/async/lib/async.js:582:34)
    at Immediate.<anonymous> (/tmp/.mount_Duix.AOyAg3D/resources/app.asar/node_modules/fluent-ffmpeg/node_modules/async/lib/async.js:498:34)
    at process.processImmediate (node:internal/timers:483:21)

zeroooi avatar Aug 18 '25 06:08 zeroooi

sudo apt install FFmpeg

woshigaoda avatar Aug 20 '25 08:08 woshigaoda

Same error for me when creating Avatar. Checked all logs of docker containers but no trace of hitting APIs. I think it is coming form the client app.

I tried stopping all the docker and then also client is showing same error message.

Image

lijinlar avatar Aug 22 '25 11:08 lijinlar

sudo apt install FFmpeg

this is already installed and verified

lijinlar avatar Aug 22 '25 11:08 lijinlar

sudo apt 安装 FFmpeg

这已经安装并验证了

视频是不是h.264格式

woshigaoda avatar Aug 27 '25 09:08 woshigaoda

sudo apt install FFmpeg 没有NVENC

lqfzml avatar Aug 28 '25 09:08 lqfzml

Image

lqfzml avatar Aug 28 '25 09:08 lqfzml

没法解决此问题

lqfzml avatar Aug 28 '25 09:08 lqfzml

I also encountered the same issue and tried various solutions, but it hasn't been resolved yet

dilly61 avatar Sep 18 '25 08:09 dilly61