Wednesday, November 29, 2023

converting flat video to fulldome

Leaving aside paid products like Adobe After Effects, for multiple videos on a fulldome frame, a good option would be OCVvid2fulldome

If we want to project a high resolution, say 4K flat-screen video onto the dome, OCVvid2fulldome v1.6 or above, with the following parameters works relatively well, except for some slight distortion at the bottom and top edges - 
#Outputw_pixels__=height
4096
#Output_fps
30
#Output_fourcc
XVID
#Number_of_input_videos_max_is_99
1
#Filename0
D:/Input/Filenm.avi
#vidlongi0
180
#vidlati0
76
#vidw0
270

Example images - 
Flat, 16x9

Using OCVvid2fulldome with 270 degrees coverage as above:


Another option is Natron, which has a G'MIC Distort filter for "Square to Circle" as referenced in this video. But Natron is prone to crashing for video to video conversions, image sequences seem to work OK. Also, Natron renders at something like 2 seconds per frame for 4K output, at least 4x slower than OCVvid2fulldome.

Square input - 


to Circle output - 

Natron troubleshooting notes:

im seq crashes were probably due to wrong way of entering filename?

im_%05d.jpg works well. Also need to check if the pre-multiplied value is correct, Opaque is fine for RGB video. Natron Tutorial | How to Render / Export / Write - YouTube

In the video link above, he has to re-render missing frames! and creating a proxy mov file at around the 13:00 minute mark.

troubleshooting premiere import - source settings, set the R, G, B.

Some frames randomly lo res!

Use precomp for large script if rendering fails!

saving script can overwrite a jpg!

To make a 16x9 video into a square video, padding with 1080 black border on top - does not look good - too small on the dome. Need to crop to square, so the sides are lost. 




No comments:

Post a Comment