This project is about streaming video to Raylib in VR format, using libmpeg2 for decoding. The main goal is to stream the PC desktop to mobile VR in a 3D virtual environment. I might want to port the project to Odin, Zig, or Go in the future.
Important
vr-raylib-libmpeg2 is currently under development.
So far:
- Implemented video playback using Raylib and libmpeg2 to decode MPEG-2 video.
- Managed frame parsing and rendering at 60 FPS, converting video frames to RGB for display.
Current on-going tasks:
- entering the 3D mode and rendering the video texture on a plane
- adding the VR mode
This document outlines the steps to set up the development environment for the project on both macOS and Linux. (haven't tested on linux yet)
-
Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install Dependencies:
brew install libmpeg2 raylib
-
Install Dependencies (Debian-based distributions):
sudo apt update sudo apt install build-essential libmpeg2-4-dev libgl1-mesa-dev libraylib-dev pkg-config
-
Clone the Repository (replace with your repository URL):
git clone https://github.com/kaandesu/vr-raylib-libmpeg2 cd vr-raylib-libmpeg2
-
Compile the Project:
make
-
Compile and run the application:
make run
-
Ensure that
pkg-config
is installed on both macOS and Linux, as it is used to manage library compile and link flags. -
On macOS, make sure you have the Xcode command line tools installed:
xcode-select --install
- If you encounter issues with libraries not being found, double-check the installation paths and ensure that your environment variables are set correctly.
- For any errors related to compilation, consult the output logs for specific issues and verify that all dependencies are correctly installed.