SpatialPlayer icon indicating copy to clipboard operation
SpatialPlayer copied to clipboard

how to play the side by side video to spatial

Open code-savior opened this issue 1 year ago • 5 comments

do you have any ideas, thank you:)

code-savior avatar May 06 '24 03:05 code-savior

Because this player is designed for MV-HEVC playback, you'd need to convert the side-by-side media to MV-HEVC before trying to play it. You can use my free spatial tool or any of the tools listed at the bottom of that page.

mikeswanson avatar May 06 '24 04:05 mikeswanson

I found this thread Do you know how to let AVPlayer outputs video frames to the DrawableQueue.

makhocheung avatar Aug 16 '24 12:08 makhocheung

I found a better solution here

makhocheung avatar Aug 16 '24 13:08 makhocheung

@makhocheung did you get SBS video to work on your side? I am trying to do the same thing.

somesaba avatar Aug 17 '24 21:08 somesaba

@makhocheung did you get SBS video to work on your side? I am trying to do the same thing.

Hello. After I did a research, I found a solution. As I mentioned before, we can let AVPlayer output video frames to the DrawableQueue. Before putting video frames to DrawableQueue, we need two DrawableQueues to drive video frames to left eye ShaderGraphMaterial and right eye ShaderGraphMaterial, then we can split a video frame into a left video frame and a right video frame, and then respectively put them to the left DrawableQueue and the right DrawableQueue.

makhocheung avatar Aug 18 '24 07:08 makhocheung