[FFmpeg-devel] [V2 03/10] libavfilter/vulkan: Fix the way to use sem

Lynne dev at lynne.ee
Tue Aug 31 14:25:47 EEST 2021


31 Aug 2021, 09:24 by wenbin.chen at intel.com:

> We chould set waitSem and signalSem differently. Current ffmpeg-vulkan
> uses the same sem to set waitSem and signalSem and it doesn't work on
> latest intel-vulkan-driver. The commit:
> a193060221c4df123e26a562949cae5df3e73cde on mesa causes this problem.
> This commit add code to resets the signalSem. This will reset waitSem
> too on current ffmpeg-vulkan. Now set waitSem and signalSem separetely.
>
> Now the following command can run on the latest mesa on intel platform:
> ffmpeg -v verbose -init_hw_device vulkan=vul:0,linear_images=1 -filter_hw_device vul
> -i input1080p.264 -vf "hwupload=extra_hw_frames=16,scale_vulkan=1920:1080,
> hwdownload,format=yuv420p" -f rawvideo output.yuv
>
> Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>
>

Sorry, I'm working on a better way which uses timeline semaphores.
Would've been nice to get pinged on IRC with what your plans were beforehand.


More information about the ffmpeg-devel mailing list