Linux command
ffplay 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Play media file
ffplay [video.mp4]
Play with specific
ffplay -x [640] -y [480] [video.mp4]
Loop playback
ffplay -loop [0] [video.mp4]
Play audio only
ffplay -nodisp [audio.mp3]
Seek to position
ffplay -ss [00:01:30] [video.mp4]
说明
ffplay is a simple media player using the ffmpeg libraries. It plays virtually any audio or video format that ffmpeg supports, making it useful for testing filters and previewing encodes. The player provides basic controls via keyboard: space for pause, arrows for seeking, and q to quit. It can apply filters in real-time for previewing effects before encoding. ffplay is primarily a development and testing tool rather than a full-featured media player.
参数
- -x _WIDTH_
- Display width.
- -y _HEIGHT_
- Display height.
- -loop _N_
- Loop count (0 = infinite).
- -nodisp
- Disable display (audio only).
- -ss _TIME_
- Start position.
- -t _DURATION_
- Play duration.
- -vf _FILTER_
- Video filter.
- -af _FILTER_
- Audio filter.
- -fs
- Start fullscreen.
- --help
- Display help information.
FAQ
What is the ffplay command used for?
ffplay is a simple media player using the ffmpeg libraries. It plays virtually any audio or video format that ffmpeg supports, making it useful for testing filters and previewing encodes. The player provides basic controls via keyboard: space for pause, arrows for seeking, and q to quit. It can apply filters in real-time for previewing effects before encoding. ffplay is primarily a development and testing tool rather than a full-featured media player.
How do I run a basic ffplay example?
Run `ffplay [video.mp4]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -x _WIDTH_ do in ffplay?
Display width.