https://github.com/vitroid/TrainScanner
It converts a regular video into a line scan style photo. It works by stitching together small chunks rather than 1px thin slices, so the background has a repetitive texture rather than being smooth horizontal stripes. But at lower resolutions, it looks similar, especially if you pick a spot with a clean background. Also the trains turn out very detailed.
Example work by Kakeyama from Japan using this: https://kakeyama.fan.coocan.jp/tec/e5e8r.htm