Have the following in your system:
ffmpeg
Using ffmpeg, extract each frames into a jpeg
Using Sharp, processes each frame into stereogram by manually editing pixels
Using ffmpeg to stitch all the processed frames into the final video
https://www.youtube.com/watch?v=RLuGJGyCS90 my inspiration to take on this project https://www2.cs.sfu.ca/CourseCentral/414/li/material/refs/SIRDS-Computer-94.pdf https://github.com/tony-pizza/Stereogram.js/blob/master/README.md