https://github.com/kaandesu/raylib-basic-ffmpeg-video-edit-example
Play an input video decoded with libmpeg2, then render whatever you want, then record the texture back to a video format with ffmpeg.
https://github.com/kaandesu/raylib-basic-ffmpeg-video-edit-example
ffmpeg libmpeg2 mpeg2 raylib video-edit video-editor video-streaming
Last synced: 7 months ago
JSON representation
Play an input video decoded with libmpeg2, then render whatever you want, then record the texture back to a video format with ffmpeg.
- Host: GitHub
- URL: https://github.com/kaandesu/raylib-basic-ffmpeg-video-edit-example
- Owner: kaandesu
- License: mit
- Created: 2024-11-03T22:16:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-03T22:22:34.000Z (over 1 year ago)
- Last Synced: 2025-07-15T11:33:22.259Z (10 months ago)
- Topics: ffmpeg, libmpeg2, mpeg2, raylib, video-edit, video-editor, video-streaming
- Language: C
- Homepage:
- Size: 9.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## raylib-basic-ffmpeg-video-edit-example
Play an input video decoded with [libmpeg2](https://libmpeg2.sourceforge.io/), then render whatever you want, then record the texture back to a video format with ffmpeg.
### 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):
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
2. Install Dependencies:
```bash
brew install libmpeg2 raylib
```
#### Linux
1. Install Dependencies:
```bash
sudo apt update
sudo apt install build-essential libmpeg2-4-dev libgl1-mesa-dev libraylib-dev pkg-config
```
### Setting Up the Project
```bash
git clone https://github.com/kaandesu/raylib-mpeg2-examle
cd raylib-mpeg2-examle
make
# "make build" to only build without running
```
### 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:
```bash
xcode-select --install
```