ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -c:v h264_cuvid -i test-origin.mp4 -vf hwdownload,format=nv12 -q:v 2 -f image2 images/%06d.jpg
ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -c:v mjpeg_cuvid images/%06d.jpg -framerate 1 -i -c:v h264_nvenc -r 24 -b:v 2M imagetovideo.mp4
fmpeg -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -c:v mjpeg_cuvid -framerate 24 -i images/%06d.jpg -c:v h264_nvenc imagetovideo.mp4
fmpeg -vsync 0 -framerate 24 -i images/%06d.jpg -c:v libx264 imagetovideo.mp4
ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -c:v h264_cuvid -i test-origin.mp4 -c:v h264_nvenc -b:v 5M output.mp4