{
    "mode": "man",
    "parameter": "FFPLAY",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/FFPLAY/json",
    "generated": "2026-06-14T12:47:06Z",
    "synopsis": "ffplay [options] [inputurl]",
    "sections": {
        "NAME": {
            "content": "ffplay - FFplay media player\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ffplay [options] [inputurl]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "FFplay is a very simple and portable media player using the FFmpeg libraries and the SDL\nlibrary. It is mostly used as a testbed for the various FFmpeg APIs.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "All the numerical options, if not specified otherwise, accept a string representing a number\nas input, which may be followed by one of the SI unit prefixes, for example: 'K', 'M', or\n'G'.\n\nIf 'i' is appended to the SI unit prefix, the complete prefix will be interpreted as a unit\nprefix for binary multiples, which are based on powers of 1024 instead of powers of 1000.\nAppending 'B' to the SI unit prefix multiplies the value by 8. This allows using, for\nexample: 'KB', 'MiB', 'G' and 'B' as number suffixes.\n\nOptions which do not take arguments are boolean options, and set the corresponding value to\ntrue. They can be set to false by prefixing the option name with \"no\". For example using\n\"-nofoo\" will set the boolean option with name \"foo\" to false.\n",
            "subsections": [
                {
                    "name": "Stream specifiers",
                    "content": "Some options are applied per-stream, e.g. bitrate or codec. Stream specifiers are used to\nprecisely specify which stream(s) a given option belongs to.\n\nA stream specifier is a string generally appended to the option name and separated from it by\na colon. E.g. \"-codec:a:1 ac3\" contains the \"a:1\" stream specifier, which matches the second\naudio stream. Therefore, it would select the ac3 codec for the second audio stream.\n\nA stream specifier can match several streams, so that the option is applied to all of them.\nE.g. the stream specifier in \"-b:a 128k\" matches all audio streams.\n\nAn empty stream specifier matches all streams. For example, \"-codec copy\" or \"-codec: copy\"\nwould copy all the streams without reencoding.\n\nPossible forms of stream specifiers are:\n\nstreamindex\nMatches the stream with this index. E.g. \"-threads:1 4\" would set the thread count for\nthe second stream to 4. If streamindex is used as an additional stream specifier (see\nbelow), then it selects stream number streamindex from the matching streams. Stream\nnumbering is based on the order of the streams as detected by libavformat except when a\nprogram ID is also specified. In this case it is based on the ordering of the streams in\nthe program.\n\nstreamtype[:additionalstreamspecifier]\nstreamtype is one of following: 'v' or 'V' for video, 'a' for audio, 's' for subtitle,\n'd' for data, and 't' for attachments. 'v' matches all video streams, 'V' only matches\nvideo streams which are not attached pictures, video thumbnails or cover arts. If\nadditionalstreamspecifier is used, then it matches streams which both have this type\nand match the additionalstreamspecifier. Otherwise, it matches all streams of the\nspecified type.\n\np:programid[:additionalstreamspecifier]\nMatches streams which are in the program with the id programid. If\nadditionalstreamspecifier is used, then it matches streams which both are part of the\nprogram and match the additionalstreamspecifier.\n\n#streamid or i:streamid\nMatch the stream by stream id (e.g. PID in MPEG-TS container).\n\nm:key[:value]\nMatches streams with the metadata tag key having the specified value. If value is not\ngiven, matches streams that contain the given tag with any value.\n\nu   Matches streams with usable configuration, the codec must be defined and the essential\ninformation such as video dimension or audio sample rate must be present.\n\nNote that in ffmpeg, matching by metadata will only work properly for input files.\n"
                },
                {
                    "name": "Generic options",
                    "content": "These options are shared amongst the ff* tools.\n"
                },
                {
                    "name": "-L",
                    "content": "",
                    "flag": "-L"
                },
                {
                    "name": "-h, -?, -help, --help",
                    "content": "Show help. An optional parameter may be specified to print help about a specific item. If\nno argument is specified, only basic (non advanced) tool options are shown.\n\nPossible values of arg are:\n\nlong\nPrint advanced tool options in addition to the basic tool options.\n\nfull\nPrint complete list of options, including shared and private options for encoders,\ndecoders, demuxers, muxers, filters, etc.\n\ndecoder=decodername\nPrint detailed information about the decoder named decodername. Use the -decoders\noption to get a list of all decoders.\n\nencoder=encodername\nPrint detailed information about the encoder named encodername. Use the -encoders\noption to get a list of all encoders.\n\ndemuxer=demuxername\nPrint detailed information about the demuxer named demuxername. Use the -formats\noption to get a list of all demuxers and muxers.\n\nmuxer=muxername\nPrint detailed information about the muxer named muxername. Use the -formats option\nto get a list of all muxers and demuxers.\n\nfilter=filtername\nPrint detailed information about the filter named filtername. Use the -filters\noption to get a list of all filters.\n\nbsf=bitstreamfiltername\nPrint detailed information about the bitstream filter named bitstreamfiltername.\nUse the -bsfs option to get a list of all bitstream filters.\n\nprotocol=protocolname\nPrint detailed information about the protocol named protocolname.  Use the\n-protocols option to get a list of all protocols.\n",
                    "flag": "-?",
                    "long": "--help"
                },
                {
                    "name": "-version",
                    "content": "Show version.\n"
                },
                {
                    "name": "-buildconf",
                    "content": "Show the build configuration, one option per line.\n"
                },
                {
                    "name": "-formats",
                    "content": "Show available formats (including devices).\n"
                },
                {
                    "name": "-demuxers",
                    "content": "Show available demuxers.\n"
                },
                {
                    "name": "-muxers",
                    "content": "Show available muxers.\n"
                },
                {
                    "name": "-devices",
                    "content": "Show available devices.\n"
                },
                {
                    "name": "-codecs",
                    "content": "Show all codecs known to libavcodec.\n\nNote that the term 'codec' is used throughout this documentation as a shortcut for what\nis more correctly called a media bitstream format.\n"
                },
                {
                    "name": "-decoders",
                    "content": "Show available decoders.\n"
                },
                {
                    "name": "-encoders",
                    "content": "Show all available encoders.\n"
                },
                {
                    "name": "-bsfs",
                    "content": "Show available bitstream filters.\n"
                },
                {
                    "name": "-protocols",
                    "content": "Show available protocols.\n"
                },
                {
                    "name": "-filters",
                    "content": "Show available libavfilter filters.\n"
                },
                {
                    "name": "-pix",
                    "content": "Show available pixel formats.\n"
                },
                {
                    "name": "-sample",
                    "content": "Show available sample formats.\n"
                },
                {
                    "name": "-layouts",
                    "content": "Show channel names and standard channel layouts.\n"
                },
                {
                    "name": "-colors",
                    "content": "Show recognized color names.\n"
                },
                {
                    "name": "-sources",
                    "content": "Show autodetected sources of the input device.  Some devices may provide system-dependent\nsource names that cannot be autodetected.  The returned list cannot be assumed to be\nalways complete.\n\nffmpeg -sources pulse,server=192.168.0.4\n"
                },
                {
                    "name": "-sinks",
                    "content": "Show autodetected sinks of the output device.  Some devices may provide system-dependent\nsink names that cannot be autodetected.  The returned list cannot be assumed to be always\ncomplete.\n\nffmpeg -sinks pulse,server=192.168.0.4\n"
                },
                {
                    "name": "-loglevel -v",
                    "content": "Set logging level and flags used by the library.\n\nThe optional flags prefix can consist of the following values:\n\nrepeat\nIndicates that repeated log output should not be compressed to the first line and the\n\"Last message repeated n times\" line will be omitted.\n\nlevel\nIndicates that log output should add a \"[level]\" prefix to each message line. This\ncan be used as an alternative to log coloring, e.g. when dumping the log to file.\n\nFlags can also be used alone by adding a '+'/'-' prefix to set/reset a single flag\nwithout affecting other flags or changing loglevel. When setting both flags and loglevel,\na '+' separator is expected between the last flags value and before loglevel.\n\nloglevel is a string or a number containing one of the following values:\n\nquiet, -8\nShow nothing at all; be silent.\n\npanic, 0\nOnly show fatal errors which could lead the process to crash, such as an assertion\nfailure. This is not currently used for anything.\n\nfatal, 8\nOnly show fatal errors. These are errors after which the process absolutely cannot\ncontinue.\n\nerror, 16\nShow all errors, including ones which can be recovered from.\n\nwarning, 24\nShow all warnings and errors. Any message related to possibly incorrect or unexpected\nevents will be shown.\n\ninfo, 32\nShow informative messages during processing. This is in addition to warnings and\nerrors. This is the default value.\n\nverbose, 40\nSame as \"info\", except more verbose.\n\ndebug, 48\nShow everything, including debugging information.\n\ntrace, 56\n\nFor example to enable repeated log output, add the \"level\" prefix, and set loglevel to\n\"verbose\":\n\nffmpeg -loglevel repeat+level+verbose -i input output\n\nAnother example that enables repeated log output without affecting current state of\n\"level\" prefix flag or loglevel:\n\nffmpeg [...] -loglevel +repeat\n\nBy default the program logs to stderr. If coloring is supported by the terminal, colors\nare used to mark errors and warnings. Log coloring can be disabled setting the\nenvironment variable AVLOGFORCENOCOLOR, or can be forced setting the environment\nvariable AVLOGFORCECOLOR.\n",
                    "flag": "-v"
                },
                {
                    "name": "-report",
                    "content": "Dump full command line and log output to a file named \"program-YYYYMMDD-HHMMSS.log\" in\nthe current directory.  This file can be useful for bug reports.  It also implies\n\"-loglevel debug\".\n\nSetting the environment variable FFREPORT to any value has the same effect. If the value\nis a ':'-separated key=value sequence, these options will affect the report; option\nvalues must be escaped if they contain special characters or the options delimiter ':'\n(see the ``Quoting and escaping'' section in the ffmpeg-utils manual).\n\nThe following options are recognized:\n\nfile\nset the file name to use for the report; %p is expanded to the name of the program,\n%t is expanded to a timestamp, \"%%\" is expanded to a plain \"%\"\n\nlevel\nset the log verbosity level using a numerical value (see \"-loglevel\").\n\nFor example, to output a report to a file named ffreport.log using a log level of 32\n(alias for log level \"info\"):\n\nFFREPORT=file=ffreport.log:level=32 ffmpeg -i input output\n\nErrors in parsing the environment variable are not fatal, and will not appear in the\nreport.\n"
                },
                {
                    "name": "-hide",
                    "content": "Suppress printing banner.\n\nAll FFmpeg tools will normally show a copyright notice, build options and library\nversions. This option can be used to suppress printing this information.\n"
                },
                {
                    "name": "-cpuflags",
                    "content": "Allows setting and clearing cpu flags. This option is intended for testing. Do not use it\nunless you know what you're doing.\n\nffmpeg -cpuflags -sse+mmx ...\nffmpeg -cpuflags mmx ...\nffmpeg -cpuflags 0 ...\n\nPossible flags for this option are:\n\nx86\nmmx\nmmxext\nsse\nsse2\nsse2slow\nsse3\nsse3slow\nssse3\natom\nsse4.1\nsse4.2\navx\navx2\nxop\nfma3\nfma4\n3dnow\n3dnowext\nbmi1\nbmi2\ncmov\nARM\narmv5te\narmv6\narmv6t2\nvfp\nvfpv3\nneon\nsetend\nAArch64\narmv8\nvfp\nneon\nPowerPC\naltivec\nSpecific Processors\npentium2\npentium3\npentium4\nk6\nk62\nathlon\nathlonxp\nk8"
                },
                {
                    "name": "-max",
                    "content": "Set the maximum size limit for allocating a block on the heap by ffmpeg's family of\nmalloc functions. Exercise extreme caution when using this option. Don't use if you do\nnot understand the full consequence of doing so.  Default is INTMAX.\n"
                },
                {
                    "name": "AVOptions",
                    "content": "These options are provided directly by the libavformat, libavdevice and libavcodec libraries.\nTo see the list of available AVOptions, use the -help option. They are separated into two\ncategories:\n"
                },
                {
                    "name": "generic",
                    "content": "These options can be set for any container, codec or device. Generic options are listed\nunder AVFormatContext options for containers/devices and under AVCodecContext options for\ncodecs.\n"
                },
                {
                    "name": "private",
                    "content": "These options are specific to the given container, device or codec. Private options are\nlisted under their corresponding containers/devices/codecs.\n\nFor example to write an ID3v2.3 header instead of a default ID3v2.4 to an MP3 file, use the\nid3v2version private option of the MP3 muxer:\n\nffmpeg -i input.flac -id3v2version 3 out.mp3\n\nAll codec AVOptions are per-stream, and thus a stream specifier should be attached to them:\n\nffmpeg -i multichannel.mxf -map 0:v:0 -map 0:a:0 -map 0:a:0 -c:a:0 ac3 -b:a:0 640k -ac:a:1 2 -c:a:1 aac -b:2 128k out.mp4\n\nIn the above example, a multichannel audio stream is mapped twice for output.  The first\ninstance is encoded with codec ac3 and bitrate 640k.  The second instance is downmixed to 2\nchannels and encoded with codec aac. A bitrate of 128k is specified for it using absolute\nindex of the output stream.\n\nNote: the -nooption syntax cannot be used for boolean AVOptions, use -option 0/-option 1.\n\nNote: the old undocumented way of specifying per-stream AVOptions by prepending v/a/s to the\noptions name is now obsolete and will be removed soon.\n"
                },
                {
                    "name": "Main options",
                    "content": ""
                },
                {
                    "name": "-x",
                    "content": "Force displayed width.\n",
                    "flag": "-x"
                },
                {
                    "name": "-y",
                    "content": "Force displayed height.\n",
                    "flag": "-y"
                },
                {
                    "name": "-s",
                    "content": "Set frame size (WxH or abbreviation), needed for videos which do not contain a header\nwith the frame size like raw YUV.  This option has been deprecated in favor of private\noptions, try -videosize.\n",
                    "flag": "-s"
                },
                {
                    "name": "-fs",
                    "content": ""
                },
                {
                    "name": "-an",
                    "content": ""
                },
                {
                    "name": "-vn",
                    "content": ""
                },
                {
                    "name": "-sn",
                    "content": ""
                },
                {
                    "name": "-ss",
                    "content": "Seek to pos. Note that in most formats it is not possible to seek exactly, so ffplay will\nseek to the nearest seek point to pos.\n\npos must be a time duration specification, see the Time duration section in the\nffmpeg-utils(1) manual.\n"
                },
                {
                    "name": "-t",
                    "content": "Play duration seconds of audio/video.\n\nduration must be a time duration specification, see the Time duration section in the\nffmpeg-utils(1) manual.\n",
                    "flag": "-t"
                },
                {
                    "name": "-bytes",
                    "content": "Seek by bytes.\n"
                },
                {
                    "name": "-seek",
                    "content": "Set custom interval, in seconds, for seeking using left/right keys. Default is 10\nseconds.\n"
                },
                {
                    "name": "-nodisp",
                    "content": "Disable graphical display.\n"
                },
                {
                    "name": "-noborder",
                    "content": "Borderless window.\n"
                },
                {
                    "name": "-alwaysontop",
                    "content": "Window always on top. Available on: X11 with SDL >= 2.0.5, Windows SDL >= 2.0.6.\n"
                },
                {
                    "name": "-volume",
                    "content": "Set the startup volume. 0 means silence, 100 means no volume reduction or amplification.\nNegative values are treated as 0, values above 100 are treated as 100.\n"
                },
                {
                    "name": "-f",
                    "content": "Force format.\n",
                    "flag": "-f"
                },
                {
                    "name": "-window",
                    "content": "Set window title (default is the input filename).\n"
                },
                {
                    "name": "-left",
                    "content": "Set the x position for the left of the window (default is a centered window).\n"
                },
                {
                    "name": "-top",
                    "content": "Set the y position for the top of the window (default is a centered window).\n"
                },
                {
                    "name": "-loop",
                    "content": "Loops movie playback <number> times. 0 means forever.\n"
                },
                {
                    "name": "-showmode",
                    "content": "Set the show mode to use.  Available values for mode are:\n\n0, video\nshow video\n\n1, waves\nshow audio waves\n\n2, rdft\nshow audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)\n\nDefault value is \"video\", if video is not present or cannot be played \"rdft\" is\nautomatically selected.\n\nYou can interactively cycle through the available show modes by pressing the key w.\n"
                },
                {
                    "name": "-vf",
                    "content": "Create the filtergraph specified by filtergraph and use it to filter the video stream.\n\nfiltergraph is a description of the filtergraph to apply to the stream, and must have a\nsingle video input and a single video output. In the filtergraph, the input is associated\nto the label \"in\", and the output to the label \"out\". See the ffmpeg-filters manual for\nmore information about the filtergraph syntax.\n\nYou can specify this parameter multiple times and cycle through the specified\nfiltergraphs along with the show modes by pressing the key w.\n"
                },
                {
                    "name": "-af",
                    "content": "filtergraph is a description of the filtergraph to apply to the input audio.  Use the\noption \"-filters\" to show all the available filters (including sources and sinks).\n"
                },
                {
                    "name": "-i",
                    "content": "Read inputurl.\n",
                    "flag": "-i"
                },
                {
                    "name": "Advanced options",
                    "content": ""
                },
                {
                    "name": "-pix",
                    "content": "Set pixel format.  This option has been deprecated in favor of private options, try\n-pixelformat.\n"
                },
                {
                    "name": "-stats",
                    "content": "Print several playback statistics, in particular show the stream duration, the codec\nparameters, the current position in the stream and the audio/video synchronisation drift.\nIt is shown by default, unless the log level is lower than \"info\". Its display can be\nforced by manually specifying this option. To disable it, you need to specify \"-nostats\".\n"
                },
                {
                    "name": "-fast",
                    "content": "Non-spec-compliant optimizations.\n"
                },
                {
                    "name": "-genpts",
                    "content": "Generate pts.\n"
                },
                {
                    "name": "-sync",
                    "content": "Set the master clock to audio (\"type=audio\"), video (\"type=video\") or external\n(\"type=ext\"). Default is audio. The master clock is used to control audio-video\nsynchronization. Most media players use audio as master clock, but in some cases\n(streaming or high quality broadcast) it is necessary to change that. This option is\nmainly used for debugging purposes.\n"
                },
                {
                    "name": "-ast",
                    "content": "Select the desired audio stream using the given stream specifier. The stream specifiers\nare described in the Stream specifiers chapter. If this option is not specified, the\n\"best\" audio stream is selected in the program of the already selected video stream.\n"
                },
                {
                    "name": "-vst",
                    "content": "Select the desired video stream using the given stream specifier. The stream specifiers\nare described in the Stream specifiers chapter. If this option is not specified, the\n\"best\" video stream is selected.\n"
                },
                {
                    "name": "-sst",
                    "content": "Select the desired subtitle stream using the given stream specifier. The stream\nspecifiers are described in the Stream specifiers chapter. If this option is not\nspecified, the \"best\" subtitle stream is selected in the program of the already selected\nvideo or audio stream.\n"
                },
                {
                    "name": "-autoexit",
                    "content": "Exit when video is done playing.\n"
                },
                {
                    "name": "-exitonkeydown",
                    "content": "Exit if any key is pressed.\n"
                },
                {
                    "name": "-exitonmousedown",
                    "content": "Exit if any mouse button is pressed.\n"
                },
                {
                    "name": "-codec:",
                    "content": "Force a specific decoder implementation for the stream identified by mediaspecifier,\nwhich can assume the values \"a\" (audio), \"v\" (video), and \"s\" subtitle.\n"
                },
                {
                    "name": "-acodec",
                    "content": "Force a specific audio decoder.\n"
                },
                {
                    "name": "-vcodec",
                    "content": "Force a specific video decoder.\n"
                },
                {
                    "name": "-scodec",
                    "content": "Force a specific subtitle decoder.\n"
                },
                {
                    "name": "-autorotate",
                    "content": "Automatically rotate the video according to file metadata. Enabled by default, use\n-noautorotate to disable it.\n"
                },
                {
                    "name": "-framedrop",
                    "content": "Drop video frames if video is out of sync. Enabled by default if the master clock is not\nset to video. Use this option to enable frame dropping for all master clock sources, use\n-noframedrop to disable it.\n"
                },
                {
                    "name": "-infbuf",
                    "content": "Do not limit the input buffer size, read as much data as possible from the input as soon\nas possible. Enabled by default for realtime streams, where data may be dropped if not\nread in time. Use this option to enable infinite buffers for all inputs, use -noinfbuf to\ndisable it.\n"
                },
                {
                    "name": "-filter",
                    "content": "Defines how many threads are used to process a filter pipeline. Each pipeline will\nproduce a thread pool with this many threads available for parallel processing. The\ndefault is 0 which means that the thread count will be determined by the number of\navailable CPUs.\n"
                },
                {
                    "name": "While playing",
                    "content": ""
                },
                {
                    "name": "q, ESC",
                    "content": "Quit.\n\nf   Toggle full screen.\n"
                },
                {
                    "name": "p, SPC",
                    "content": "Pause.\n\nm   Toggle mute.\n"
                },
                {
                    "name": "9, 0",
                    "content": "Decrease and increase volume respectively.\n\n/, *\nDecrease and increase volume respectively.\n\na   Cycle audio channel in the current program.\n\nv   Cycle video channel.\n\nt   Cycle subtitle channel in the current program.\n\nc   Cycle program.\n\nw   Cycle video filters or show modes.\n\ns   Step to the next frame.\n\nPause if the stream is not already paused, step to the next video frame, and pause.\n"
                },
                {
                    "name": "left/right",
                    "content": "Seek backward/forward 10 seconds.\n"
                },
                {
                    "name": "down/up",
                    "content": "Seek backward/forward 1 minute.\n"
                },
                {
                    "name": "page down/page up",
                    "content": "Seek to the previous/next chapter.  or if there are no chapters Seek backward/forward 10\nminutes.\n"
                },
                {
                    "name": "right mouse click",
                    "content": "Seek to percentage in file corresponding to fraction of width.\n"
                },
                {
                    "name": "left mouse double-click",
                    "content": "Toggle full screen.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "ffplay-all(1), ffmpeg(1), ffprobe(1), ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),\nffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1), ffmpeg-devices(1),\nffmpeg-protocols(1), ffmpeg-filters(1)\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "The FFmpeg developers.\n\nFor details about the authorship, see the Git history of the project\n(git://source.ffmpeg.org/ffmpeg), e.g. by typing the command git log in the FFmpeg source\ndirectory, or browsing the online repository at <http://source.ffmpeg.org>.\n\nMaintainers for the specific components are listed in the file MAINTAINERS in the source code\ntree.\n\n\n\nFFPLAY(1)",
            "subsections": []
        }
    },
    "summary": "ffplay - FFplay media player",
    "flags": [
        {
            "flag": "-L",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-?",
            "long": "--help",
            "arg": null,
            "description": "Show help. An optional parameter may be specified to print help about a specific item. If no argument is specified, only basic (non advanced) tool options are shown. Possible values of arg are: long Print advanced tool options in addition to the basic tool options. full Print complete list of options, including shared and private options for encoders, decoders, demuxers, muxers, filters, etc. decoder=decodername Print detailed information about the decoder named decodername. Use the -decoders option to get a list of all decoders. encoder=encodername Print detailed information about the encoder named encodername. Use the -encoders option to get a list of all encoders. demuxer=demuxername Print detailed information about the demuxer named demuxername. Use the -formats option to get a list of all demuxers and muxers. muxer=muxername Print detailed information about the muxer named muxername. Use the -formats option to get a list of all muxers and demuxers. filter=filtername Print detailed information about the filter named filtername. Use the -filters option to get a list of all filters. bsf=bitstreamfiltername Print detailed information about the bitstream filter named bitstreamfiltername. Use the -bsfs option to get a list of all bitstream filters. protocol=protocolname Print detailed information about the protocol named protocolname. Use the -protocols option to get a list of all protocols."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show version."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show the build configuration, one option per line."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show available formats (including devices)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show available demuxers."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show available muxers."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show available devices."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show all codecs known to libavcodec. Note that the term 'codec' is used throughout this documentation as a shortcut for what is more correctly called a media bitstream format."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show available decoders."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show all available encoders."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show available bitstream filters."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show available protocols."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show available libavfilter filters."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show available pixel formats."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show available sample formats."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show channel names and standard channel layouts."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show recognized color names."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show autodetected sources of the input device. Some devices may provide system-dependent source names that cannot be autodetected. The returned list cannot be assumed to be always complete. ffmpeg -sources pulse,server=192.168.0.4"
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Show autodetected sinks of the output device. Some devices may provide system-dependent sink names that cannot be autodetected. The returned list cannot be assumed to be always complete. ffmpeg -sinks pulse,server=192.168.0.4"
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": "Set logging level and flags used by the library. The optional flags prefix can consist of the following values: repeat Indicates that repeated log output should not be compressed to the first line and the \"Last message repeated n times\" line will be omitted. level Indicates that log output should add a \"[level]\" prefix to each message line. This can be used as an alternative to log coloring, e.g. when dumping the log to file. Flags can also be used alone by adding a '+'/'-' prefix to set/reset a single flag without affecting other flags or changing loglevel. When setting both flags and loglevel, a '+' separator is expected between the last flags value and before loglevel. loglevel is a string or a number containing one of the following values: quiet, -8 Show nothing at all; be silent. panic, 0 Only show fatal errors which could lead the process to crash, such as an assertion failure. This is not currently used for anything. fatal, 8 Only show fatal errors. These are errors after which the process absolutely cannot continue. error, 16 Show all errors, including ones which can be recovered from. warning, 24 Show all warnings and errors. Any message related to possibly incorrect or unexpected events will be shown. info, 32 Show informative messages during processing. This is in addition to warnings and errors. This is the default value. verbose, 40 Same as \"info\", except more verbose. debug, 48 Show everything, including debugging information. trace, 56 For example to enable repeated log output, add the \"level\" prefix, and set loglevel to \"verbose\": ffmpeg -loglevel repeat+level+verbose -i input output Another example that enables repeated log output without affecting current state of \"level\" prefix flag or loglevel: ffmpeg [...] -loglevel +repeat By default the program logs to stderr. If coloring is supported by the terminal, colors are used to mark errors and warnings. Log coloring can be disabled setting the environment variable AVLOGFORCENOCOLOR, or can be forced setting the environment variable AVLOGFORCECOLOR."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Dump full command line and log output to a file named \"program-YYYYMMDD-HHMMSS.log\" in the current directory. This file can be useful for bug reports. It also implies \"-loglevel debug\". Setting the environment variable FFREPORT to any value has the same effect. If the value is a ':'-separated key=value sequence, these options will affect the report; option values must be escaped if they contain special characters or the options delimiter ':' (see the ``Quoting and escaping'' section in the ffmpeg-utils manual). The following options are recognized: file set the file name to use for the report; %p is expanded to the name of the program, %t is expanded to a timestamp, \"%%\" is expanded to a plain \"%\" level set the log verbosity level using a numerical value (see \"-loglevel\"). For example, to output a report to a file named ffreport.log using a log level of 32 (alias for log level \"info\"): FFREPORT=file=ffreport.log:level=32 ffmpeg -i input output Errors in parsing the environment variable are not fatal, and will not appear in the report."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Suppress printing banner. All FFmpeg tools will normally show a copyright notice, build options and library versions. This option can be used to suppress printing this information."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Allows setting and clearing cpu flags. This option is intended for testing. Do not use it unless you know what you're doing. ffmpeg -cpuflags -sse+mmx ... ffmpeg -cpuflags mmx ... ffmpeg -cpuflags 0 ... Possible flags for this option are: x86 mmx mmxext sse sse2 sse2slow sse3 sse3slow ssse3 atom sse4.1 sse4.2 avx avx2 xop fma3 fma4 3dnow 3dnowext bmi1 bmi2 cmov ARM armv5te armv6 armv6t2 vfp vfpv3 neon setend AArch64 armv8 vfp neon PowerPC altivec Specific Processors pentium2 pentium3 pentium4 k6 k62 athlon athlonxp k8"
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Set the maximum size limit for allocating a block on the heap by ffmpeg's family of malloc functions. Exercise extreme caution when using this option. Don't use if you do not understand the full consequence of doing so. Default is INTMAX."
        },
        {
            "flag": "-x",
            "long": null,
            "arg": null,
            "description": "Force displayed width."
        },
        {
            "flag": "-y",
            "long": null,
            "arg": null,
            "description": "Force displayed height."
        },
        {
            "flag": "-s",
            "long": null,
            "arg": null,
            "description": "Set frame size (WxH or abbreviation), needed for videos which do not contain a header with the frame size like raw YUV. This option has been deprecated in favor of private options, try -videosize."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Seek to pos. Note that in most formats it is not possible to seek exactly, so ffplay will seek to the nearest seek point to pos. pos must be a time duration specification, see the Time duration section in the ffmpeg-utils(1) manual."
        },
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": "Play duration seconds of audio/video. duration must be a time duration specification, see the Time duration section in the ffmpeg-utils(1) manual."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Seek by bytes."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Set custom interval, in seconds, for seeking using left/right keys. Default is 10 seconds."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Disable graphical display."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Borderless window."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Window always on top. Available on: X11 with SDL >= 2.0.5, Windows SDL >= 2.0.6."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Set the startup volume. 0 means silence, 100 means no volume reduction or amplification. Negative values are treated as 0, values above 100 are treated as 100."
        },
        {
            "flag": "-f",
            "long": null,
            "arg": null,
            "description": "Force format."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Set window title (default is the input filename)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Set the x position for the left of the window (default is a centered window)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Set the y position for the top of the window (default is a centered window)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Loops movie playback <number> times. 0 means forever."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Set the show mode to use. Available values for mode are: 0, video show video 1, waves show audio waves 2, rdft show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform) Default value is \"video\", if video is not present or cannot be played \"rdft\" is automatically selected. You can interactively cycle through the available show modes by pressing the key w."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Create the filtergraph specified by filtergraph and use it to filter the video stream. filtergraph is a description of the filtergraph to apply to the stream, and must have a single video input and a single video output. In the filtergraph, the input is associated to the label \"in\", and the output to the label \"out\". See the ffmpeg-filters manual for more information about the filtergraph syntax. You can specify this parameter multiple times and cycle through the specified filtergraphs along with the show modes by pressing the key w."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "filtergraph is a description of the filtergraph to apply to the input audio. Use the option \"-filters\" to show all the available filters (including sources and sinks)."
        },
        {
            "flag": "-i",
            "long": null,
            "arg": null,
            "description": "Read inputurl."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Set pixel format. This option has been deprecated in favor of private options, try -pixelformat."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Print several playback statistics, in particular show the stream duration, the codec parameters, the current position in the stream and the audio/video synchronisation drift. It is shown by default, unless the log level is lower than \"info\". Its display can be forced by manually specifying this option. To disable it, you need to specify \"-nostats\"."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Non-spec-compliant optimizations."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Generate pts."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Set the master clock to audio (\"type=audio\"), video (\"type=video\") or external (\"type=ext\"). Default is audio. The master clock is used to control audio-video synchronization. Most media players use audio as master clock, but in some cases (streaming or high quality broadcast) it is necessary to change that. This option is mainly used for debugging purposes."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Select the desired audio stream using the given stream specifier. The stream specifiers are described in the Stream specifiers chapter. If this option is not specified, the \"best\" audio stream is selected in the program of the already selected video stream."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Select the desired video stream using the given stream specifier. The stream specifiers are described in the Stream specifiers chapter. If this option is not specified, the \"best\" video stream is selected."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Select the desired subtitle stream using the given stream specifier. The stream specifiers are described in the Stream specifiers chapter. If this option is not specified, the \"best\" subtitle stream is selected in the program of the already selected video or audio stream."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Exit when video is done playing."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Exit if any key is pressed."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Exit if any mouse button is pressed."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Force a specific decoder implementation for the stream identified by mediaspecifier, which can assume the values \"a\" (audio), \"v\" (video), and \"s\" subtitle."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Force a specific audio decoder."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Force a specific video decoder."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Force a specific subtitle decoder."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Automatically rotate the video according to file metadata. Enabled by default, use -noautorotate to disable it."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Drop video frames if video is out of sync. Enabled by default if the master clock is not set to video. Use this option to enable frame dropping for all master clock sources, use -noframedrop to disable it."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Do not limit the input buffer size, read as much data as possible from the input as soon as possible. Enabled by default for realtime streams, where data may be dropped if not read in time. Use this option to enable infinite buffers for all inputs, use -noinfbuf to disable it."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Defines how many threads are used to process a filter pipeline. Each pipeline will produce a thread pool with this many threads available for parallel processing. The default is 0 which means that the thread count will be determined by the number of available CPUs."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "ffplay-all",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffplay-all/1/json"
        },
        {
            "name": "ffmpeg",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg/1/json"
        },
        {
            "name": "ffprobe",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffprobe/1/json"
        },
        {
            "name": "ffmpeg-utils",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg-utils/1/json"
        },
        {
            "name": "ffmpeg-scaler",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg-scaler/1/json"
        },
        {
            "name": "ffmpeg-resampler",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg-resampler/1/json"
        },
        {
            "name": "ffmpeg-codecs",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg-codecs/1/json"
        },
        {
            "name": "ffmpeg-bitstream-filters",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg-bitstream-filters/1/json"
        },
        {
            "name": "ffmpeg-formats",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg-formats/1/json"
        },
        {
            "name": "ffmpeg-devices",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg-devices/1/json"
        },
        {
            "name": "ffmpeg-protocols",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg-protocols/1/json"
        },
        {
            "name": "ffmpeg-filters",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg-filters/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "A simple and portable media player using the FFmpeg libraries and the SDL library.",
        "examples": [
            {
                "description": "Play a media file",
                "command": "ffplay {{path/to/file}}"
            },
            {
                "description": "Play audio from a media file without a GUI",
                "command": "ffplay -nodisp {{path/to/file}}"
            },
            {
                "description": "Play media passed by `ffmpeg` through `stdin`",
                "command": "ffmpeg -i {{path/to/file}} -c {{copy}} -f {{media_format}} - | ffplay -"
            },
            {
                "description": "Play a video and show motion vectors in real time",
                "command": "ffplay -flags2 +export_mvs -vf codecview=mv=pf+bf+bb {{path/to/file}}"
            },
            {
                "description": "Show only video keyframes",
                "command": "ffplay -vf select=\"{{eq(pict_type\\,PICT_TYPE_I)}}\" {{path/to/file}}"
            }
        ]
    }
}