360 Video: Splash to Youtube via pano2VR: Use ffmpeg to split video 3×2 cube faces “Splash” App into lossless TIF

360 Video: Splash to Youtube via pano2VR: Use ffmpeg to split video 3×2 cube faces  “Splash” App into lossless TIF

LAYOUT:
FRONT: BACK: TOP
BOTTOM: LEFT: RIGHT

front:
ffmpeg -i in.mp4 -pix_fmt rgb24 -filter:v “crop=in_w/3:in_h/2:0:0” -c:a copy front%05d.tif

bottom:
ffmpeg -i in.mp4 -pix_fmt rgb24 -filter:v “crop=in_w/3:in_h/2:0:in_h/2” -c:a copy bottom%05d.tif

back:
ffmpeg -i in.mp4 -pix_fmt rgb24 -filter:v “crop=in_w/3:in_h/2:in_w/3:0” -c:a copy back%05d.tif

left:
ffmpeg -i in.mp4 -pix_fmt rgb24 -filter:v “crop=in_w/3:in_h/2:in_w/3:in_h/2” -c:a copy left%05d.tif

top:
ffmpeg -i in.mp4 -pix_fmt rgb24 -filter:v “crop=in_w/3:in_h/2:in_w/3 + in_w/3:0” -c:a copy top%05d.tif

right:
ffmpeg -i in.mp4 -pix_fmt rgb24 -filter:v “crop=in_w/3:in_h/2:in_w/3 + in_w/3:in_h/2” -c:a copy right%05d.tif

—–
now I somehow I have to move them to a vertical strip.  Might use imagemagick or ffmpeg… hm.

front
right
back
left
top
bottom

 

going to try:

ffmpeg -i front%05d.tif -i right%05d.tif -i back%05d.tif -i left%05d.tif -i top%05d.tif -i bottom%05d.tif -filter_complex vstack stacked%05d.tif

probably won’t work but i’ll try it.


ok.  It stacked the 1st two.  So, I’ll do two at a time:
1)
ffmpeg -i front%05d.tif -i right%05d.tif -filter_complex vstack 1_stacked%05d.tif

2)
check.

3)
If it works, then
del front*.tif
del right*.tif

4)
ffmpeg -i 1_stacked%05d.tif -i back%05d.tif -filter_complex vstack 2_stacked%05d.tif

5)
check

6) if it works,
del 1_stacked*.tif
del back*.tif

7)

ffmpeg -i 2_stacked%05d.tif -i left%05d.tif -filter_complex vstack 3_stacked%05d.tif

8)
check

9) if it works,
del 2_stacked*.tif
del left*.tif

 

10)

ffmpeg -i 3_stacked%05d.tif -i top%05d.tif -filter_complex vstack 4_stacked%05d.tif

 

11)

check

 

12) if works,
del 3_stacked*.tif
del top*.tif

13)

ffmpeg -i 4_stacked%05d.tif -i bottom%05d.tif  -filter_complex vstack 5_stacked%05d.tif

 

14)
check

15) if works,
del 4_stacked*.tif
del bottom*.tif

 

and I should end up with properly vertically stacked strips for pano conversion.

—–
YES! IT STACKED!
now to try the pano2vr again.

—–

 

 

Leave a comment

Your email address will not be published. Required fields are marked *


8 × four =

Leave a Reply