FAQ  •  Register  •  Login

nvidia acceleration ffmpeg "veryfast" not supported

<<

nobody511

Serviio newbie

Posts: 17

Joined: Thu Feb 09, 2023 3:09 pm

Post Mon Sep 30, 2024 5:35 pm

nvidia acceleration ffmpeg "veryfast" not supported

I thought i try to save a few Watts of Power and use a simple nvidia card to encode to h264 (old 730, but it makes 40W difference and gives same or slightly better fps).
Environment is Windows Server 2016 serviio is running inside a VM. Serviio version is 2.4
So I got an ffmpeg version 5 (serviio ffmpeg is also 5) from gyan.dev which supports this card. Manually running a transcode works fine.
I replaced the ffmpeg supplied with serviio with the version fom gyan and edited the options file so that nvidia acceleration is used.
But there will be no output - ffempg terminates. I examined the commandline which is used to call the ffmpeg binary, and tried it manually in a shell. Ffmepg does not like the option "veryfast" which serviio sends. If I replace veryfast with fast, the transcoding will run.

But how do I tell serviio to send fast instead of veryfast? The applicationprofile.xml is full of options but none seems to change this setting?
In the UI of serviio I can set quality to high, but also this will not change the ffempg option to fast.

As a last resort, I could replace the ffempg with a batch file, extract the arguments, and replace any verfyfast with fast. That should work but its not a nice workaround. Since Serviio supports nvenc I rather suspect I did oversee something obvious?
<<

nobody511

Serviio newbie

Posts: 17

Joined: Thu Feb 09, 2023 3:09 pm

Post Tue Oct 01, 2024 1:50 pm

Re: nvidia acceleration ffmpeg "veryfast" not supported

Followup:
I tried a newer Card (1650) and a newer ffmpeg (v7). the nvenc codec still does not support the "veryfast" argument.
I made the workaround using a batch file. Seems to work.

Still I would like to know how this is supposed to work by just enabling the nvidia integration in the user.vmoptions file.
<<

atc98092

User avatar

DLNA master

Posts: 5293

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Oct 01, 2024 3:41 pm

Re: nvidia acceleration ffmpeg "veryfast" not supported

Going to need Zip to respond to this. I have no idea how hardware acceleration is supposed to work.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

nobody511

Serviio newbie

Posts: 17

Joined: Thu Feb 09, 2023 3:09 pm

Post Tue Oct 01, 2024 4:20 pm

Re: nvidia acceleration ffmpeg "veryfast" not supported

if anyone encounters the same problem, here the workaround:
The user.vmoptions file:
  Code:
-Dserviio.useNVidiaAcceleration
-Dffmpeg.location=C:\Program Files\Serviio\lib\ffmpeg.bat


the ffmpeg.bat file:
  Code:
@echo off

echo %* >>c:\logs\ffmpeg.log.txt
set CMDARG=%*
echo old:%CMDARG%

rem replace veryfast with fast
set NEWCMDARG=%CMDARG:veryfast=fast%

echo new:%NEWCMDARG% >>c:\logs\ffmpeg.log.txt
"C:\Program Files\Serviio\lib\ffmpeg.exe" %NEWCMDARG%
exit /B %ERRORLEVEL%



Btw: the old 730 Card performs better (energysaving wise) then the 1650. I get 170fps with the 730 and it uses approx. 30W, with the 1650 I get 210fps, but 70 watts consumed. But 70W is the same as if I use the CPU.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 69 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.