工具
精华
|
战斗力 鹅
|
回帖 0
注册时间 2016-8-10
|
本帖最后由 NyanMisaka 于 2021-5-31 01:17 编辑
用ffmpeg里的tonemap滤镜,映射SDR后H264编码输出,滤镜和编码参数可微调。
链接: https://pan.baidu.com/s/1eoOceaO8jtKegFrmEiFGzg 提取码: gyg8
CPU版(很慢)
- ffmpeg -threads 0 -i "D:\HDR.MOV" -c:a copy -vf "zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0:peak=100,zscale=t=bt709:m=bt709,format=yuv420p" -c:v libx264 -preset medium -profile:v high -b:v 15000000 -y "D:\SDR.mp4"
复制代码
GPU OpenCL加速版
- ffmpeg -init_hw_device opencl=ocl:0.0 -filter_hw_device ocl -i "D:\HDR.MOV" -c:a copy -vf "format=p010,hwupload,tonemap_opencl=tonemap=hable:desat=0:peak=100:threshold=0.8:t=bt709:m=bt709:p=bt709:r=pc:format=nv12,hwdownload,format=nv12" -c:v libx264 -preset medium -profile:v high -b:v 15000000 -y "D:\SDR.mp4"
复制代码
GPU N卡CUDA NVENC加速版
- ffmpeg -init_hw_device opencl=ocl:0.0 -filter_hw_device ocl -hwaccel cuda -hwaccel_output_format cuda -extra_hw_frames 3 -i "D:\HDR.MOV" -c:a copy -vf "hwdownload,format=p010,hwupload,tonemap_opencl=tonemap=hable:desat=0:peak=100:threshold=0.8:t=bt709:m=bt709:p=bt709:r=pc:format=nv12,hwdownload,format=nv12,hwupload_cuda" -c:v h264_nvenc -preset medium -profile:v high -b:v 15000000 -y "D:\SDR.mp4"
复制代码
|
评分
-
查看全部评分
|