How to save a video in computer?

Post Reply
SKY
Posts: 2
Joined: Mon Nov 30, 2015 1:27 am

How to save a video in computer?

Post by SKY » Mon Nov 30, 2015 2:02 am

I bought a camera, optitrack prime 17w.
And I downloaded a camera SDK and adjusted FPS, exposure.
But I have to save a video to file in my computer T^T Optitrack's Camera SDK include only video viewer without saving.
Could you let me know how to save a video(on window pop-up) to file????????
any extension is OK(avi,mp4,gif)

NaturalPoint-Dustin
Posts: 612
Joined: Tue Mar 19, 2013 5:03 pm

Re: How to save a video in computer?

Post by NaturalPoint-Dustin » Mon Nov 30, 2015 1:54 pm

Hello,

Our Camera SDK does not save videos. However, it does provide camera frame data. Converting the individual frames into a video is possible. We do not offer support for this process.
Dustin
Technical Support Engineer
OptiTrack | TrackIR | SmartNav

SKY
Posts: 2
Joined: Mon Nov 30, 2015 1:27 am

Re: How to save a video in computer?

Post by SKY » Wed Dec 02, 2015 2:33 am

How to get camera frame data?
If I can't save a video, I want to save each camera frame into file.
Could you let me know these function of getting camera frame data?? specific code or function or something....TTT

beckdo
NaturalPoint Employee
NaturalPoint Employee
Posts: 519
Joined: Tue Jan 02, 2007 2:02 pm

Re: How to save a video in computer?

Post by beckdo » Thu Dec 03, 2015 11:56 am

I would suggest starting with the MJPEGViewer sample application. It demonstrates setting up the camera for video and rasterizing each frame to memory.

From there, I would suggest finding an image library that will save the image to a file. I would suggest http://libjpeg.sourceforge.net/. Then output JPEG images.

For creation of the video I would suggest downloading ffmpeg. It compiles images into a video very easily from the command line. https://www.ffmpeg.org/

Thx,
Doug

Post Reply