[FFmpeg-devel] [PATCH] CUDA - make it work for multiple GPU architectures
Timo Rothenpieler
timo at rothenpieler.org
Fri Mar 12 19:15:12 EET 2021
On 12.03.2021 16:14, Patrick Ecord wrote:
> Tried that and ran configure and it failed with Option '--ptx (-ptx)' is not allowed when compiling for multiple GPU architectures"
>
> So I removed the `-ptx` flag and I was able to run configure and make and make install without any errors.
FFmpeg embeds the ptx assembly code. Removing the -ptx option WILL
breaks any and all CUDA filters.
> Tested by converting Big Buck Bunny and it played fine.
> ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i ./Big_Buck_Bunny_1080_10s_30MB.mp4 -c:a copy -c:v h264_nvenc -b:v 5M output.mp4
This only works because you are not actually using any CUDA filters.
There is zero need for nvcc support for that commandline.
On top of that, just use clang and don't bother with the Nvidia SDK
unless you are developing filters.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4494 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210312/4171cc34/attachment.bin>
More information about the ffmpeg-devel
mailing list