Ffplay is the FFmpeg project provides the player, the function is quite powerful, all ffmpeg supported the visual and audio format it basically supports. Even some streaming media not supported by VLC can be played (for example, rtmp), but its disadvantage is that it is not a graphical interface and must be operated by the keyboard. So this article describes its shortcut keys and options.
shortcut Keys
When playing video and audio files, you can control the playback of video and audio through the following keys
Keys |
Role |
Q, ESC |
Exit |
F |
Fullscreen |
P, Space |
Time out |
W |
Show Audio waveforms |
S |
Display by frame |
Left direction key/right ARROW key |
Back 10s/forward 10s |
Up ARROW/DOWN ARROW key |
Back 1min/forward 1min |
Page Down/page up |
Back 10min/forward 10min |
Mouse click Screen |
Jumps to the specified position (based on the width of the mouse position relative to the screen) |
|
|
Options
Before you play the video, you can preset some parameters.
In general, when playing video, use the command:
Ffplay "JJ Lin _ Jiangnan. flv"
If we want to automatically exit after the playback is complete, you can use the command:
Ffplay-autoexit "JJ Lin _ Jiangnan. flv";
All commands are shown in the following list.
Name |
With parameters |
Role |
X |
Y |
Force screen width |
Y |
Y |
Force screen Height |
S |
Y |
Force Screen Size |
Fs |
N |
Fullscreen |
An |
N |
Turn off audio |
Vn |
N |
Turn off video |
Ast |
Y |
Set the audio stream you want to play (you need to specify the stream ID) |
VSt |
Y |
Set the video stream you want to play (you need to specify the stream ID) |
Sst |
Y |
Set the caption stream you want to play (you need to specify a stream ID) |
Ss |
Y |
Play from a specified location, in seconds |
T |
Y |
Play the specified length of video |
Nodisp |
N |
No display screen |
F |
Y |
Force Encapsulation Format |
Pix_fmt |
Y |
Specify pixel format |
Stats |
N |
Show statistic Information |
iDCT |
Y |
IDCT algorithm |
Ec |
Y |
Error Concealment method |
Sync |
Y |
Video/audio sync mode (type=audio/video/ext) |
AutoExit |
N |
Playback completes auto exit |
Exitonkeydown |
N |
Press the key to exit |
Exitonmousedown |
N |
Press the mouse to exit |
Loop |
Y |
Specify the number of loops |
Framedrop |
N |
Lose the frame when the CPU is not enough |
Window_title |
Y |
Display the title of a window |
Rdftspeed |
Y |
RDFT speed |
Showmode |
Y |
Display Mode (0 = video, 1 = waves, 2 = rdft) |
Codec |
Y |
Force decoder |