in the only success I had with Linux today, here’s a command I brute-forced to get ffmpeg use my AMD GPU. I don’t know whether I did it correctly, but it seems to have worked.
ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i wb.mp4 -vf 'subtitles=wb.srt:force_style=fontcolor=white,format=nv12,hwupload=extra_hw_frames=64' -c:v h264_vaapi wbs.mp4Conversation
Notices
-
Embed this notice
kaia (kaia@brotka.st)'s status on Monday, 09-Oct-2023 03:24:00 JST kaia
-
Embed this notice
kaia (kaia@brotka.st)'s status on Monday, 09-Oct-2023 03:27:19 JST kaia
I did it incorrectly, since the file is 1GB bigger now. but alas, I have no time to fix it. -
Embed this notice
kaia (kaia@brotka.st)'s status on Monday, 09-Oct-2023 03:39:39 JST kaia
but encoding at 12x is definitely better than the 1.5x on my laptop's CPU and 4x on my desktop CPU. will investigate more. on-lain ✔ᵛᵉʳᶦᶠᶦᵉᵈ likes this. -
Embed this notice
Cheetah Meld (pingviini@pleroma.shunderdo.me)'s status on Monday, 09-Oct-2023 03:45:15 JST Cheetah Meld
@kaia I am waiting for an AI chatbot that can translate plain text requests into working ffmpeg options and that is not a joke. That is the thing that will make me an AI stan. kaia likes this. -
Embed this notice
kaia (kaia@brotka.st)'s status on Monday, 09-Oct-2023 03:45:42 JST kaia
@thendrix
I don't know. I'm using vaapi with the default Mesa drivers.
ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i wb.mp4 -vf 'subtitles=wb.srt:force_style=fontcolor=white,format=nv12,hwupload=extra_hw_frames=64' -c:v h264_vaapi wbs.mp4 -
Embed this notice
Terry Hendrix II 🏹 (thendrix@social.hendrixgames.com)'s status on Monday, 09-Oct-2023 03:45:49 JST Terry Hendrix II 🏹
Are you using the Vulkan video encoding yet? (Can’t really see your command line well on fone.)
-
Embed this notice
Terry Hendrix II 🏹 (thendrix@social.hendrixgames.com)'s status on Monday, 09-Oct-2023 03:47:43 JST Terry Hendrix II 🏹
I don’t know the ffmpeg switches defaults. You may need a specific version of the app as well. First hit on web search for reference:
kaia likes this. -
Embed this notice
kaia (kaia@brotka.st)'s status on Monday, 09-Oct-2023 03:49:30 JST kaia
@thendrix yeah I was using that page -
Embed this notice
Terry Hendrix II 🏹 (thendrix@social.hendrixgames.com)'s status on Monday, 09-Oct-2023 03:49:34 JST Terry Hendrix II 🏹
-
Embed this notice
kaia (kaia@brotka.st)'s status on Monday, 09-Oct-2023 03:50:47 JST kaia
@thendrix I'll try Vulkan the next time then :mukiLook: In conversation permalink -
Embed this notice
Aroop Roelofs :verified: (finlaydag33k@social.linux.pizza)'s status on Monday, 09-Oct-2023 04:08:18 JST Aroop Roelofs :verified:
@kaia Seems like you have no limits on the bitrate.
These are what I use:
-rc_mode CQP -global_quality 22 -compression_level 1In conversation permalink kaia likes this.
-
Embed this notice