sandsmark / linux-vr-player-or-something

Very simple VR video player using libmpv and openhmd.
14 stars 2 forks source link

Video playback from bottom and right is missing #1

Open archwario opened 3 years ago

archwario commented 3 years ago

Hello and thank you for this awesome program! I have been wishing for something like this to use on Linux for a long time. I am using a Lenovo Explorer with openhmd to play videos with this and I love how fast it is. I have an issue where the video is missing from the bottom of the playback and from the right side. I'm attaching a couple screenshots and used the youtube example from the readme to create them.

output from playing video bottom missing: Screenshot_20210116_162619

output from playing video right side missing: Screenshot_20210117_224112

The offset between the eyes, if that is the correct term, is off when playing the youtube video but other local files I have work just fine. It makes it look like double vision in my headset.

$ ohmdplayer https://www.youtube.com/watch?v=dUG5jURDWXQ starting ohmd thread [II] 045e:0659 0006:0004:02

[II] opening

[II] Read 10180-byte config data

[II] Model name: Lenovo Explorer

[EE] Found display height 1440

[EE] Found display width 2880

Microsoft HoloLens Sensors 2880 1440 viewport scale 1 0.051906 viewport scale 2 0.051905 dist coeff 1 0 Warp 0.0315 sep 0.063 0.025953 0.025953 [EE] unknown message type: 2 =============== QShowEvent(Show, 0x7ffff7188fb0) init gl not done yet during init 144 QSize(2560, 1440) during init 59.9506 QSize(2560, 1440) during init 90.0002 QSize(2880, 1440) Cannot load libcuda.so.1 (+) Video --vid=1 () (vp9 3840x2160 30.000fps) (+) Audio --aid=1 --alang=eng () (opus 2ch 48000Hz) [ffmpeg] AVHWDeviceContext: Cannot load libcuda.so.1 [ffmpeg] AVHWDeviceContext: Could not dynamically load CUDA Failed to open VDPAU backend libvdpau_radeonsi.so: cannot open shared object file: No such file or directory [ffmpeg/video] vp9_v4l2m2m: Could not find a valid device [ffmpeg/video] vp9_v4l2m2m: can't configure decoder Could not open codec. AO: [pulse] 48000Hz stereo 2ch float VO: [libmpv] 3840x2160 yuv420p AV: 00:02:08 / 00:02:52 (74%) A-V: 0.000 Cache: 21s/47MB Video: no video Saving state.

sandsmark commented 3 years ago

hmm, probably because I'm just using a cube to map out the video, should be a sphere I guess (what it is doing is just rendering the video on a cube, and then two render passes from two different perspectives, ish).

I think what this really should be doing is rendering in two passes using shaders, one just to "unpack" and then one for each eye.