This is a simple video/audio syncronized player, showing how to use ffmpeg.
- Windows Mingw64 (msys2)
Seelocal_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
Seelocal_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
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