Depthmapping with FFMpeg and OpenCV

Depthmapping with FFMpeg and OpenCV

Depthmaps are typically greyscale images that represent how far an object is by the degree of shade.  They can be white-near, black-near, or some other color scale such as ironbar.  Depthmaps are useful for creating renders or systems that have a distance sensing need. In this post I’ll be using footage that I shot using 2 Innovv cameras.  The rig was not precise, so I also post processed it to correct distortion and alignment issues.  The post processing topic was…

Read More Read More

Creating Anaglyph Video with FFMpeg

Creating Anaglyph Video with FFMpeg

In this post, we’ll step through how to create anaglyphic stereoscopic videos using FFMpeg. To create anaglyph imaging, we’ll need to use two camera sources, one left, the other right. These sources will be merged into a single image with red cyan overlaying to create a three dimensional effect using red cyan glasses. I referenced these sites frequently. FFMpeg Documentation – https://ffmpeg.org/documentation.html FFMpeg Stereoscopic Details – https://trac.ffmpeg.org/wiki/Stereoscopic The source video I’ll be demonstrating was shot with two Innovv C1 dashboard…

Read More Read More

DeFish Effect with FFMpeg

DeFish Effect with FFMpeg

In this post, we’ll cover how to use FFMpeg to removed the radial effects of a fish eye lens. This distortion is a trade off of wide angle lenses. The wider view also included bends and bows to objects that are in nature straight. FFMpeg has a filter known as “lenscorrection” that will remove most of this distortion, lets begin. As always, split out a segment so you don’t waste time processing excessive amounts of data. ffmpeg -ss 00:00:39 -i…

Read More Read More