Thursday, October 5, 2023

Resizing video using FFMPEG and Nvidia GPU

Recently I had to resize a rather large 4k H.265 video file to 1080p H.265 file. This is what I used. SO much faster than using the CPU for decoding!

ffmpeg.exe -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i <input file> -resize 1920x1080 -c:v hevc_nvenc -preset fast -rc vbr -acodec copy <output file>

No comments:

Post a Comment