Skip to content

Instantly share code, notes, and snippets.

@gpoole
Last active October 25, 2018 02:59
Show Gist options
  • Save gpoole/17d45a2d75f3f7333ad6f24736743461 to your computer and use it in GitHub Desktop.
Save gpoole/17d45a2d75f3f7333ad6f24736743461 to your computer and use it in GitHub Desktop.
Encode 360 videos for Oculus Go
#!/bin/bash
ffmpeg -i $1 -vf scale=3840:2160,setdar=16:9 -c:v libx265 -preset slow -crf 28 -strict -2 -an $2
# Faster seeking:
# -x265-params "keyint=5:min-keyint=5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment