我试图从原始的2字节灰色视频(以16位值编码的14位范围)生成h.264视频。我可以这样做:
ffmpeg -f rawvideo -pix_fmt gray16le -s:v 1280x720 -r 60 -i input.raw -c:v libx264 output.mp4
我得到了视频,但它很暗,不确定它是否剪辑,进行线性重映射,或存储16位数据和VLC正在进行重映射。 ffprobe正在报告Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuvj444p(pc), 1280x720, 108 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc
我在想我是否会使用色调图滤镜来制作更好的贴图。我在输出文件-vf
之前添加了一个过滤器。
tonemap=hable
错误Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
zscale=transfer=linear,tonemap=hable
错误Impossible to convert between the formats supported by the filter 'Parsed_tonemap_1' and the filter 'auto_scaler_1'
zscale=transfer=linear,tonemap=hable,zscale=transfer=bt709,format=yuvj444p
错误code 3074: no path between colorspaces
我不知道从哪里开始......