ghostzwc 代码例子 h265转h264 ffmpeg -hwaccel cuvid -c:v hevc_cuvid -i 输入.mp4 -c:a copy -c:v h264_nvenc -b:v 0 -threads 5 -preset fast -y 输出.mp4
ghostzwc 解释 ffmpeg 程序 -hwaccel cuvid 使用硬件加速 -c:v hevc_cuvid 使用nvidia显卡解码 -i 输入.mp4 输入文件地址 -c:a copy 拷贝流(也就是格式工厂里面那个关闭二次编码好像速度更快) -c:v h264_nvenc 使用nvidia显卡h264编码 -b:v 0 原始码率好像 -threads 5 线程5 -preset fast 最快模式 输出.mp4 按上面说的输出的地址
dragonfly ghostzwc 默认参数是适用大多数服务器的,也可自行修改替换参数 在plugins/fileThumb/lib/VideoResize.class.php搜索-c:v libx264