=encoding utf8 =head1 NAME ffplay - FFplay media player =head1 SYNOPSIS ffplay [I] [F] =head1 DESCRIPTION FFplay is a very simple and portable media player using the FFmpeg libraries and the SDL library. It is mostly used as a testbed for the various FFmpeg APIs. =head1 OPTIONS All the numerical options, if not specified otherwise, accept a string representing a number as input, which may be followed by one of the SI unit prefixes, for example: 'K', 'M', or 'G'. If 'i' is appended to the SI unit prefix, the complete prefix will be interpreted as a unit prefix for binary multiples, which are based on powers of 1024 instead of powers of 1000. Appending 'B' to the SI unit prefix multiplies the value by 8. This allows using, for example: 'KB', 'MiB', 'G' and 'B' as number suffixes. Options which do not take arguments are boolean options, and set the corresponding value to true. They can be set to false by prefixing the option name with "no". For example using "-nofoo" will set the boolean option with name "foo" to false. Options that take arguments support a special syntax where the argument given on the command line is interpreted as a path to the file from which the actual argument value is loaded. To use this feature, add a forward slash '/' immediately before the option name (after the leading dash). E.g. ffmpeg -i INPUT -/filter:v filter.script OUTPUT will load a filtergraph description from the file named F. =head2 Stream specifiers Some options are applied per-stream, e.g. bitrate or codec. Stream specifiers are used to precisely specify which stream(s) a given option belongs to. A stream specifier is a string generally appended to the option name and separated from it by a colon. E.g. C<-codec:a:1 ac3> contains the C stream specifier, which matches the second audio stream. Therefore, it would select the ac3 codec for the second audio stream. A stream specifier can match several streams, so that the option is applied to all of them. E.g. the stream specifier in C<-b:a 128k> matches all audio streams. An empty stream specifier matches all streams. For example, C<-codec copy> or C<-codec: copy> would copy all the streams without reencoding. Possible forms of stream specifiers are: =over 4 =item I Matches the stream with this index. E.g. C<-threads:1 4> would set the thread count for the second stream to 4. If I is used as an additional stream specifier (see below), then it selects stream number I from the matching streams. Stream numbering is based on the order of the streams as detected by libavformat except when a stream group specifier or program ID is also specified. In this case it is based on the ordering of the streams in the group or program. =item IB<[:>IB<]> I is one of following: 'v' or 'V' for video, 'a' for audio, 's' for subtitle, 'd' for data, and 't' for attachments. 'v' matches all video streams, 'V' only matches video streams which are not attached pictures, video thumbnails or cover arts. If I is used, then it matches streams which both have this type and match the I. Otherwise, it matches all streams of the specified type. =item BIB<[:>IB<]> Matches streams which are in the group with the specifier I. if I is used, then it matches streams which both are part of the group and match the I. I may be one of the following: =over 4 =item I Match the stream with this group index. =item B<#>I BI Match the stream with this group id. =back =item BIB<[:>IB<]> Matches streams which are in the program with the id I. If I is used, then it matches streams which both are part of the program and match the I. =item B<#>I BI Match the stream by stream id (e.g. PID in MPEG-TS container). =item BIB<[:>IB<]> Matches streams with the metadata tag I having the specified value. If I is not given, matches streams that contain the given tag with any value. The colon character ':' in I or I needs to be backslash-escaped. =item BIB<[:>IB<]> Matches streams with the given disposition(s). I is a list of one or more dispositions (as printed by the B<-dispositions> option) joined with '+'. =item B Matches streams with usable configuration, the codec must be defined and the essential information such as video dimension or audio sample rate must be present. Note that in B, matching by metadata will only work properly for input files. =back =head2 Generic options These options are shared amongst the ff* tools. =over 4 =item B<-L> Show license. =item B<-h, -?, -help, --help [>IB<]> 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 I are: =over 4 =item B Print advanced tool options in addition to the basic tool options. =item B Print complete list of options, including shared and private options for encoders, decoders, demuxers, muxers, filters, etc. =item BI Print detailed information about the decoder named I. Use the B<-decoders> option to get a list of all decoders. =item BI Print detailed information about the encoder named I. Use the B<-encoders> option to get a list of all encoders. =item BI Print detailed information about the demuxer named I. Use the B<-formats> option to get a list of all demuxers and muxers. =item BI Print detailed information about the muxer named I. Use the B<-formats> option to get a list of all muxers and demuxers. =item BI Print detailed information about the filter named I. Use the B<-filters> option to get a list of all filters. =item BI Print detailed information about the bitstream filter named I. Use the B<-bsfs> option to get a list of all bitstream filters. =item BI Print detailed information about the protocol named I. Use the B<-protocols> option to get a list of all protocols. =back =item B<-version> Show version. =item B<-buildconf> Show the build configuration, one option per line. =item B<-formats> Show available formats (including devices). =item B<-demuxers> Show available demuxers. =item B<-muxers> Show available muxers. =item B<-devices> Show available devices. =item B<-codecs> 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. =item B<-decoders> Show available decoders. =item B<-encoders> Show all available encoders. =item B<-bsfs> Show available bitstream filters. =item B<-protocols> Show available protocols. =item B<-filters> Show available libavfilter filters. =item B<-pix_fmts> Show available pixel formats. =item B<-sample_fmts> Show available sample formats. =item B<-layouts> Show channel names and standard channel layouts. =item B<-dispositions> Show stream dispositions. =item B<-colors> Show recognized color names. =item B<-sources> IB<[,>IB<=>IB<[,>IB<=>IB<]...]> 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 =item B<-sinks> IB<[,>IB<=>IB<[,>IB<=>IB<]...]> 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 =item B<-loglevel [>IB<+]>I B<| -v [>IB<+]>I Set logging level and flags used by the library. The optional I prefix can consist of the following values: =over 4 =item B Indicates that repeated log output should not be compressed to the first line and the "Last message repeated n times" line will be omitted. =item B Indicates that log output should add a C<[level]> prefix to each message line. This can be used as an alternative to log coloring, e.g. when dumping the log to file. =item B