On Tue, Sep 5, 2023 at 11:36 AM Andrew Randrianasulu <[email protected]> wrote:
On Tue, Sep 5, 2023 at 10:59 AM Andrea paz via Cin <[email protected]> wrote:
@Andrew Sorry to bother you again on a subject you have already tried to explain over and over again.
Reading this page: https://trac.ffmpeg.org/wiki/HWAccelIntro it is my understanding that when decoding (note: from here on I am only referring to decoding/playback!) you can use the "-hwaccel" option without any other settings.
As far as I understand those options parsed in ffmpeg command line tool itself, so using library from c/c++ requires some similar manual work ....
If the media file used supports
hardware acceleration, then it will be used automatically without anything else to do. If it is not supported it will automatically switch to software decoding. There is no need to specify the device (because a device is automatically selected, even if it is not the preferred one), so it would be a generic feature that decides for itself when to run. Question, how can I impose "-hwaccel" when compiling CinGG?
Another thing concerns decoding with Vulkan. Again, these are generic instructions and I would like to test it, however it requires device initialization, to be declared explicitly (although a generic term is fine: "vulkan=vk:0") and a few other options. See here: https://trac.ffmpeg.org/wiki/HWAccelIntro#Vulkan The question is always the same: How can I compile vulkan in CinGG to do some tests?
There is possibility that current ffmpeg.git broken with latest released vulkan headers, see ffpeg-user list..
In 5.1/6.0 you will get in best case just some filters, _may be_ amd specific (and not open source?) encoder. Vulkan work in future 6.1 aims just more unified (win/mac/lin may be android) video interface ... instead of libva/ dxva11 / videotoolbox on each platform, as far as I understand.
AMF stuff: https://github.com/GPUOpen-LibrariesAndSDKs/AMF/issues/348
https://github.com/mpv-player/mpv/issues/11739
http://ffmpeg.org/pipermail/ffmpeg-user/2023-September/056774.html
May be there will be some benefits in driving hw blocks this way, not sure (there was talk mesa's va encoder implementation not most speedy one)
But to your question just go to thirdparty/makefile and look for long ffmpeg command line (without-ffplay etc), just remove --disable-vulkan from there .
Or try to compile cingg without thirdparty ffmpeg.
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin