硬件NVIDIA:ffmpeg.exe -i input.avi -c:v hevc_nvenc -preset:v fast output.mp4
软件 :ffmpeg.exe -i input.avi [-c:a copy] -c:v libx265 output.mp4
i7 6700
8G
GTX960
Windows 10
H264:
ffmpeg -i source.mp4 -c:v libx264 -crf 24 -deinterlace destination.flv
ffmpeg -i input.mp4 -c:v h264_nvenc -deinterlace -b 1.5M d1.mp4
H265:
ffmpeg.exe -i input.avi -c:v hevc_nvenc -preset:v fast output.mp4
ffmpeg.exe -i input.avi -c:v hevc_nvenc -preset:v fast -b 2M output.mp4
ffmpeg.exe -i input.avi -c:v libx265 -preset:v fast output.mp4
N卡
md H265 | for %a in ("*.mp4","*.avi","*.wmv","*.mkv") do ffmpeg -i "%a" -c:v hevc_nvenc -cq 32 -c:a aac -aq 1.8 -y "H265/%~na_H265.mp4"
AMD
md H265 | for %a in ("*.mp4","*.avi","*.wmv","*.mkv") do ffmpeg -i "%a" -c:v hevc_amf -cq 32 -c:a aac -aq 1.8 -y "H265/%~na_H265.mp4"
IntelCPU 好像要7代U
md H265 | for %a in ("*.mp4","*.avi","*.wmv","*.mkv") do ffmpeg -i "%a" -c:v hevc_qsv -cq 32 -c:a aac -aq 1.8 -y "H265/%~na_H265.mp4"
ffmpeg -encoders查询支持的解码格式
来源:oschina
链接:https://my.oschina.net/u/4389867/blog/4653445