A portable video player based on ffmpeg for windows and android platform.
It is a simple and light weight player implemention without SDL or other third party library. player core codes are written in C language, KISS and easy to read.
It directly access to video and audio rendering device on specific platforms. on win32 playform, using gdi & direct3d api implements video rendering, using waveout api implements audio rendering. on android platform, using AudioTrack and ANativeWindow api for audio and video rendering.
Currently, this player can smoothly playback many video files, with low cpu and memory usage (compared with ffplay of offical ffmpeg), high performance, compatibility and stability, and the audio/video also synchronized very well.
- low memory and cpu usage
- audio/video synchronized very well
- gdi and direct3d rendering on win32 platform
- support variable speed playback 1% to 100%, 200% ..
- waveform and spectrum visual effect
- support stream selection
- support network media stream playback
- support dshow, gdigrab and vfwcap (avdevice of ffmpeg)
- take video snapshot, support save into jpeg and png
- very fast (async) seek operation taking 0ms delay
- support video rotation by ffmpeg avfilter
- support step seek forward/backward operation
- mediacodec hardware decoding on android
- dxva2 hardware acceleration on windows
- rotation for direct3d video rendering
- support auto-reconnect for live stream playing
- support avkcp and ffrdp protocol
- support overlay for win32 platform
- support drag mouse right button to select area zoom
testplayer is a simple test player for fanplayer
hot-keys for testplayer:
ctrl+O - open file
ctrl+E - switch visual effect
ctrl+M - switch between letter box and stretch rect
ctrl+R - switch between gdi and d3d
ctrl+A - switch audio stream
ctrl+V - switch video stream
ctrl+S - take a snapshot of video
ctrl+F - step seek forward
ctrl+B - step seek backward
ctrl+up - play speed up
ctrl+down - play speed down
ctrl+T - switch speed type
ctrl+X - rotate video (only for d3d rendering mode)
ctrl+C - record current playing media to record.mp4 file
ctrl+W - set window size to video size
ctrl+D - display video definition
ctrl+0 - restore zoom
want to learn more?
want to learn more about fanplayer, please visit our wiki.
contact and discuss
email : firstname.lastname@example.org
qq group: 383930765