r/StableDiffusion • • 19h ago

Workflow Included Turn 2D videos into 3D stereoscopic videos, via SHARP Gaussian Splatting

Forked off of the SHARP Gaussian Stereo Preview feature by @aromatic-Somewhere29 because I was impressed with the quality of the stereoscopy with the still images and wanted to leverage this and actually convert whole videos: https://www.reddit.com/r/StableDiffusion/comments/1y64yol/view_images_in_stereoscopic_3d_directly_in/

Here is the GitHub repo: https://github.com/jerg-git/ComfyUI-SHARP-VR-Video

You can also find it in comfyui custom nodes (search sharp VR video).

Sample workflow (needs VHS video suite too): https://github.com/jerg-git/ComfyUI-SHARP-VR-Video/blob/main/workflow/sharp-vr-video-batch-audio-sample.json

KEY FUNCTIONALITIES AS OF V0.1.5:

  • Virtual camera controls — Adjust inward dolly, horizontal orbit and vertical orbit to reframe the reconstructed 3D scene.
  • Camera animations — Independently animate all three camera axes using multiple motion patterns, smooth ease-in/out transitions and precise target values.
  • Long-video support — VHS Meta Batch integration significantly reduces peak RAM usage by processing videos in manageable chunks.
  • Continuous animation across batches — Camera motion spans the entire video rather than restarting with each chunk.
  • Automatic queue protection — Built-in QuietNoise Queue Manager compatibility prevents recognized Meta Batch continuations from being interrupted by prefetched jobs.
  • Automatic audio passthrough — Preserves source audio, respects video trimming and handles silent videos without requiring manual audio connections.
  • Automatic FPS passthrough — Preserves source or selected playback frame rate without manual configuration.
  • Flexible video sourcing — Supports VHS Upload and Path loaders, Impact Switch source selection and external text-based file paths.
  • Cross-eyed / Freeview preset — Enables stereoscopic viewing without a VR headset.
  • Improved UI and workflow usability — Dropdown selectors, context-sensitive animation controls, camera reset and an updated sample workflow.

Overall: Evolved from a basic stereoscopic video converter into a more complete, memory-efficient, queue-friendly VR video production tool with creative camera control and automated video/audio handling.

Visual output quality / 3D effect is excellent. Great in VR headset. Conversion speed is about 2sec/frame for 800p input video on my 5080.

Attached video is a sample 3D conversion from a random portion I clipped from this other thread (https://www.reddit.com/r/StableDiffusion/comments/1y5y22g/pure_cinema_music_videocinematic_stills_lora_for/). Ideally viewed with a VR headset, if not, then you can try the cross-eye trick.

Have fun!

58 Upvotes

26 comments sorted by

3

u/Aromatic-Somewhere29 18h ago

This turned out really great! I think this is an excellent new direction for using Gaussian splatting and stereoscopic viewing. Taking it beyond individual images and applying it to entire videos opens up some really interesting possibilities.

It's great to see you take the idea and turn it into a standalone project. Really nice work!

5

u/Jerg 18h ago

Thanks! When I tested your feature I noticed that 1) it was really fast to process a single image, 2) the output 3d scene was very high fidelity when viewed straight on, 3) it was pretty janky when off-axis. So that gave me the idea to just hijack this purely for re-generating back to raster flat stereoscopic images across hundreds of frames of videos.

And thankfully it actually is very deterministic meaning frame-to-frame temporal continuity for videos is excellent.

Whodathought!

2

u/enndeeee 15h ago

Which performance did you achieve? Like how much fps on which hardware?

1

u/Jerg 11h ago

I mentioned in the OP. 2sec/frame of 800p videos with my 5080. It needs to generate a 3d Gaussian splat render for every frame and then take a pair of stereoscopic snapshots, so it'll never be blazing fast. That said this method is indeed based on true 3d geometry reconstruction and is the high quality I've seen.

2

u/noLOOPai 16h ago

What ere the limitations in video duration and resolution?

2

u/Jerg 11h ago

Not sure, so far I've tested up to 40 second videos at 800p. Probably main limitation is comfyui's ability for video input?

1

u/noLOOPai 10h ago

Well you can bypass the limitations for importing by using a path import node.

1

u/Jerg 10h ago

True! Feel free to try this out and share if you hit any limits. In my testing last night I didn't see any Ram or vram creep over time.

