Did*_*diZ 8 video encoding ffmpeg rgb
我想从 .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 find codec parameters
Run Code Online (Sandbox Code Playgroud)
有没有办法直接将 rgb 文件提供给 ffmpeg?
-vcodec rawvideo
Run Code Online (Sandbox Code Playgroud)
这就是我所缺乏的
fmpeg -f image2 -r 30 -s 1776x1000 -pix_fmt rgb24 -vcodec rawvideo -i %%06d.rgb -vcodec huffyuv video.avi
Run Code Online (Sandbox Code Playgroud)
现在工作。
| 归档时间: |
|
| 查看次数: |
7119 次 |
| 最近记录: |