New To The Forum? Click Here To Read The How To Guide. -- Developers Click Here.

Self-recorded 360 deg video playback horribly choppy inside Rift

sumdevilsumdevil Posts: 23
Brain Burst
My daughter has wanted a 360 degree camera from the first time she put on the Rift because she wanted to capture the whole memory of something and then relive it.  She saved money for over a year and finally got one (the Madv Madventure).  It works great for what she wants, in that it does take good 360 video, and she can play it on any PC we have and look around with the mouse and see everything, and it plays great.

However, when she gets in the Oculus and tries to play the video with "Oculus video", it is incredibly stuttery, choppy, and just generally unviewable.

Watching any other videos in Oculus Video work fine.
Watching her videos while not in the Oculus (using just a mouse to look around) work fine.

Are there any suggestions for things I can try so that her recorded videos play smoothly and normally while in the Rift?

thanks

Comments

  • LZoltowskiLZoltowski Posts: 6,350 Volunteer Moderator
    What bitrate is the video? It could be too high.
    Core i7-7700k @ 4.9 Ghz | 32 GB DDR4 Corsair Vengeance @ 3000Mhz | 2x 1TB Samsung Evo | 2x 4GB WD Black
    ASUS MAXIMUS IX HERO | MSI AERO GTX 1080 OC @ 2000Mhz | Corsair Carbide Series 400C White (RGB FTW!) 

    Be kind to one another :)
  • sumdevilsumdevil Posts: 23
    Brain Burst
    edited September 11
    Would that info be available in Windows by looking at the properties of the video file?

    I know she hasn't adjusted the default settings, and I can only find "4k" as the description of what kind of video it takes.

    I don't know if she post-processes the videos at all and might be able to adjust the bitrate there.
  • LZoltowskiLZoltowski Posts: 6,350 Volunteer Moderator
    Just found Oculus Video recommended specification, this applies to submissions but should be of relevance here:

    The following are the recommended specifications for videos hosted on Oculus Video.

    • Container: MP4

      • Enable Fast Start
    • Video Codec: H.264

      • Progressive scan

      • Key frame distance: 2 seconds (2 x frame rate—e.g., 60 for 30 fps content)

    • Resolution: 4K to 6K

      • Recommended resolutions:

        • Monoscopic 360:

          • 3840 x 1920 (4K)

          • Up to 6144 x 3072* (6K)

        • Stereo 360:

          • 3840 x 3840* (4K)

          • Up to 6144 x 6144* (6K)

        • * These resolutions are out of the standard h.264 profile/level specifications, but are supported when uploaded to Facebook. See “Encoding 6K video for Facebook” below for encoding tips

      • We recommend a 2:1 (1:1 for stereo) aspect ratio, but others are supported (e.g., 3840 x 2160, which is 16:9).

      • If you are uploading large 6K videos (or file size is greater than 5GB), please notify us in advance so our team can help you process the video.

    • Frame Rate: 30 or 60 fps

    • Bit Rate:

      • 4K: 40-60 megabits/sec, or 300-450 MB/min

      • 6K: up to 133 megabits/sec, or 1 GB/min

    • Pixel Format: yuv420p

    • Color: Full range (0-255)

    • Projection Format: Equirectangular

    • Audio: MP3 or AAC audio, at 128 kbps or higher (for stereo audio; see Spatial audio support, below, for more information)

    • Spatial Media Metadata: 360 videos require spatial media metadata in order to be processed correctly when uploaded. Here are some useful tools for injecting metadata:

    • Marketing Metadata: When uploading the video to Facebook, please also add a title for the video and upload a custom thumbnail (at least 1280x720) in the upload dialog box.

    Core i7-7700k @ 4.9 Ghz | 32 GB DDR4 Corsair Vengeance @ 3000Mhz | 2x 1TB Samsung Evo | 2x 4GB WD Black
    ASUS MAXIMUS IX HERO | MSI AERO GTX 1080 OC @ 2000Mhz | Corsair Carbide Series 400C White (RGB FTW!) 

    Be kind to one another :)
  • LZoltowskiLZoltowski Posts: 6,350 Volunteer Moderator
    Have a look at the specs above, yeah you should be able to right click on a video and go properties, then the details tab.
    Core i7-7700k @ 4.9 Ghz | 32 GB DDR4 Corsair Vengeance @ 3000Mhz | 2x 1TB Samsung Evo | 2x 4GB WD Black
    ASUS MAXIMUS IX HERO | MSI AERO GTX 1080 OC @ 2000Mhz | Corsair Carbide Series 400C White (RGB FTW!) 

    Be kind to one another :)
  • sumdevilsumdevil Posts: 23
    Brain Burst
    I'm not sure the technical level that the camera allows you to dive into, I'll have to get into it and see if any of those settings make sense.  Or it could also be something adjusted post-processing perhaps.  Thanks for all this detail, I'll see what I can find.

  • LZoltowskiLZoltowski Posts: 6,350 Volunteer Moderator
    Most likely you will have to re-encode the video in a video editor, something like Adobe premiere or Handbrake 
    Core i7-7700k @ 4.9 Ghz | 32 GB DDR4 Corsair Vengeance @ 3000Mhz | 2x 1TB Samsung Evo | 2x 4GB WD Black
    ASUS MAXIMUS IX HERO | MSI AERO GTX 1080 OC @ 2000Mhz | Corsair Carbide Series 400C White (RGB FTW!) 

    Be kind to one another :)
  • sumdevilsumdevil Posts: 23
    Brain Burst
    Ok, thanks!  I'll post here if I figure anything out.
  • kojackkojack Posts: 4,583 Volunteer Moderator
    I have a Xiaomi Mi Sphere (the same camera as the Madventure, just black case instead of orange. Same hardware and same software).
    I haven't done much with it, but the default video output (after converting to a panorama using their software) is 3456 x 1728 at 30Hz with a bitrate of 42,808kbps. It plays fine in Oculus Video.

    My first guess would be that your computer is on the borderline of performance, where it's fast enough to play the video fine on the desktop, but just below the level needed to play it in VR (which is more intense).

    (It's a great little camera, but it's strange having to hide behind things when I take a photo so I don't appear in the shot) :)

  • sumdevilsumdevil Posts: 23
    Brain Burst
    That must require a heck of a PC then, because my machine doesn't really struggle with any VR games.  Of course, it has a 1070 card which helps, but probably doesn't help in this case.  I can check the CPU usage next time we try the video.

    If it really is poor performance, then why would it play all of the other videos in Oculus Video just fine?

  • LZoltowskiLZoltowski Posts: 6,350 Volunteer Moderator
    1070 looks plenty, the video playback is hardware accelerated through the GPU, I think its just the video is not encoded right, double check everything, is she post-processing it in any way?
    Core i7-7700k @ 4.9 Ghz | 32 GB DDR4 Corsair Vengeance @ 3000Mhz | 2x 1TB Samsung Evo | 2x 4GB WD Black
    ASUS MAXIMUS IX HERO | MSI AERO GTX 1080 OC @ 2000Mhz | Corsair Carbide Series 400C White (RGB FTW!) 

    Be kind to one another :)
  • sumdevilsumdevil Posts: 23
    Brain Burst
    Other than running it through the stitching software, no.  I asked her if there were any adjustable settings when doing that, and she said that there were, but I haven't had a chance to go see what they are yet.  It does sound like the format (she mentioned mpeg4) could be selected there.
  • LZoltowskiLZoltowski Posts: 6,350 Volunteer Moderator
    edited September 11
    Yes mp4 format is hardware accelerated, meaning its playback is done by the GPU, that is why its recommended. 
    Core i7-7700k @ 4.9 Ghz | 32 GB DDR4 Corsair Vengeance @ 3000Mhz | 2x 1TB Samsung Evo | 2x 4GB WD Black
    ASUS MAXIMUS IX HERO | MSI AERO GTX 1080 OC @ 2000Mhz | Corsair Carbide Series 400C White (RGB FTW!) 

    Be kind to one another :)
  • sumdevilsumdevil Posts: 23
    Brain Burst
    edited September 11
    So I found a video on how to use the stitching software, and there is a checkbox for MPEG4 encoding.  So I had my daughter take a new video and stitch it with that selected.  She did so and went to watch it in the Oculus and it is still very stuttery and plays slower than normal.

    When I can get there, I'll check the movie file properties for any interesting info it might have in there, and I'll also try to check the CPU usage while viewing.  If the CPU is maxed, it probably indicates that the GPU is somehow not working right (and thus, somehow, the MP4 encoding is not correct).

  • sumdevilsumdevil Posts: 23
    Brain Burst
    Ok, so I finally had a chance to check it out.

    I right clicked on the 360 video and saw this info in the details:

    Frame width:  3840
    Frame height: 1920
    Data rate: 52956kbps
    Total bitrate: 53084 kbps
    Frame rate:  29.99

    I then pulled up the Task Manager and watched two videos...one she had taken, and the Oculus Videos thing on the Parker Solar Probe launch (which was completely awesome).

    When the Oculus video was playing, I noted that the CPU speed hung out at around 80 to 90 percent, and that the GPU had risen from about 13 to 21 and stayed there.  When her video was playing, the CPU pegged at 100% and never moved, and the GPU either stayed where it was or rose up to maybe 17%.

    So I'd say the stuttering is definitely because the CPU is being maxed out, possibly because GPU acceleration isn't happening.

    Any suggestions on how to fix that?

  • LZoltowskiLZoltowski Posts: 6,350 Volunteer Moderator
    Is there any way you could upload the video to somewhere like google drive? and DM me the link so I can have a quick peek? 
    Core i7-7700k @ 4.9 Ghz | 32 GB DDR4 Corsair Vengeance @ 3000Mhz | 2x 1TB Samsung Evo | 2x 4GB WD Black
    ASUS MAXIMUS IX HERO | MSI AERO GTX 1080 OC @ 2000Mhz | Corsair Carbide Series 400C White (RGB FTW!) 

    Be kind to one another :)
  • sumdevilsumdevil Posts: 23
    Brain Burst
    I'll work on that tonight.  Thanks for the offer, that would certainly narrow down the file vs. the computer.
  • kickassretardkickassretard Posts: 24
    Brain Burst
    It does sound like the gpu decoding isn't kicking in. I don't know how Oculus video chooses it's decoder but can you try installing lav filters and go to settings and make sure the video decoder is set to one of the hardware modes? It could be that oculus video will then use lav with gpu decode.
  • sumdevilsumdevil Posts: 23
    Brain Burst
    Just as a conclusion, @LZoltowski helped me a lot.  The solution was to use the SkyVR player instead.  Using that, I saw that the GPU performance went up to about 30% while viewing the video and it was completely smooth.  Using the Oculus Video player, the GPU sat at around 17% and was pretty much unviewable.

    Much thanks for all the help from everyone.  My daughter is once again happy she bought the 360 deg camera.
Sign In or Register to comment.