1

u/Jerg 8h ago

Update - actually we might also be able to completely bypass even RAM limits by using VHS's meta batch manager node (which chunks batches of frames from input videos)! Lemme incorporate that to the sample workflow.

In theory this should allow for any video length. Will do some testing.

1

u/Jerg 9h ago

Update: I pushed 2 updates since last evening (latest now is v0.1.2).

  • Inward camera dolly (0–0.4 m; recommend no more than +0.05 m dolly-in to minimize artifacting).
  • Horizontal and vertical orbit (±10°; recommend no more than +/-1 degree orbiting to minimize artifacting).
  • Option to do animated dolly and two-axis orbit, with automatic easing.
  • Automatic optional audio extraction and FPS matching.

Personally I think the animated dolly and orbiting work great as long as they are kept low (0.05m, 1degree, mayyybe can go a bit higher), and leans on the advantage of gaussian splatting constructing the actual scene frame by frame.

1

u/Jerg 6h ago

Major update (v0.1.5)

  • In addition to dolly/orbit animations, this now supports CONVERTING MUCH LONGER VIDEOS without overloading your RAM, by integrating more tightly to VHS's metabatch capability (which breaks up videos into chunks of frames and pieces them together at the end).
  • Still works great with videos with audio, and also is compatible with dolly/orbit animations
  • It'll also work well even if you queue up many videos in your queue (apparently VHS metabatch has always had a conflict with ComfyUI Queue Manager, well, this solves it for this).
  • Also added cross-eye preset for sterescopy settings that will work properly by crossing your eyes. cc @RewardSafe9807

1

u/Jerg 2h ago

UPDATE: V0.2.0 is 4-5x faster! I implemented multiple rounds of optimizations this afternoon. It's also more robust for longer videos. Quality is essentially identical still.

See new thread: https://www.reddit.com/r/StableDiffusion/comments/1y778k4/sharp_vr_video_v020_4x_faster_2d_to_3d/

1

u/Radiant-Photograph46 13h ago

Will it still work with single images as well?

1

u/Jerg 11h ago

Ya just use the workflow but swap out the video input and video output nodes with image in/out nodes instead it should work.

1

u/Radiant-Photograph46 9h ago

Quick thought, could you add an option to output as red-cyan anaglyph? Shouldn't be too difficult with a hue filter and overlaying both eyes.

1

u/Jerg 8h ago

Feel free to vibe-code something and add a PR for it! for now I mainly want to keep my focus supporting VR headset-capable video output since that's the dominant (and best quality) 3D viewing experience by far.

1

u/RewardSafe9807 9h ago

hmm, i tried the magic eye unfocus my eyes method and the cross-eye method and i cant seem to get a proper 3d effect. i might be doing it wrong but in theory it should work. unless its only giving enough data to create the faux 3d effect that 3d conversion typically applies so it could be viewed in Photon from the Meta store or something and I'm misunderstanding.

1

u/Jerg 8h ago

It's because the current default settings are optimized for VR headset viewing, which has a much different convergence dynamic than the cross-eyed trick method.

Try this custom setting instead:

  • stereo preset: legacy / viewer controls
  • projection mode: legacy / toe-in (or legacy / parallel for lesser 3D effect but less artifacts)
  • stereo intensity: -40% (this is key because cross-eye flips the stereo, so needs to be negative value)
  • everything else default.

LMK how well this works! ill also add this as another preset.

1

u/MrLegz 2h ago

Cool Stuff! I added it to my free 2D-3D conversion app "Stereo3DStudio", as an experimental mode. I added your credits as well. Let me know what you think, Thanks!

https://github.com/drewmedina55-ux/Stereo3DStudio

1

u/Jerg 2h ago

2

u/MrLegz 41m ago

I just posted an updated build based on your changes (not your code but the concept, License diff). It's faster! Here is a conversion at 720p, took 15 min. *Should look sharp, but Reddit sometimes shows it low quality.

1

u/Jerg 26m ago

Nice to hear! What gpu do you use / time per frame was the conversion?

•

u/MrLegz 4m ago

I have a 5080 16GB 32GB ram. It was about 0.8 frames a sec

1

u/MrLegz 2h ago

I will! Thanks

1

u/MrLegz 17h ago

This is great! Thank you!