cancel
Showing results for 
Search instead for 
Did you mean: 

Encode video correctly

ShawnFeatherly
Explorer
I seem unable to properly encode a video for an Oculus store submission using VLC. 720p or 1080p I get back "Invalid aspect ratio". I scoured the guide at https://developer.oculus.com/distribute/asset-guidelines/#Trailer yet didn't find anything I was missing. Is there a way I can find out why my video is throwing that error? A copy of my video is at https://drive.google.com/file/d/1p7rIwLNrAhzmEhn4iyyFFGcUgjTwg2rt/view ( I know the video content isn't too good, the goal of this is to figure out the encoding settings)

Is there an FFMPEG command that is known to produce a video the store submission will accept?
1 ACCEPTED SOLUTION

Accepted Solutions

beep2bleep
Protege

Codec info.PNG

I found the original file that was accepted.  Here is the codec info.  I made it using Vegas (11 I believe) using the sony 1080p default output.  I can send the actual files output if needed.  The original was about 51mb for 31 seconds then Oculus processed it down from 1080p to 720p and the file was 4mb after processing.

 

Could also be black bars on the side, they might be auto detecting that.  I'd try zooming in the middle personally to see if that helps.

View solution in original post

12 REPLIES 12

ShawnFeatherly
Explorer

Still no luck. Sent an email to support and got a suggestion to try 29 FPS. I was unable to get VLC to reencode the video with a different framerate. So instead I did the following ffmpeg command to reencode the video at a 29.97 framerate:

.\ffmpeg.exe -i SingleStonePlay1080.mp4 -filter:v fps=29.97 SingleStonePlay1080ffmpeg29.mp4

 

The resulting video shows meta data of having an fps of 29.97, but still does not upload. It give the same error, “Invalid aspect ratio”. Here’s a copy of the video. https://drive.google.com/file/d/10croaDIhIvWVMWBYzxx_TLh0fyt-agqo/view?usp=sharing

beep2bleep
Protege

Looked at your video it might be encoded as 1080x1080 instead of as 1920x1080 couldn't entirely tell.  I looked at my own video that was accepted, H264 MPEG-4 AVC, 1280x720 Frame rate: 29.97, Orient Top left, Chrome Loc: Left.  Audio MPEG AAC Stereo 48000 Hz 32 Samples per bit.

ShawnFeatherly
Explorer

Thanks for sharing the meta data of your accepted video! I re-encoded mine to match more closely to yours.

.\ffmpeg.exe -i SingleStonePlay1080.mp4 -ar 48000 -vf scale=1280:720 SingleStonePlay720ffmpegNOT29fps.mp4

.\ffmpeg.exe -i SingleStonePlay720ffmpegNOT29fps.mp4 -filter:v fps=29.97  SingleStonePlay720ffmpeg29.mp4

 

ffmpeg's codec information, .\ffmpeg.exe -i SingleStonePlay720ffmpeg29.mp4 looked good. But still the same error when trying to upload the video to the Oculus Store Submission 😞

Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.45.100
Duration: 00:01:39.51, start: 0.000000, bitrate: 999 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 9:16 DAR 1:1], 993 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
Metadata:
handler_name : SoundHandler

beep2bleep
Protege

Codec info.PNG

I found the original file that was accepted.  Here is the codec info.  I made it using Vegas (11 I believe) using the sony 1080p default output.  I can send the actual files output if needed.  The original was about 51mb for 31 seconds then Oculus processed it down from 1080p to 720p and the file was 4mb after processing.

 

Could also be black bars on the side, they might be auto detecting that.  I'd try zooming in the middle personally to see if that helps.

Thanks again for more things to try!
1. Zoom in to remove the black bars
2. Try encoding with Vegas 11

 

I'm impressed with how cryptic it is to get a video uploaded. Looking into SideQuest seems more promising at this point. I'm sure I'll be coming back to try this again eventually. Hopefully the store submission page will get an update with better error messages by then.
Here's my video's info from VLC. For some reason it's info layout is different:

ShawnFeatherly_0-1615744600292.png

 

Your resolution is not 720p, it's 1280 x 738 instead of 1280x720, that might be it right there.

Could I try uploading your video file to my store page? I'd remove it, if it did work. That'd help me determine if it's the video file or a current bug with the store page.

Sure give me a place to send the videos and I'll send a few that likely will all work.

Thanks for all this help! I sent you a message on https://forums.oculusvr.com/t5/notes/privatenotespage to try and figure out where to put the videos.