我想从 .rgb 文件创建视频。这些只包含像素,没有标题。
我能够从 png 中创建视频:
ffmpeg -f image2 -r 30 -i %%06d.png -vcodec huffyuv video.avi
Run Code Online (Sandbox Code Playgroud)
但是通过 ImageMagick(并不奇怪)将 .rgb 文件转换为 png 需要很长时间。当我尝试:
ffmpeg -f image2 -r 30 -s 1776x1000 -pix_fmt rgb24 -i %%06d.rgb -vcodec huffyuv video.avi
[image2 @ 0238d520] Stream #0: not enough frames to estimate rate; consider increasing probesize
[image2 @ 0238d520] Could not find codec parameters for stream 0 (Video: none, rgb24, 1776x1000): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options %06d.rgb: could not …Run Code Online (Sandbox Code Playgroud)