Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yurisizuku/demo-sdlplayer
A simple video/audio syncronized player, showing how to use ffmpeg.
https://github.com/yurisizuku/demo-sdlplayer
demo
Last synced: 6 days ago
JSON representation
A simple video/audio syncronized player, showing how to use ffmpeg.
- Host: GitHub
- URL: https://github.com/yurisizuku/demo-sdlplayer
- Owner: YuriSizuku
- Created: 2023-03-19T17:15:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-03-19T17:52:43.000Z (over 1 year ago)
- Last Synced: 2024-11-10T12:14:58.719Z (6 days ago)
- Topics: demo
- Language: C
- Homepage:
- Size: 113 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# SDL Player
This is a simple video/audio syncronized player, showing how to use ffmpeg.
![test](screenshot/test.jpg)
## Build
- Windows Mingw64 (msys2)
See `local_mingw64.sh` in detail, must use msys2 shell to compile ffmpeg.``` shell
pacman -Syu --noconfirm
pacman -S --noconfirm make tar vim curl wget
pacman -S --noconfirm mingw-w64-x86_64-binutils mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb
cd script && sh ./local_mingw64.sh
```- Linux Mingw64
This might cause some problems in ffmpeg.``` shell
sudo apt-get -y update
sudo apt-get -y install make tar vim curl wget
sudo apt-get -y install mingw-w64
cd script && bash -c "export SKIP_PORTS=yes && ./local_mingw64.sh"
```- Linux x64
See `local_linux64.sh` in detail.``` shell
sudo apt-get -y update
sudo apt-get -y install make tar vim curl wget
sudo apt-get -y install build-essential
cd script && bash ./local_linux64.sh
```## Usage
Drag or use command `sdl_player xxx.mp4`
(Also use `sh -c "script/run_mingw64.sh xxx.mp4"` if not copying required ffmpeg dll to the target)Press `SPACE` to pause
Press `R` to restart
Press `ESC` to quit