3d-video

Ʌ: Tech

180 -> 360 video

using ffmpeg1:

ffmpeg -i input.mp4 -vf "[in] split [in_l][in_r];[in_l] pad=4*iw:ih:iw/2:0 [right]; [in_r] pad=2*iw:ih:iw/2:0 [left]; [left][right] overlay=main_w/2:0 [out]"  -c:v libx264 -preset medium -crf 23 -acodec copy output.mp4

or with vertical padding:

export PADDING=800 #px
ffmpeg -i input.mp4 -vf "[in] split [in_l][in_r];[in_l] pad=4*iw:ih+$PADDING:iw/2:$(( PADDING/2 )) [right]; [in_r] pad=2*iw:ih+$PADDING:iw/2:$(( PADDING/2 )) [left]; [left][right] overlay=main_w/2:0 [out]"  -c:v libx264 -preset medium -crf 23 -acodec copy output.mp4

Getting VLC to recognize 360 video as such:

Inject spherical video metadata using https://github.com/google/spatial-media/tree/master/spatialmedia[^src_sm] 🌐