Forum Discussion
nuanda
11 years agoHonored Guest
creating a stereo 3d video file
Hi guys, i just figure out how to stitch 360 videos with ptgui+videostitch, now next sterp is to obtain something suitable for my oculus. I would like to obtain something like this guy in the video ( https://www.youtube.com/watch?v=lhqejC0KoeQ ), i mean i have left eye video and right eye video and i would join them together to being watched on my oculus. I know that people uses adobe after effects, but imho, the results are very far from the video i just posted.
Can anyone help me?
thank you guys
Can anyone help me?
thank you guys
6 Replies
- BrendanWHonored Guestnuanda,
You and I are doing the very same thing.
I have just recently created my own Stereoscopic 3D 360 Video Player for the DK1, and its a lot of fun. I wrote my application in AS3 using the Oculus Adobe Native Extension with the Away3D integration, provided by some great people over on GitHub https://github.com/jonathanhart/oculus-ane
My apps can view Regular 360 & Stereo 3D 360 photos and videos in the Rift.
As far as performance goes, doing 360 videos, especially Stereo 3D 360 videos in the Rift is pretty demanding because your app needs to maintain 60 fps while the video(s) also still have to playback at least at 30 fps. Video resolution is a major factor that will affect performance. I have found that 360 videos down sampled to 1024 x 512 playback flawlessly in the Rift and maintain overall 60 fps. Even when playing back separate Left Eye and Right Eye MP4s my app stays at 60 fps. However when I bump up the video resolutions to 2048 x 1024, my app drops to about 15 fps. I am using a pretty good desktop pc, (i7-4770, GTX 760). I could probably get better performance if I built my Oculus 360 Video Players in Unity or Unreal, but I haven't had the time to learn those IDEs yet. The only way I was able to get this to work in Away3D was to use this method for video textures: http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=4&subindex=3&aid=331
Away3D's built in video texture kept giving me issues so I had to resort to the method used above, which actually performs better.
I would love to share my Stereo 3D 360 videos with the Oculus community, but I don't know if Oculus Share would accept AIR applications.
Basically a panorama viewer for the Oculus is setup by creating a sphere around the camera and texturing the video to the sphere. For 360 photos I use a cube built of plane meshes, textures are 2048 x 2048 each. The camera has to be at the exact center of the sphere or cube. Also set the sphere's scale X to -1 so that it inverts the sphere so you don't have to flip your pano horizontally in post. For stereo 3D applications you have to create separate views for each camera, and add a left sphere/cube to the left view and a right sphere/cube to the right view so that you can control which texture(s) goes to which eye.
Feel free to ask if you have any other questions, I've been doing 360 videos for about 2 years now and have gotten really comfortable with the workflow. If I can't get my AIR apps on Oculus Share, I'll at least put up a YouTube clip showing the playback if anyone is interested.
Best,
BrendanW - KydDynoMyteHonored GuestYou probably already know this, I think that video you like was made by captain3d mentioned in this thread: viewtopic.php?f=26&t=654&hilit=lhqejC0KoeQ
You might find some useful info there.
Looks like he mentions he is using after effects in the comments section of his youtube videos."PC3DM1 year agoin reply to dementi36
I am starting with GoPro footage shot in wide mode. I take it into After Effects and apply the optics compensation filter at a value of 100. Then align the images for good stereo...I hope" - nuandaHonored GuestSomeone told me about FFMPEG, do u know something about this process?
- j1vvyHonored GuestThis is the bat file I use to concatenate Over/Under stereoscopic video.
@echo off
@echo Create side by side stereo panorama from
@echo Left: "%~1"
@echo Right: "%~2"
@echo Audio: "%~3"
set /P output= Enter a name for the output video:
if exist temp.mp4 delete temp.mp4
if not exist "%~3" goto :noaudio
echo Audio
"c:\Program Files\ffmpeg\bin\ffmpeg.exe" -i "%~1" -i "%~2" -i "%~3" -filter_complex "[0:v]setpts=PTS-STARTPTS, pad=iw:ih*2[leftview]; [1:v]setpts=PTS-STARTPTS[rightview]; [leftview][rightview]overlay=0:h" -acodec copy -metadata stereo_mode=top_bottom temp.mp4
goto :faststart
:noaudio
echo No Audio
"c:\Program Files\ffmpeg\bin\ffmpeg.exe" -i "%~1" -i "%~2" -filter_complex "[0:v]setpts=PTS-STARTPTS, pad=iw:ih*2[leftview]; [1:v]setpts=PTS-STARTPTS[rightview]; [leftview][rightview]overlay=0:h" -metadata stereo_mode=top_bottom temp.mp4
:faststart
"c:\Program Files\ffmpeg\bin\ffmpeg.exe" -i temp.mp4 -vcodec copy -movflags faststart %output%
:end
pause
rem - nuandaHonored Guest
"j1vvy" wrote:
This is the bat file I use to concatenate Over/Under stereoscopic video.@echo off
@echo Create side by side stereo panorama from
@echo Left: "%~1"
@echo Right: "%~2"
@echo Audio: "%~3"
set /P output= Enter a name for the output video:
if exist temp.mp4 delete temp.mp4
if not exist "%~3" goto :noaudio
echo Audio
"c:\Program Files\ffmpeg\bin\ffmpeg.exe" -i "%~1" -i "%~2" -i "%~3" -filter_complex "[0:v]setpts=PTS-STARTPTS, pad=iw:ih*2[leftview]; [1:v]setpts=PTS-STARTPTS[rightview]; [leftview][rightview]overlay=0:h" -acodec copy -metadata stereo_mode=top_bottom temp.mp4
goto :faststart
:noaudio
echo No Audio
"c:\Program Files\ffmpeg\bin\ffmpeg.exe" -i "%~1" -i "%~2" -filter_complex "[0:v]setpts=PTS-STARTPTS, pad=iw:ih*2[leftview]; [1:v]setpts=PTS-STARTPTS[rightview]; [leftview][rightview]overlay=0:h" -metadata stereo_mode=top_bottom temp.mp4
:faststart
"c:\Program Files\ffmpeg\bin\ffmpeg.exe" -i temp.mp4 -vcodec copy -movflags faststart %output%
:end
pause
rem
thanks man. I use thisffmpeg -i left.mp4 -vf "[in] pad=iw:2*ih [left]; movie=right.mp4 [right];[left][right] overlay=0:main_h/2 [out]" output.mp4
should work the same? Why choose over/under instead of side by side? - j1vvyHonored GuestI tend to try to have a final format that is closer to 4:3 or 16:9
For 360° video that is 2:1 in O/U results in 1:1
If I was to combine two vertical fisheye shot in 3:4 then I would use SxS resulting in 6:4 = 3:2
The resulting video fits my video monitor better.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 months ago
- 4 months ago
- 2 years ago