Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd October 2024, 13:53   #1  |  Link
TEB
Registered User
 
Join Date: Feb 2003
Location: Palmcoast of Norway
Posts: 365
Vulkan enc support, anyone gotten it to work?

hi, im trying to test the vulkan video encoding extentions added in ffmpeg v7.1.
Anyone gotten it to work yet ?


Nvidia RTX4060, newest drivers etc..


Code:
./ffmpeg.exe -init_hw_device vulkan=vk:0 -filter_hw_device vk -i Bab.mkv -vf "hwupload=extra_hw_frames=16,format=yuv420p,scale_vulkan=1280:720" -c:v h264_vulkan -crf 22 output.mp4
Error:
Code:
Impossible to convert between the formats supported by the filter 'Parsed_hwupload_0' and the filter 'auto_scale_0'
[vf#0:0 @ 000001e33b794b40] Error reinitializing filters!
[vf#0:0 @ 000001e33b794b40] Task finished with error code: -40 (Function not implemented)
[vf#0:0 @ 000001e33b794b40] Terminating thread with return code -40 (Function not implemented)
[vost#0:0/h264_vulkan @ 000001e33b794380] Could not open encoder before EOF
[vost#0:0/h264_vulkan @ 000001e33b794380] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_vulkan @ 000001e33b794380] Terminating thread with return code -22 (Invalid argument)
[out#0/mp4 @ 000001e352de8200] Nothing was written into output file, because at least one of its streams received no packets.
TEB is offline   Reply With Quote
Old 9th October 2024, 11:52   #2  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 71
Try changing "format=yuv420p" to "format=vulkan" and see what happens. It goes further but still doesn't work on my Vega 8, which, I think, is missing a hardware extension.
GeoffreyA is offline   Reply With Quote
Old 9th October 2024, 17:32   #3  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 89
Nah. Perhaps some Linux magic would make it work?
Z2697 is offline   Reply With Quote
Old 9th October 2024, 21:53   #4  |  Link
takla
Registered User
 
Join Date: May 2018
Posts: 207
Can't test right now, but the following command worked for hw accel the last time I've used it

Quote:
ffmpeg -y -benchmark -init_hw_device vulkan=GPU -hwaccel vulkan -hwaccel_output_format vulkan -extra_hw_frames 30 -i "input.mkv" -filter_hw_device GPU -vf "format=nv12,hwupload,libplacebo=w=iw/2:h=ih/2:downscaler=sinc,hwdownload,format=yuv420p" -c:v hevc_amf -qp_i 18 -qp_p 18 -g 240 -an TEST.mkv
Obviously the last part after -c:v has to be changed, but if you're smart enough you can figure it out from here.

Last edited by takla; 9th October 2024 at 22:02.
takla is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.