Skip to content

🚧 Streaming video to Raylib in VR format, using libmpeg2 to decode. 🚧 The end goal is to stream my PC desktop to mobile VR with ffmpeg, in a 3D virtual env.

License

Notifications You must be signed in to change notification settings

kaandesu/vr-raylib-libmpeg2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vr-raylib-libmpeg2

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

Project Setup for macOS and Linux

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)

Prerequisites

macOS

  1. Install Homebrew (if not already installed):

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install Dependencies:

    brew install libmpeg2 raylib

Linux

  1. Install Dependencies (Debian-based distributions):

    sudo apt update
    sudo apt install build-essential libmpeg2-4-dev libgl1-mesa-dev libraylib-dev pkg-config

Setting Up the Project

  1. Clone the Repository (replace with your repository URL):

    git clone https://github.com/kaandesu/vr-raylib-libmpeg2
    cd vr-raylib-libmpeg2
  2. Compile the Project:

    make
  3. Compile and run the application:

    make run

Notes

  • 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

Troubleshooting

  • 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.

About

🚧 Streaming video to Raylib in VR format, using libmpeg2 to decode. 🚧 The end goal is to stream my PC desktop to mobile VR with ffmpeg, in a 3D virtual env.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published