LinuxCommandLibrary

ffplay

TLDR

Play media file

$ ffplay [video.mp4]
copy
Play with specific size
$ ffplay -x [640] -y [480] [video.mp4]
copy
Loop playback
$ ffplay -loop [0] [video.mp4]
copy
Play audio only
$ ffplay -nodisp [audio.mp3]
copy
Seek to position
$ ffplay -ss [00:01:30] [video.mp4]
copy

SYNOPSIS

ffplay [options] input

DESCRIPTION

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.

PARAMETERS

INPUT

Media file or stream to play.
-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.

CAVEATS

Minimal UI compared to full players. No playlist support. Filter preview may not match final output exactly.

HISTORY

ffplay was created as a reference player demonstrating ffmpeg's decoding capabilities. It serves as both a testing tool and simple player for formats that other players might not support.

SEE ALSO

ffmpeg(1), mpv(1), vlc(1)

Copied to clipboard