I have a question about save kinect color video as stream How to save Kinect's color video as stream to hard by Kinect SDK 2 in WPF???
i read this link: Save Kinect's color camera video stream in to .avi video
I have a question about save kinect color video as stream How to save Kinect's color video as stream to hard by Kinect SDK 2 in WPF???
i read this link: Save Kinect's color camera video stream in to .avi video
Copyright © 2021 Jogjafile Inc.
For a project, I had to do this. What I've done may not fulfill all your requirements but it may give you an idea. At first I saved every color frame image in local drive with a sequencial naming. Then with ffmpeg I converted those sequential image to video file, in my case it was mp4 video, not avi.
To save color image frame sequentially, you may code like below,
Above example saves the images in jpeg format. if you need to save it as png format use
PngBitmapEncoder
.Now we have saved sequential images in hard drive. To convert these sequential images to video file you can use ffmpeg. You can also use Aforge.net. But I've never used it. In my case I called the
ffmpeg.exe
process from my C# program like below.Process.Start("ffmpeg.exe", "-framerate 10 -i ./img/%d.jpeg -c:v libx264 -r 30 -pix_fmt yuv420p kinect_video.mp4");
Note:
Hope it helps :)