我在windows10上使用ffmpeg 4.0.2。我在这里找到了从HDR到SDR的脚本,但当我从页面底部运行该脚本时:
ffmpeg.exe -i input.mkv -vf zscale=t=linear:npl=100,format=gbrpf32le,
zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,
format=yuv420p -c:v libx265 -crf 18 -preset slower output.mkv我得到了这个错误:
[NULL @ 0000014588707480] Unable to find a suitable output format for
'format=gbrpf32le'
format=gbrpf32le: Invalid argument当我从页面运行第一个脚本时:
ffmpeg.exe -i input.mkv -vf select=gte(n\,360) -vframes 1 output.png我得到了这个错误:
At line:1 char:41
+ ffmpeg.exe -i Hook.mkv -vf select=gte(n\,360) -vframes 1 output.png
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [],
ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
[1]: https://stevens.li/guides/video/converting-hdr-to-sdr-with-ffmpeg/我刚接触ffmpeg,有人能解释一下怎么回事吗?
非常感谢!
发布于 2020-04-17 23:18:56
请阅读这篇文章,了解如何将HDR10+视频转换为SDR (标准动态范围),这样它们就可以在非HDR设备上观看,并使用明亮而不褪色的颜色作为原始颜色:
https://www.maxvergelli.com/how-to-convert-hdr10-videos-to-sdr-for-non-hdr-devices/
这是批处理命令:
C:\ffmpeg\bin\ffmpeg.exe -i video-input.mp4 -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p -c:v libx265 -crf 22 -preset medium -tune fastdecode -t 90 video-output.mp4https://stackoverflow.com/questions/52897028
复制相似问题