从图像WPF C#创建视频
问题描述:
大家好,
我想从图像创建视频.我尝试使用AviManager,但视频尺寸巨大,并且无法在BsPlayer中播放视频.它在GomPlayer中播放,但是在1秒内显示所有内容(将fps选择为25,并且大约有100张图像).此外,没有时间录像.因此,我尝试寻找另一种方法.我愿意接受所有建议.
感谢您的帮助.
Hi people,
I want to create a video from images. I try to AviManager, but the video has huge size and video is not played in BsPlayer. It is played in GomPlayer but show everything in 1 second ( fps is selected as 25 and there is about 100 images). In Addition, there is no time video. So I try to find another way. I''m open to all suggestions.
Thanks advance for help.
答
以下是CP的其中之一:
用于AviFile库的简单C#包装器 [ ^ ]
Here is one from CP:
A Simple C# Wrapper for the AviFile Library[^]
我发现了以下.NET项目,该项目从图像文件生成视频.
希望对您有帮助
从图像生成视频
I found the following .NET project that generates a video from image files.
I hope that it helps
Generate Video from images
此 ^ ]提到了命令ffmpeg -f image2 -i image%d.jpg video.mpg
将图像转换为视频.将可以自定义使用任意编解码器,转换帧大小,设置帧速率等.
您将必须提供存储在文件系统中并适当命名的图像(文件名中带有相应的数字).
如果您的图像位于内存中而不是保存到磁盘,请忽略此答案.
This overview[^] mentions the commandffmpeg -f image2 -i image%d.jpg video.mpg
to convert images to video. It will be customizable to use arbitrary codecs, convert frame sizes, set frame rates and so on.
You will have to provide the images stored in a filesystem and adequatly named (with consequtive numbers in the filename).
Ignore this answer if your images are in memory instead of saved to a disk.