• Deovr
  • Blog
  • Tutorial: Converting equirectangular VR footage into fisheye

Tutorial: Converting equirectangular VR footage into fisheye

Come join DeoVR team!
DeoVR is at the forefront of VR and expanding fast. Become part of our cutting-edge team today.
Join our team

There are many solutions for turning fisheye footage into equirectangular, but none when it comes to the reverse. We've created a tutorial that shows how to convert equirectangular footage into fisheye projection using FFmpeg. This has many advantages and uses, such as the ability to apply an alpha channel to your footage for passthrough and much more. 

First, you'll need to use FFmpeg. This is free open-source software, made up of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. The key element is the command-line ffmpeg tool itself. This is at the heart of FFmpeg, and allows you to process video and audio files. 

You'll need the mask8k.png file: available here for download

Convert equirectangular projection into fisheye: 

In this example, we will use 8K footage. 

The command to use is: 

ffmpeg -i input_side_by_side_180_video.mp4 -i mask8k.png -filter_complex "[0:v]split=2[left][right]; [left]crop=4000:4000:0:0[left_crop]; [right]crop=4000:4000:4000:0[right_crop]; [left_crop]v360=hequirect:fisheye:iv_fov=180:ih_fov=180:v_fov=180:h_fov=180[leftfisheye]; [right_crop]v360=hequirect:fisheye:iv_fov=180:ih_fov=180:v_fov=180:h_fov=180[rightfisheye]; [leftfisheye][rightfisheye]hstack[stacked]; [stacked][1:v]overlay=0:0" -c:a copy -crf 15 output_fisheye_video.mp4

Instructions: 

  • First, put your equirectangular video into an FFmpeg folder
  • In the command above, replace  input_side_by_side_180_video.mp4 with the actual name of your video.
  • In the command above, replace output_fisheye_video.mp4 with your chosen output name.

  • In the folder path bar, type "cmd" to run the command prompt from the folder
  • When the command prompt is open, copy and paste the above command and hit enter

Now you have perfect 180 SBS fisheye VR footage. 

Let's Connect
Read also:
There are many new VR headsets in development, each offering new features and specs that could greatly enhance your VR experience. When they are released you'll find full details about them in our ded...
DeoVR fully supports the new AV1 video format. This state-of-the-art codec provides improved visual quality and streaming efficiency, meaning a dramatic increase in quality. Our library is currently b...
Android XR is Google's new mixed-reality operating system designed to power the next generation of augmented reality (AR) and virtual reality (VR) devices. Here's everything you need to know.  ...
Over 22,800 videos for your VR headset.
Don’t miss out on new videos - log in now and subscribe