Skip to content

A simple video/audio syncronized player, showing how to use ffmpeg.

Notifications You must be signed in to change notification settings

YuriSizuku/demo-SdlPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL Player

This is a simple video/audio syncronized player, showing how to use ffmpeg.

test

Build

  • Windows Mingw64 (msys2)
    See local_mingw64.sh in detail, must use msys2 shell to compile ffmpeg.
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.
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.
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

About

A simple video/audio syncronized player, showing how to use ffmpeg.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published