{
    "mode": "man",
    "parameter": "FFMPEG-FORMATS",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/FFMPEG-FORMATS/1/json",
    "generated": "2026-06-03T11:52:01Z",
    "sections": {
        "NAME": {
            "content": "ffmpeg-formats - FFmpeg formats\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This document describes the supported formats (muxers and demuxers) provided by the\nlibavformat library.\n",
            "subsections": []
        },
        "FORMAT OPTIONS": {
            "content": "The libavformat library provides some generic global options, which can be set on all the\nmuxers and demuxers. In addition each muxer or demuxer may support so-called private options,\nwhich are specific for that component.\n\nOptions may be set by specifying -option value in the FFmpeg tools, or by setting the value\nexplicitly in the \"AVFormatContext\" options or using the libavutil/opt.h API for programmatic\nuse.\n\nThe list of supported options follows:\n\navioflags flags (input/output)\nPossible values:\n\ndirect\nReduce buffering.\n\nprobesize integer (input)\nSet probing size in bytes, i.e. the size of the data to analyze to get stream\ninformation. A higher value will enable detecting more information in case it is\ndispersed into the stream, but will increase latency. Must be an integer not lesser than\n32. It is 5000000 by default.\n\nmaxprobepackets integer (input)\nSet the maximum number of buffered packets when probing a codec.  Default is 2500\npackets.\n\npacketsize integer (output)\nSet packet size.\n\nfflags flags\nSet format flags. Some are implemented for a limited number of formats.\n\nPossible values for input files:\n\ndiscardcorrupt\nDiscard corrupted packets.\n\nfastseek\nEnable fast, but inaccurate seeks for some formats.\n\ngenpts\nGenerate missing PTS if DTS is present.\n\nigndts\nIgnore DTS if PTS is set. Inert when nofillin is set.\n\nignidx\nIgnore index.\n\nkeepside (deprecated,inert)\nnobuffer\nReduce the latency introduced by buffering during initial input streams analysis.\n\nnofillin\nDo not fill in missing values in packet fields that can be exactly calculated.\n\nnoparse\nDisable AVParsers, this needs \"+nofillin\" too.\n\nsortdts\nTry to interleave output packets by DTS. At present, available only for AVIs with an\nindex.\n\nPossible values for output files:\n\nautobsf\nAutomatically apply bitstream filters as required by the output format. Enabled by\ndefault.\n\nbitexact\nOnly write platform-, build- and time-independent data.  This ensures that file and\ndata checksums are reproducible and match between platforms. Its primary use is for\nregression testing.\n\nflushpackets\nWrite out packets immediately.\n\nlatm (deprecated,inert)\nshortest\nStop muxing at the end of the shortest stream.  It may be needed to increase\nmaxinterleavedelta to avoid flushing the longer streams before EOF.\n\nseek2any integer (input)\nAllow seeking to non-keyframes on demuxer level when supported if set to 1.  Default is\n0.\n\nanalyzeduration integer (input)\nSpecify how many microseconds are analyzed to probe the input. A higher value will enable\ndetecting more accurate information, but will increase latency. It defaults to 5,000,000\nmicroseconds = 5 seconds.\n\ncryptokey hexadecimal string (input)\nSet decryption key.\n\nindexmem integer (input)\nSet max memory used for timestamp index (per stream).\n\nrtbufsize integer (input)\nSet max memory used for buffering real-time frames.\n\nfdebug flags (input/output)\nPrint specific debug info.\n\nPossible values:\n\nts\nmaxdelay integer (input/output)\nSet maximum muxing or demuxing delay in microseconds.\n\nfpsprobesize integer (input)\nSet number of frames used to probe fps.\n\naudiopreload integer (output)\nSet microseconds by which audio packets should be interleaved earlier.\n\nchunkduration integer (output)\nSet microseconds for each chunk.\n\nchunksize integer (output)\nSet size in bytes for each chunk.\n\nerrdetect, ferrdetect flags (input)\nSet error detection flags. \"ferrdetect\" is deprecated and should be used only via the\nffmpeg tool.\n\nPossible values:\n\ncrccheck\nVerify embedded CRCs.\n\nbitstream\nDetect bitstream specification deviations.\n\nbuffer\nDetect improper bitstream length.\n\nexplode\nAbort decoding on minor error detection.\n\ncareful\nConsider things that violate the spec and have not been seen in the wild as errors.\n\ncompliant\nConsider all spec non compliancies as errors.\n\naggressive\nConsider things that a sane encoder should not do as an error.\n\nmaxinterleavedelta integer (output)\nSet maximum buffering duration for interleaving. The duration is expressed in\nmicroseconds, and defaults to 10000000 (10 seconds).\n\nTo ensure all the streams are interleaved correctly, libavformat will wait until it has\nat least one packet for each stream before actually writing any packets to the output\nfile. When some streams are \"sparse\" (i.e. there are large gaps between successive\npackets), this can result in excessive buffering.\n\nThis field specifies the maximum difference between the timestamps of the first and the\nlast packet in the muxing queue, above which libavformat will output a packet regardless\nof whether it has queued a packet for all the streams.\n\nIf set to 0, libavformat will continue buffering packets until it has a packet for each\nstream, regardless of the maximum timestamp difference between the buffered packets.\n\nusewallclockastimestamps integer (input)\nUse wallclock as timestamps if set to 1. Default is 0.\n\navoidnegativets integer (output)\nPossible values:\n\nmakenonnegative\nShift timestamps to make them non-negative.  Also note that this affects only leading\nnegative timestamps, and not non-monotonic negative timestamps.\n\nmakezero\nShift timestamps so that the first timestamp is 0.\n\nauto (default)\nEnables shifting when required by the target format.\n\ndisabled\nDisables shifting of timestamp.\n\nWhen shifting is enabled, all output timestamps are shifted by the same amount. Audio,\nvideo, and subtitles desynching and relative timestamp differences are preserved compared\nto how they would have been without shifting.\n\nskipinitialbytes integer (input)\nSet number of bytes to skip before reading header and frames if set to 1.  Default is 0.\n\ncorrecttsoverflow integer (input)\nCorrect single timestamp overflows if set to 1. Default is 1.\n\nflushpackets integer (output)\nFlush the underlying I/O stream after each packet. Default is -1 (auto), which means that\nthe underlying protocol will decide, 1 enables it, and has the effect of reducing the\nlatency, 0 disables it and may increase IO throughput in some cases.\n\noutputtsoffset offset (output)\nSet the output time offset.\n\noffset must be a time duration specification, see the Time duration section in the\nffmpeg-utils(1) manual.\n\nThe offset is added by the muxer to the output timestamps.\n\nSpecifying a positive offset means that the corresponding streams are delayed bt the time\nduration specified in offset. Default value is 0 (meaning that no offset is applied).\n\nformatwhitelist list (input)\n\",\" separated list of allowed demuxers. By default all are allowed.\n\ndumpseparator string (input)\nSeparator used to separate the fields printed on the command line about the Stream\nparameters.  For example, to separate the fields with newlines and indentation:\n\nffprobe -dumpseparator \"\n\"  -i ~/videos/matrixbenchmpeg2.mpg\n\nmaxstreams integer (input)\nSpecifies the maximum number of streams. This can be used to reject files that would\nrequire too many resources due to a large number of streams.\n\nskipestimatedurationfrompts bool (input)\nSkip estimation of input duration when calculated using PTS.  At present, applicable for\nMPEG-PS and MPEG-TS.\n\nstrict, fstrict integer (input/output)\nSpecify how strictly to follow the standards. \"fstrict\" is deprecated and should be used\nonly via the ffmpeg tool.\n\nPossible values:\n\nvery\nstrictly conform to an older more strict version of the spec or reference software\n\nstrict\nstrictly conform to all the things in the spec no matter what consequences\n\nnormal\nunofficial\nallow unofficial extensions\n\nexperimental\nallow non standardized experimental things, experimental (unfinished/work in\nprogress/not well tested) decoders and encoders.  Note: experimental decoders can\npose a security risk, do not use this for decoding untrusted input.\n",
            "subsections": [
                {
                    "name": "Format stream specifiers",
                    "content": "Format stream specifiers allow selection of one or more streams that match specific\nproperties.\n\nThe exact semantics of stream specifiers is defined by the\n\"avformatmatchstreamspecifier()\" function declared in the libavformat/avformat.h header\nand documented in the Stream specifiers section in the ffmpeg(1) manual.\n"
                }
            ]
        },
        "DEMUXERS": {
            "content": "Demuxers are configured elements in FFmpeg that can read the multimedia streams from a\nparticular type of file.\n\nWhen you configure your FFmpeg build, all the supported demuxers are enabled by default. You\ncan list all available ones using the configure option \"--list-demuxers\".\n\nYou can disable all the demuxers using the configure option \"--disable-demuxers\", and\nselectively enable a single demuxer with the option \"--enable-demuxer=DEMUXER\", or disable it\nwith the option \"--disable-demuxer=DEMUXER\".\n\nThe option \"-demuxers\" of the ff* tools will display the list of enabled demuxers. Use\n\"-formats\" to view a combined list of enabled demuxers and muxers.\n\nThe description of some of the currently available demuxers follows.\n\naa\nAudible Format 2, 3, and 4 demuxer.\n\nThis demuxer is used to demux Audible Format 2, 3, and 4 (.aa) files.\n",
            "subsections": [
                {
                    "name": "apng",
                    "content": "Animated Portable Network Graphics demuxer.\n\nThis demuxer is used to demux APNG files.  All headers, but the PNG signature, up to (but not\nincluding) the first fcTL chunk are transmitted as extradata.  Frames are then split as being\nall the chunks between two fcTL ones, or between the last fcTL and IEND chunks.\n"
                },
                {
                    "name": "-ignore",
                    "content": "Ignore the loop variable in the file if set.\n"
                },
                {
                    "name": "-max",
                    "content": "Maximum framerate in frames per second (0 for no limit).\n"
                },
                {
                    "name": "-default",
                    "content": "Default framerate in frames per second when none is specified in the file (0 meaning as\nfast as possible).\n"
                },
                {
                    "name": "asf",
                    "content": "Advanced Systems Format demuxer.\n\nThis demuxer is used to demux ASF files and MMS network streams.\n"
                },
                {
                    "name": "-no",
                    "content": "Do not try to resynchronize by looking for a certain optional start code.\n"
                },
                {
                    "name": "concat",
                    "content": "Virtual concatenation script demuxer.\n\nThis demuxer reads a list of files and other directives from a text file and demuxes them one\nafter the other, as if all their packets had been muxed together.\n\nThe timestamps in the files are adjusted so that the first file starts at 0 and each next\nfile starts where the previous one finishes. Note that it is done globally and may cause gaps\nif all streams do not have exactly the same length.\n\nAll files must have the same streams (same codecs, same time base, etc.).\n\nThe duration of each file is used to adjust the timestamps of the next file: if the duration\nis incorrect (because it was computed using the bit-rate or because the file is truncated,\nfor example), it can cause artifacts. The \"duration\" directive can be used to override the\nduration stored in each file.\n\nSyntax\n\nThe script is a text file in extended-ASCII, with one directive per line.  Empty lines,\nleading spaces and lines starting with '#' are ignored. The following directive is\nrecognized:\n"
                },
                {
                    "name": "\"file path\"",
                    "content": "Path to a file to read; special characters and spaces must be escaped with backslash or\nsingle quotes.\n\nAll subsequent file-related directives apply to that file.\n"
                },
                {
                    "name": "\"ffconcat version 1.0\"",
                    "content": "Identify the script type and version. It also sets the safe option to 1 if it was -1.\n\nTo make FFmpeg recognize the format automatically, this directive must appear exactly as\nis (no extra space or byte-order-mark) on the very first line of the script.\n"
                },
                {
                    "name": "\"duration dur\"",
                    "content": "Duration of the file. This information can be specified from the file; specifying it here\nmay be more efficient or help if the information from the file is not available or\naccurate.\n\nIf the duration is set for all files, then it is possible to seek in the whole\nconcatenated video.\n"
                },
                {
                    "name": "\"inpoint timestamp\"",
                    "content": "In point of the file. When the demuxer opens the file it instantly seeks to the specified\ntimestamp. Seeking is done so that all streams can be presented successfully at In point.\n\nThis directive works best with intra frame codecs, because for non-intra frame ones you\nwill usually get extra packets before the actual In point and the decoded content will\nmost likely contain frames before In point too.\n\nFor each file, packets before the file In point will have timestamps less than the\ncalculated start timestamp of the file (negative in case of the first file), and the\nduration of the files (if not specified by the \"duration\" directive) will be reduced\nbased on their specified In point.\n\nBecause of potential packets before the specified In point, packet timestamps may overlap\nbetween two concatenated files.\n"
                },
                {
                    "name": "\"outpoint timestamp\"",
                    "content": "Out point of the file. When the demuxer reaches the specified decoding timestamp in any\nof the streams, it handles it as an end of file condition and skips the current and all\nthe remaining packets from all streams.\n\nOut point is exclusive, which means that the demuxer will not output packets with a\ndecoding timestamp greater or equal to Out point.\n\nThis directive works best with intra frame codecs and formats where all streams are\ntightly interleaved. For non-intra frame codecs you will usually get additional packets\nwith presentation timestamp after Out point therefore the decoded content will most\nlikely contain frames after Out point too. If your streams are not tightly interleaved\nyou may not get all the packets from all streams before Out point and you may only will\nbe able to decode the earliest stream until Out point.\n\nThe duration of the files (if not specified by the \"duration\" directive) will be reduced\nbased on their specified Out point.\n\n\"filepacketmetadata key=value\"\nMetadata of the packets of the file. The specified metadata will be set for each file\npacket. You can specify this directive multiple times to add multiple metadata entries.\n"
                },
                {
                    "name": "\"stream\"",
                    "content": "Introduce a stream in the virtual file.  All subsequent stream-related directives apply\nto the last introduced stream.  Some streams properties must be set in order to allow\nidentifying the matching streams in the subfiles.  If no streams are defined in the\nscript, the streams from the first file are copied.\n\n\"exactstreamid id\"\nSet the id of the stream.  If this directive is given, the string with the corresponding\nid in the subfiles will be used.  This is especially useful for MPEG-PS (VOB) files,\nwhere the order of the streams is not reliable.\n\nOptions\n\nThis demuxer accepts the following option:\n"
                },
                {
                    "name": "safe",
                    "content": "If set to 1, reject unsafe file paths. A file path is considered safe if it does not\ncontain a protocol specification and is relative and all components only contain\ncharacters from the portable character set (letters, digits, period, underscore and\nhyphen) and have no period at the beginning of a component.\n\nIf set to 0, any file name is accepted.\n\nThe default is 1.\n\n-1 is equivalent to 1 if the format was automatically probed and 0 otherwise.\n\nautoconvert\nIf set to 1, try to perform automatic conversions on packet data to make the streams\nconcatenable.  The default is 1.\n\nCurrently, the only conversion is adding the h264mp4toannexb bitstream filter to H.264\nstreams in MP4 format. This is necessary in particular if there are resolution changes.\n\nsegmenttimemetadata\nIf set to 1, every packet will contain the lavf.concat.starttime and the\nlavf.concat.duration packet metadata values which are the starttime and the duration of\nthe respective file segments in the concatenated output expressed in microseconds. The\nduration metadata is only set if it is known based on the concat file.  The default is 0.\n\nExamples\n\n•   Use absolute filenames and include some comments:\n\n# my first filename\nfile /mnt/share/file-1.wav\n# my second filename including whitespace\nfile '/mnt/share/file 2.wav'\n# my third filename including whitespace plus single quote\nfile '/mnt/share/file 3'\\''.wav'\n\n•   Allow for input format auto-probing, use safe filenames and set the duration of the first\nfile:\n\nffconcat version 1.0\n\nfile file-1.wav\nduration 20.0\n\nfile subdir/file-2.wav\n"
                },
                {
                    "name": "dash",
                    "content": "Dynamic Adaptive Streaming over HTTP demuxer.\n\nThis demuxer presents all AVStreams found in the manifest.  By setting the discard flags on\nAVStreams the caller can decide which streams to actually receive.  Each stream mirrors the\n\"id\" and \"bandwidth\" properties from the \"<Representation>\" as metadata keys named \"id\" and\n\"variantbitrate\" respectively.\n\nflv, liveflv\nAdobe Flash Video Format demuxer.\n\nThis demuxer is used to demux FLV files and RTMP network streams. In case of live network\nstreams, if you force format, you may use liveflv option instead of flv to survive timestamp\ndiscontinuities.\n\nffmpeg -f flv -i myfile.flv ...\nffmpeg -f liveflv -i rtmp://<any.server>/anything/key ....\n"
                },
                {
                    "name": "-flv",
                    "content": "Allocate the streams according to the onMetaData array content.\n"
                },
                {
                    "name": "-flv",
                    "content": "Ignore the size of previous tag value.\n"
                },
                {
                    "name": "-flv",
                    "content": "Output all context of the onMetadata.\n"
                },
                {
                    "name": "gif",
                    "content": "Animated GIF demuxer.\n\nIt accepts the following options:\n\nmindelay\nSet the minimum valid delay between frames in hundredths of seconds.  Range is 0 to 6000.\nDefault value is 2.\n\nmaxgifdelay\nSet the maximum valid delay between frames in hundredth of seconds.  Range is 0 to 65535.\nDefault value is 65535 (nearly eleven minutes), the maximum value allowed by the\nspecification.\n\ndefaultdelay\nSet the default delay between frames in hundredths of seconds.  Range is 0 to 6000.\nDefault value is 10.\n\nignoreloop\nGIF files can contain information to loop a certain number of times (or infinitely). If\nignoreloop is set to 1, then the loop setting from the input will be ignored and looping\nwill not occur. If set to 0, then looping will occur and will cycle the number of times\naccording to the GIF. Default value is 1.\n\nFor example, with the overlay filter, place an infinitely looping GIF over another video:\n\nffmpeg -i input.mp4 -ignoreloop 0 -i input.gif -filtercomplex overlay=shortest=1 out.mkv\n\nNote that in the above example the shortest option for overlay filter is used to end the\noutput video at the length of the shortest input file, which in this case is input.mp4 as the\nGIF in this example loops infinitely.\n"
                },
                {
                    "name": "hls",
                    "content": "HLS demuxer\n\nApple HTTP Live Streaming demuxer.\n\nThis demuxer presents all AVStreams from all variant streams.  The id field is set to the\nbitrate variant index number. By setting the discard flags on AVStreams (by pressing 'a' or\n'v' in ffplay), the caller can decide which variant streams to actually receive.  The total\nbitrate of the variant that the stream belongs to is available in a metadata key named\n\"variantbitrate\".\n\nIt accepts the following options:\n\nlivestartindex\nsegment index to start live streams at (negative values are from the end).\n\nallowedextensions\n',' separated list of file extensions that hls is allowed to access.\n\nmaxreload\nMaximum number of times a insufficient list is attempted to be reloaded.  Default value\nis 1000.\n\nm3u8holdcounters\nThe maximum number of times to load m3u8 when it refreshes without new segments.  Default\nvalue is 1000.\n\nhttppersistent\nUse persistent HTTP connections. Applicable only for HTTP streams.  Enabled by default.\n\nhttpmultiple\nUse multiple HTTP connections for downloading HTTP segments.  Enabled by default for\nHTTP/1.1 servers.\n\nhttpseekable\nUse HTTP partial requests for downloading HTTP segments.  0 = disable, 1 = enable, -1 =\nauto, Default is auto.\n"
                },
                {
                    "name": "image2",
                    "content": "Image file demuxer.\n\nThis demuxer reads from a list of image files specified by a pattern.  The syntax and meaning\nof the pattern is specified by the option patterntype.\n\nThe pattern may contain a suffix which is used to automatically determine the format of the\nimages contained in the files.\n\nThe size, the pixel format, and the format of each image must be the same for all the files\nin the sequence.\n\nThis demuxer accepts the following options:\n"
                },
                {
                    "name": "framerate",
                    "content": "Set the frame rate for the video stream. It defaults to 25.\n"
                },
                {
                    "name": "loop",
                    "content": "If set to 1, loop over the input. Default value is 0.\n\npatterntype\nSelect the pattern type used to interpret the provided filename.\n\npatterntype accepts one of the following values.\n\nnone\nDisable pattern matching, therefore the video will only contain the specified image.\nYou should use this option if you do not want to create sequences from multiple\nimages and your filenames may contain special pattern characters.\n\nsequence\nSelect a sequence pattern type, used to specify a sequence of files indexed by\nsequential numbers.\n\nA sequence pattern may contain the string \"%d\" or \"%0Nd\", which specifies the\nposition of the characters representing a sequential number in each filename matched\nby the pattern. If the form \"%d0Nd\" is used, the string representing the number in\neach filename is 0-padded and N is the total number of 0-padded digits representing\nthe number. The literal character '%' can be specified in the pattern with the string\n\"%%\".\n\nIf the sequence pattern contains \"%d\" or \"%0Nd\", the first filename of the file list\nspecified by the pattern must contain a number inclusively contained between\nstartnumber and startnumber+startnumberrange-1, and all the following numbers\nmust be sequential.\n\nFor example the pattern \"img-%03d.bmp\" will match a sequence of filenames of the form\nimg-001.bmp, img-002.bmp, ..., img-010.bmp, etc.; the pattern \"i%%m%%g-%d.jpg\" will\nmatch a sequence of filenames of the form i%m%g-1.jpg, i%m%g-2.jpg, ...,\ni%m%g-10.jpg, etc.\n\nNote that the pattern must not necessarily contain \"%d\" or \"%0Nd\", for example to\nconvert a single image file img.jpeg you can employ the command:\n\nffmpeg -i img.jpeg img.png\n\nglob\nSelect a glob wildcard pattern type.\n\nThe pattern is interpreted like a \"glob()\" pattern. This is only selectable if\nlibavformat was compiled with globbing support.\n\nglobsequence (deprecated, will be removed)\nSelect a mixed glob wildcard/sequence pattern.\n\nIf your version of libavformat was compiled with globbing support, and the provided\npattern contains at least one glob meta character among \"%*?[]{}\" that is preceded by\nan unescaped \"%\", the pattern is interpreted like a \"glob()\" pattern, otherwise it is\ninterpreted like a sequence pattern.\n\nAll glob special characters \"%*?[]{}\" must be prefixed with \"%\". To escape a literal\n\"%\" you shall use \"%%\".\n\nFor example the pattern \"foo-%*.jpeg\" will match all the filenames prefixed by \"foo-\"\nand terminating with \".jpeg\", and \"foo-%?%?%?.jpeg\" will match all the filenames\nprefixed with \"foo-\", followed by a sequence of three characters, and terminating\nwith \".jpeg\".\n\nThis pattern type is deprecated in favor of glob and sequence.\n\nDefault value is globsequence.\n\npixelformat\nSet the pixel format of the images to read. If not specified the pixel format is guessed\nfrom the first image file in the sequence.\n\nstartnumber\nSet the index of the file matched by the image file pattern to start to read from.\nDefault value is 0.\n\nstartnumberrange\nSet the index interval range to check when looking for the first image file in the\nsequence, starting from startnumber. Default value is 5.\n\ntsfromfile\nIf set to 1, will set frame timestamp to modification time of image file. Note that\nmonotonity of timestamps is not provided: images go in the same order as without this\noption. Default value is 0.  If set to 2, will set frame timestamp to the modification\ntime of the image file in nanosecond precision.\n\nvideosize\nSet the video size of the images to read. If not specified the video size is guessed from\nthe first image file in the sequence.\n\nexportpathmetadata\nIf set to 1, will add two extra fields to the metadata found in input, making them also\navailable for other filters (see drawtext filter for examples). Default value is 0. The\nextra fields are described below:\n\nlavf.image2dec.sourcepath\nCorresponds to the full path to the input file being read.\n\nlavf.image2dec.sourcebasename\nCorresponds to the name of the file being read.\n\nExamples\n\n•   Use ffmpeg for creating a video from the images in the file sequence img-001.jpeg,\nimg-002.jpeg, ..., assuming an input frame rate of 10 frames per second:\n\nffmpeg -framerate 10 -i 'img-%03d.jpeg' out.mkv\n\n•   As above, but start by reading from a file with index 100 in the sequence:\n\nffmpeg -framerate 10 -startnumber 100 -i 'img-%03d.jpeg' out.mkv\n\n•   Read images matching the \"*.png\" glob pattern , that is all the files terminating with\nthe \".png\" suffix:\n\nffmpeg -framerate 10 -patterntype glob -i \"*.png\" out.mkv\n"
                },
                {
                    "name": "libgme",
                    "content": "The Game Music Emu library is a collection of video game music file emulators.\n\nSee <https://bitbucket.org/mpyne/game-music-emu/overview> for more information.\n\nIt accepts the following options:\n\ntrackindex\nSet the index of which track to demux. The demuxer can only export one track.  Track\nindexes start at 0. Default is to pick the first track. Number of tracks is exported as\ntracks metadata entry.\n\nsamplerate\nSet the sampling rate of the exported track. Range is 1000 to 999999. Default is 44100.\n"
                },
                {
                    "name": "max___size _(bytes)",
                    "content": "The demuxer buffers the entire file into memory. Adjust this value to set the maximum\nbuffer size, which in turn, acts as a ceiling for the size of files that can be read.\nDefault is 50 MiB.\n"
                },
                {
                    "name": "libmodplug",
                    "content": "ModPlug based module demuxer\n\nSee <https://github.com/Konstanty/libmodplug>\n\nIt will export one 2-channel 16-bit 44.1 kHz audio stream.  Optionally, a \"pal8\" 16-color\nvideo stream can be exported with or without printed metadata.\n\nIt accepts the following options:\n\nnoisereduction\nApply a simple low-pass filter. Can be 1 (on) or 0 (off). Default is 0.\n\nreverbdepth\nSet amount of reverb. Range 0-100. Default is 0.\n\nreverbdelay\nSet delay in ms, clamped to 40-250 ms. Default is 0.\n\nbassamount\nApply bass expansion a.k.a. XBass or megabass. Range is 0 (quiet) to 100 (loud). Default\nis 0.\n\nbassrange\nSet cutoff i.e. upper-bound for bass frequencies. Range is 10-100 Hz. Default is 0.\n\nsurrounddepth\nApply a Dolby Pro-Logic surround effect. Range is 0 (quiet) to 100 (heavy). Default is 0.\n\nsurrounddelay\nSet surround delay in ms, clamped to 5-40 ms. Default is 0.\n\nmaxsize\nThe demuxer buffers the entire file into memory. Adjust this value to set the maximum\nbuffer size, which in turn, acts as a ceiling for the size of files that can be read.\nRange is 0 to 100 MiB.  0 removes buffer size limit (not recommended). Default is 5 MiB.\n\nvideostreamexpr\nString which is evaluated using the eval API to assign colors to the generated video\nstream.  Variables which can be used are \"x\", \"y\", \"w\", \"h\", \"t\", \"speed\", \"tempo\",\n\"order\", \"pattern\" and \"row\".\n\nvideostream\nGenerate video stream. Can be 1 (on) or 0 (off). Default is 0.\n\nvideostreamw\nSet video frame width in 'chars' where one char indicates 8 pixels. Range is 20-512.\nDefault is 30.\n\nvideostreamh\nSet video frame height in 'chars' where one char indicates 8 pixels. Range is 20-512.\nDefault is 30.\n\nvideostreamptxt\nPrint metadata on video stream. Includes \"speed\", \"tempo\", \"order\", \"pattern\", \"row\" and\n\"ts\" (time in ms). Can be 1 (on) or 0 (off). Default is 1.\n"
                },
                {
                    "name": "libopenmpt",
                    "content": "libopenmpt based module demuxer\n\nSee <https://lib.openmpt.org/libopenmpt/> for more information.\n\nSome files have multiple subsongs (tracks) this can be set with the subsong option.\n\nIt accepts the following options:\n"
                },
                {
                    "name": "subsong",
                    "content": "Set the subsong index. This can be either  'all', 'auto', or the index of the subsong.\nSubsong indexes start at 0. The default is 'auto'.\n\nThe default value is to let libopenmpt choose.\n"
                },
                {
                    "name": "layout",
                    "content": "Set the channel layout. Valid values are 1, 2, and 4 channel layouts.  The default value\nis STEREO.\n\nsamplerate\nSet the sample rate for libopenmpt to output.  Range is from 1000 to INTMAX. The value\ndefault is 48000.\n"
                },
                {
                    "name": "mov/mp4/3gp",
                    "content": "Demuxer for Quicktime File Format & ISO/IEC Base Media File Format (ISO/IEC 14496-12 or\nMPEG-4 Part 12, ISO/IEC 15444-12 or JPEG 2000 Part 12).\n\nRegistered extensions: mov, mp4, m4a, 3gp, 3g2, mj2, psp, m4b, ism, ismv, isma, f4v\n\nOptions\n\nThis demuxer accepts the following options:\n\nenabledrefs\nEnable loading of external tracks, disabled by default.  Enabling this can theoretically\nleak information in some use cases.\n\nuseabsolutepath\nAllows loading of external tracks via absolute paths, disabled by default.  Enabling this\nposes a security risk. It should only be enabled if the source is known to be non-\nmalicious.\n\nseekstreamsindividually\nWhen seeking, identify the closest point in each stream individually and demux packets in\nthat stream from identified point. This can lead to a different sequence of packets\ncompared to demuxing linearly from the beginning. Default is true.\n\nignoreeditlist\nIgnore any edit list atoms. The demuxer, by default, modifies the stream index to reflect\nthe timeline described by the edit list. Default is false.\n\nadvancededitlist\nModify the stream index to reflect the timeline described by the edit list.\n\"ignoreeditlist\" must be set to false for this option to be effective.  If both\n\"ignoreeditlist\" and this option are set to false, then only the start of the stream\nindex is modified to reflect initial dwell time or starting timestamp described by the\nedit list. Default is true.\n\nignorechapters\nDon't parse chapters. This includes GoPro 'HiLight' tags/moments. Note that chapters are\nonly parsed when input is seekable. Default is false.\n\nusemfrafor\nFor seekable fragmented input, set fragment's starting timestamp from media fragment\nrandom access box, if present.\n\nFollowing options are available:\n\nauto\nAuto-detect whether to set mfra timestamps as PTS or DTS (default)\n\ndts Set mfra timestamps as DTS\n\npts Set mfra timestamps as PTS\n\n0   Don't use mfra box to set timestamps\n\nexportall\nExport unrecognized boxes within the udta box as metadata entries. The first four\ncharacters of the box type are set as the key. Default is false.\n\nexportxmp\nExport entire contents of XMP box and uuid box as a string with key \"xmp\". Note that if\n\"exportall\" is set and this option isn't, the contents of XMP box are still exported\nbut with key \"XMP\". Default is false.\n\nactivationbytes\n4-byte key required to decrypt Audible AAX and AAX+ files. See Audible AAX subsection\nbelow.\n\naudiblefixedkey\nFixed key used for handling Audible AAX/AAX+ files. It has been pre-set so should not be\nnecessary to specify.\n\ndecryptionkey\n16-byte key, in hex, to decrypt files encrypted using ISO Common Encryption (CENC/AES-128\nCTR; ISO/IEC 23001-7).\n\nAudible AAX\n\nAudible AAX files are encrypted M4B files, and they can be decrypted by specifying a 4 byte\nactivation secret.\n\nffmpeg -activationbytes 1CEB00DA -i test.aax -vn -c:a copy output.mp4\n"
                },
                {
                    "name": "mpegts",
                    "content": "MPEG-2 transport stream demuxer.\n\nThis demuxer accepts the following options:\n\nresyncsize\nSet size limit for looking up a new synchronization. Default value is 65536.\n\nskipunknownpmt\nSkip PMTs for programs not defined in the PAT. Default value is 0.\n\nfixteletextpts\nOverride teletext packet PTS and DTS values with the timestamps calculated from the PCR\nof the first program which the teletext stream is part of and is not discarded. Default\nvalue is 1, set this option to 0 if you want your teletext packet PTS and DTS values\nuntouched.\n\ntspacketsize\nOutput option carrying the raw packet size in bytes.  Show the detected raw packet size,\ncannot be set by the user.\n\nscanallpmts\nScan and combine all PMTs. The value is an integer with value from -1 to 1 (-1 means\nautomatic setting, 1 means enabled, 0 means disabled). Default value is -1.\n\nmergepmtversions\nRe-use existing streams when a PMT's version is updated and elementary streams move to\ndifferent PIDs. Default value is 0.\n"
                },
                {
                    "name": "mpjpeg",
                    "content": "MJPEG encapsulated in multi-part MIME demuxer.\n\nThis demuxer allows reading of MJPEG, where each frame is represented as a part of\nmultipart/x-mixed-replace stream.\n\nstrictmimeboundary\nDefault implementation applies a relaxed standard to multi-part MIME boundary detection,\nto prevent regression with numerous existing endpoints not generating a proper MIME MJPEG\nstream. Turning this option on by setting it to 1 will result in a stricter check of the\nboundary value.\n"
                },
                {
                    "name": "rawvideo",
                    "content": "Raw video demuxer.\n\nThis demuxer allows one to read raw video data. Since there is no header specifying the\nassumed video parameters, the user must specify them in order to be able to decode the data\ncorrectly.\n\nThis demuxer accepts the following options:\n"
                },
                {
                    "name": "framerate",
                    "content": "Set input video frame rate. Default value is 25.\n\npixelformat\nSet the input video pixel format. Default value is \"yuv420p\".\n\nvideosize\nSet the input video size. This value must be specified explicitly.\n\nFor example to read a rawvideo file input.raw with ffplay, assuming a pixel format of\n\"rgb24\", a video size of \"320x240\", and a frame rate of 10 images per second, use the\ncommand:\n\nffplay -f rawvideo -pixelformat rgb24 -videosize 320x240 -framerate 10 input.raw\n"
                },
                {
                    "name": "sbg",
                    "content": "SBaGen script demuxer.\n\nThis demuxer reads the script language used by SBaGen <http://uazu.net/sbagen/> to generate\nbinaural beats sessions. A SBG script looks like that:\n\n-SE\na: 300-2.5/3 440+4.5/0\nb: 300-2.5/0 440+4.5/3\noff: -\nNOW      == a\n+0:07:00 == b\n+0:14:00 == a\n+0:21:00 == b\n+0:30:00    off\n\nA SBG script can mix absolute and relative timestamps. If the script uses either only\nabsolute timestamps (including the script start time) or only relative ones, then its layout\nis fixed, and the conversion is straightforward. On the other hand, if the script mixes both\nkind of timestamps, then the NOW reference for relative timestamps will be taken from the\ncurrent time of day at the time the script is read, and the script layout will be frozen\naccording to that reference. That means that if the script is directly played, the actual\ntimes will match the absolute timestamps up to the sound controller's clock accuracy, but if\nthe user somehow pauses the playback or seeks, all times will be shifted accordingly.\n"
                },
                {
                    "name": "tedcaptions",
                    "content": "JSON captions used for <http://www.ted.com/>.\n\nTED does not provide links to the captions, but they can be guessed from the page. The file\ntools/bookmarklets.html from the FFmpeg source tree contains a bookmarklet to expose them.\n\nThis demuxer accepts the following option:\n\nstarttime\nSet the start time of the TED talk, in milliseconds. The default is 15000 (15s). It is\nused to sync the captions with the downloadable videos, because they include a 15s intro.\n\nExample: convert the captions to a format most players understand:\n\nffmpeg -i http://www.ted.com/talks/subtitles/id/1/lang/en talk1-en.srt\n"
                },
                {
                    "name": "vapoursynth",
                    "content": "Vapoursynth wrapper.\n\nDue to security concerns, Vapoursynth scripts will not be autodetected so the input format\nhas to be forced. For ff* CLI tools, add \"-f vapoursynth\" before the input \"-i\nyourscript.vpy\".\n\nThis demuxer accepts the following option:\n\nmaxscriptsize\nThe demuxer buffers the entire script into memory. Adjust this value to set the maximum\nbuffer size, which in turn, acts as a ceiling for the size of scripts that can be read.\nDefault is 1 MiB.\n"
                }
            ]
        },
        "MUXERS": {
            "content": "Muxers are configured elements in FFmpeg which allow writing multimedia streams to a\nparticular type of file.\n\nWhen you configure your FFmpeg build, all the supported muxers are enabled by default. You\ncan list all available muxers using the configure option \"--list-muxers\".\n\nYou can disable all the muxers with the configure option \"--disable-muxers\" and selectively\nenable / disable single muxers with the options \"--enable-muxer=MUXER\" /\n\"--disable-muxer=MUXER\".\n\nThe option \"-muxers\" of the ff* tools will display the list of enabled muxers. Use \"-formats\"\nto view a combined list of enabled demuxers and muxers.\n\nA description of some of the currently available muxers follows.\n",
            "subsections": [
                {
                    "name": "aiff",
                    "content": "Audio Interchange File Format muxer.\n\nOptions\n\nIt accepts the following options:\n\nwriteid3v2\nEnable ID3v2 tags writing when set to 1. Default is 0 (disabled).\n\nid3v2version\nSelect ID3v2 version to write. Currently only version 3 and 4 (aka.  ID3v2.3 and ID3v2.4)\nare supported. The default is version 4.\n"
                },
                {
                    "name": "asf",
                    "content": "Advanced Systems Format muxer.\n\nNote that Windows Media Audio (wma) and Windows Media Video (wmv) use this muxer too.\n\nOptions\n\nIt accepts the following options:\n\npacketsize\nSet the muxer packet size. By tuning this setting you may reduce data fragmentation or\nmuxer overhead depending on your source. Default value is 3200, minimum is 100, maximum\nis 64k.\n"
                },
                {
                    "name": "avi",
                    "content": "Audio Video Interleaved muxer.\n\nOptions\n\nIt accepts the following options:\n\nreserveindexspace\nReserve the specified amount of bytes for the OpenDML master index of each stream within\nthe file header. By default additional master indexes are embedded within the data\npackets if there is no space left in the first master index and are linked together as a\nchain of indexes. This index structure can cause problems for some use cases, e.g. third-\nparty software strictly relying on the OpenDML index specification or when file seeking\nis slow. Reserving enough index space in the file header avoids these problems.\n\nThe required index space depends on the output file size and should be about 16 bytes per\ngigabyte. When this option is omitted or set to zero the necessary index space is\nguessed.\n\nwritechannelmask\nWrite the channel layout mask into the audio stream header.\n\nThis option is enabled by default. Disabling the channel mask can be useful in specific\nscenarios, e.g. when merging multiple audio streams into one for compatibility with\nsoftware that only supports a single audio stream in AVI (see the \"amerge\" section in the\nffmpeg-filters manual).\n\nflippedrawrgb\nIf set to true, store positive height for raw RGB bitmaps, which indicates bitmap is\nstored bottom-up. Note that this option does not flip the bitmap which has to be done\nmanually beforehand, e.g. by using the vflip filter.  Default is false and indicates\nbitmap is stored top down.\n"
                },
                {
                    "name": "chromaprint",
                    "content": "Chromaprint fingerprinter.\n\nThis muxer feeds audio data to the Chromaprint library, which generates a fingerprint for the\nprovided audio data. See <https://acoustid.org/chromaprint>\n\nIt takes a single signed native-endian 16-bit raw audio stream of at most 2 channels.\n\nOptions\n\nsilencethreshold\nThreshold for detecting silence. Range is from -1 to 32767, where -1 disables silence\ndetection. Silence detection can only be used with version 3 of the algorithm.  Silence\ndetection must be disabled for use with the AcoustID service. Default is -1.\n"
                },
                {
                    "name": "algorithm",
                    "content": "Version of algorithm to fingerprint with. Range is 0 to 4.  Version 3 enables silence\ndetection. Default is 1.\n\nfpformat\nFormat to output the fingerprint as. Accepts the following options:\n\nraw Binary raw fingerprint\n\ncompressed\nBinary compressed fingerprint\n\nbase64\nBase64 compressed fingerprint (default)\n"
                },
                {
                    "name": "crc",
                    "content": "CRC (Cyclic Redundancy Check) testing format.\n\nThis muxer computes and prints the Adler-32 CRC of all the input audio and video frames. By\ndefault audio frames are converted to signed 16-bit raw audio and video frames to raw video\nbefore computing the CRC.\n\nThe output of the muxer consists of a single line of the form: CRC=0xCRC, where CRC is a\nhexadecimal number 0-padded to 8 digits containing the CRC for all the decoded input frames.\n\nSee also the framecrc muxer.\n\nExamples\n\nFor example to compute the CRC of the input, and store it in the file out.crc:\n\nffmpeg -i INPUT -f crc out.crc\n\nYou can print the CRC to stdout with the command:\n\nffmpeg -i INPUT -f crc -\n\nYou can select the output format of each frame with ffmpeg by specifying the audio and video\ncodec and format. For example to compute the CRC of the input audio converted to PCM unsigned\n8-bit and the input video converted to MPEG-2 video, use the command:\n\nffmpeg -i INPUT -c:a pcmu8 -c:v mpeg2video -f crc -\n"
                },
                {
                    "name": "flv",
                    "content": "Adobe Flash Video Format muxer.\n\nThis muxer accepts the following options:\n\nflvflags flags\nPossible values:\n\naacseqheaderdetect\nPlace AAC sequence header based on audio stream data.\n\nnosequenceend\nDisable sequence end tag.\n\nnometadata\nDisable metadata tag.\n\nnodurationfilesize\nDisable duration and filesize in metadata when they are equal to zero at the end of\nstream. (Be used to non-seekable living stream).\n\naddkeyframeindex\nUsed to facilitate seeking; particularly for HTTP pseudo streaming.\n"
                },
                {
                    "name": "dash",
                    "content": "Dynamic Adaptive Streaming over HTTP (DASH) muxer that creates segments and manifest files\naccording to the MPEG-DASH standard ISO/IEC 23009-1:2014.\n\nFor more information see:\n\n•   ISO DASH Specification:\n<http://standards.iso.org/ittf/PubliclyAvailableStandards/c065274ISOIEC23009-12014.zip>\n\n•   WebM DASH Specification:\n<https://sites.google.com/a/webmproject.org/wiki/adaptive-streaming/webm-dash-specification>\n\nIt creates a MPD manifest file and segment files for each stream.\n\nThe segment filename might contain pre-defined identifiers used with SegmentTemplate as\ndefined in section 5.3.9.4.4 of the standard. Available identifiers are \"$RepresentationID$\",\n\"$Number$\", \"$Bandwidth$\" and \"$Time$\".  In addition to the standard identifiers, an ffmpeg-\nspecific \"$ext$\" identifier is also supported.  When specified ffmpeg will replace $ext$ in\nthe file name with muxing format's extensions such as mp4, webm etc.,\n\nffmpeg -re -i <input> -map 0 -map 0 -c:a libfdkaac -c:v libx264 \\\n-b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline \\\n-profile:v:0 main -bf 1 -keyintmin 120 -g 120 -scthreshold 0 \\\n-bstrategy 0 -ar:a:1 22050 -usetimeline 1 -usetemplate 1 \\\n-windowsize 5 -adaptationsets \"id=0,streams=v id=1,streams=a\" \\\n-f dash /path/to/out.mpd\n\nminsegduration microseconds\nThis is a deprecated option to set the segment length in microseconds, use segduration\ninstead.\n\nsegduration duration\nSet the segment length in seconds (fractional value can be set). The value is treated as\naverage segment duration when usetemplate is enabled and usetimeline is disabled and as\nminimum segment duration for all the other use cases.\n\nfragduration duration\nSet the length in seconds of fragments within segments (fractional value can be set).\n\nfragtype type\nSet the type of interval for fragmentation.\n\nwindowsize size\nSet the maximum number of segments kept in the manifest.\n\nextrawindowsize size\nSet the maximum number of segments kept outside of the manifest before removing from\ndisk.\n\nremoveatexit remove\nEnable (1) or disable (0) removal of all segments when finished.\n\nusetemplate template\nEnable (1) or disable (0) use of SegmentTemplate instead of SegmentList.\n\nusetimeline timeline\nEnable (1) or disable (0) use of SegmentTimeline in SegmentTemplate.\n\nsinglefile singlefile\nEnable (1) or disable (0) storing all segments in one file, accessed using byte ranges.\n\nsinglefilename filename\nDASH-templated name to be used for baseURL. Implies singlefile set to \"1\". In the\ntemplate, \"$ext$\" is replaced with the file name extension specific for the segment\nformat.\n\ninitsegname initname\nDASH-templated name to used for the initialization segment. Default is\n\"init-stream$RepresentationID$.$ext$\". \"$ext$\" is replaced with the file name extension\nspecific for the segment format.\n\nmediasegname segmentname\nDASH-templated name to used for the media segments. Default is\n\"chunk-stream$RepresentationID$-$Number%05d$.$ext$\". \"$ext$\" is replaced with the file\nname extension specific for the segment format.\n\nutctimingurl utcurl\nURL of the page that will return the UTC timestamp in ISO format. Example:\n\"https://time.akamai.com/?iso\"\n\nmethod method\nUse the given HTTP method to create output files. Generally set to PUT or POST.\n\nhttpuseragent useragent\nOverride User-Agent field in HTTP header. Applicable only for HTTP output.\n\nhttppersistent httppersistent\nUse persistent HTTP connections. Applicable only for HTTP output.\n\nhlsplaylist hlsplaylist\nGenerate HLS playlist files as well. The master playlist is generated with the filename\nhlsmastername.  One media playlist file is generated for each stream with filenames\nmedia0.m3u8, media1.m3u8, etc.\n\nhlsmastername filename\nHLS master playlist name. Default is \"master.m3u8\".\n\nstreaming streaming\nEnable (1) or disable (0) chunk streaming mode of output. In chunk streaming mode, each\nframe will be a moof fragment which forms a chunk.\n\nadaptationsets adaptationsets\nAssign streams to AdaptationSets. Syntax is \"id=x,streams=a,b,c id=y,streams=d,e\" with x\nand y being the IDs of the adaptation sets and a,b,c,d and e are the indices of the\nmapped streams.\n\nTo map all video (or audio) streams to an AdaptationSet, \"v\" (or \"a\") can be used as\nstream identifier instead of IDs.\n\nWhen no assignment is defined, this defaults to an AdaptationSet for each stream.\n\nOptional syntax is\n\"id=x,segduration=x,fragduration=x,fragtype=type,descriptor=descriptorstring,streams=a,b,c\nid=y,segduration=y,fragtype=type,streams=d,e\" and so on, descriptor is useful to the\nscheme defined by ISO/IEC 23009-1:2014/Amd.2:2015.  For example, -adaptationsets\n\"id=0,descriptor=<SupplementalProperty schemeIdUri=\\\"urn:mpeg:dash:srd:2014\\\"\nvalue=\\\"0,0,0,1,1,2,2\\\"/>,streams=v\".  Please note that descriptor string should be a\nself-closing xml tag.  segduration, fragduration and fragtype override the global\noption values for each adaptation set.  For example, -adaptationsets\n\"id=0,segduration=2,fragduration=1,fragtype=duration,streams=v\nid=1,segduration=2,fragtype=none,streams=a\" typeid marks an adaptation set as\ncontaining streams meant to be used for Trick Mode for the referenced adaptation set.\nFor example, -adaptationsets \"id=0,segduration=2,fragtype=none,streams=0\nid=1,segduration=10,fragtype=none,trickid=0,streams=1\"\n\ntimeout timeout\nSet timeout for socket I/O operations. Applicable only for HTTP output.\n\nindexcorrection indexcorrection\nEnable (1) or Disable (0) segment index correction logic. Applicable only when\nusetemplate is enabled and usetimeline is disabled.\n\nWhen enabled, the logic monitors the flow of segment indexes. If a streams's segment\nindex value is not at the expected real time position, then the logic corrects that index\nvalue.\n\nTypically this logic is needed in live streaming use cases. The network bandwidth\nfluctuations are common during long run streaming. Each fluctuation can cause the segment\nindexes fall behind the expected real time position.\n\nformatoptions optionslist\nSet container format (mp4/webm) options using a \":\" separated list of key=value\nparameters. Values containing \":\" special characters must be escaped.\n\nglobalsidx globalsidx\nWrite global SIDX atom. Applicable only for single file, mp4 output, non-streaming mode.\n\ndashsegmenttype dashsegmenttype\nPossible values:\n\nauto\nIf this flag is set, the dash segment files format will be selected based on the\nstream codec. This is the default mode.\n\nmp4 If this flag is set, the dash segment files will be in in ISOBMFF format.\n\nwebm\nIf this flag is set, the dash segment files will be in in WebM format.\n\nignoreioerrors ignoreioerrors\nIgnore IO errors during open and write. Useful for long-duration runs with network\noutput.\n\nlhls lhls\nEnable Low-latency HLS(LHLS). Adds #EXT-X-PREFETCH tag with current segment's URI.  Apple\ndoesn't have an official spec for LHLS. Meanwhile hls.js player folks are trying to\nstandardize a open LHLS spec. The draft spec is available in\nhttps://github.com/video-dev/hlsjs-rfcs/blob/lhls-spec/proposals/0001-lhls.md This option\nwill also try to comply with the above open spec, till Apple's spec officially supports\nit.  Applicable only when streaming and hlsplaylist options are enabled.  This is an\nexperimental feature.\n\nldash ldash\nEnable Low-latency Dash by constraining the presence and values of some elements.\n\nmasterm3u8publishrate masterm3u8publishrate\nPublish master playlist repeatedly every after specified number of segment intervals.\n\nwriteprft writeprft\nWrite Producer Reference Time elements on supported streams. This also enables writing\nprft boxes in the underlying muxer. Applicable only when the utcurl option is enabled.\nIt's set to auto by default, in which case the muxer will attempt to enable it only in\nmodes that require it.\n\nmpdprofile mpdprofile\nSet one or more manifest profiles.\n\nhttpopts httpopts\nA :-separated list of key=value options to pass to the underlying HTTP protocol.\nApplicable only for HTTP output.\n\ntargetlatency targetlatency\nSet an intended target latency in seconds (fractional value can be set) for serving.\nApplicable only when streaming and writeprft options are enabled.  This is an\ninformative fields clients can use to measure the latency of the service.\n\nminplaybackrate minplaybackrate\nSet the minimum playback rate indicated as appropriate for the purposes of automatically\nadjusting playback latency and buffer occupancy during normal playback by clients.\n\nmaxplaybackrate maxplaybackrate\nSet the maximum playback rate indicated as appropriate for the purposes of automatically\nadjusting playback latency and buffer occupancy during normal playback by clients.\n\nupdateperiod updateperiod\nSet the mpd update period ,for dynamic content.\nThe unit is second.\n"
                },
                {
                    "name": "framecrc",
                    "content": "Per-packet CRC (Cyclic Redundancy Check) testing format.\n\nThis muxer computes and prints the Adler-32 CRC for each audio and video packet. By default\naudio frames are converted to signed 16-bit raw audio and video frames to raw video before\ncomputing the CRC.\n\nThe output of the muxer consists of a line for each audio and video packet of the form:\n\n<streamindex>, <packetdts>, <packetpts>, <packetduration>, <packetsize>, 0x<CRC>\n\nCRC is a hexadecimal number 0-padded to 8 digits containing the CRC of the packet.\n\nExamples\n\nFor example to compute the CRC of the audio and video frames in INPUT, converted to raw audio\nand video packets, and store it in the file out.crc:\n\nffmpeg -i INPUT -f framecrc out.crc\n\nTo print the information to stdout, use the command:\n\nffmpeg -i INPUT -f framecrc -\n\nWith ffmpeg, you can select the output format to which the audio and video frames are encoded\nbefore computing the CRC for each packet by specifying the audio and video codec. For\nexample, to compute the CRC of each decoded input audio frame converted to PCM unsigned 8-bit\nand of each decoded input video frame converted to MPEG-2 video, use the command:\n\nffmpeg -i INPUT -c:a pcmu8 -c:v mpeg2video -f framecrc -\n\nSee also the crc muxer.\n"
                },
                {
                    "name": "framehash",
                    "content": "Per-packet hash testing format.\n\nThis muxer computes and prints a cryptographic hash for each audio and video packet. This can\nbe used for packet-by-packet equality checks without having to individually do a binary\ncomparison on each.\n\nBy default audio frames are converted to signed 16-bit raw audio and video frames to raw\nvideo before computing the hash, but the output of explicit conversions to other codecs can\nalso be used. It uses the SHA-256 cryptographic hash function by default, but supports\nseveral other algorithms.\n\nThe output of the muxer consists of a line for each audio and video packet of the form:\n\n<streamindex>, <packetdts>, <packetpts>, <packetduration>, <packetsize>, <hash>\n\nhash is a hexadecimal number representing the computed hash for the packet.\n\nhash algorithm\nUse the cryptographic hash function specified by the string algorithm.  Supported values\ninclude \"MD5\", \"murmur3\", \"RIPEMD128\", \"RIPEMD160\", \"RIPEMD256\", \"RIPEMD320\", \"SHA160\",\n\"SHA224\", \"SHA256\" (default), \"SHA512/224\", \"SHA512/256\", \"SHA384\", \"SHA512\", \"CRC32\" and\n\"adler32\".\n\nExamples\n\nTo compute the SHA-256 hash of the audio and video frames in INPUT, converted to raw audio\nand video packets, and store it in the file out.sha256:\n\nffmpeg -i INPUT -f framehash out.sha256\n\nTo print the information to stdout, using the MD5 hash function, use the command:\n\nffmpeg -i INPUT -f framehash -hash md5 -\n\nSee also the hash muxer.\n"
                },
                {
                    "name": "framemd5",
                    "content": "Per-packet MD5 testing format.\n\nThis is a variant of the framehash muxer. Unlike that muxer, it defaults to using the MD5\nhash function.\n\nExamples\n\nTo compute the MD5 hash of the audio and video frames in INPUT, converted to raw audio and\nvideo packets, and store it in the file out.md5:\n\nffmpeg -i INPUT -f framemd5 out.md5\n\nTo print the information to stdout, use the command:\n\nffmpeg -i INPUT -f framemd5 -\n\nSee also the framehash and md5 muxers.\n"
                },
                {
                    "name": "gif",
                    "content": "Animated GIF muxer.\n\nIt accepts the following options:\n"
                },
                {
                    "name": "loop",
                    "content": "Set the number of times to loop the output. Use \"-1\" for no loop, 0 for looping\nindefinitely (default).\n\nfinaldelay\nForce the delay (expressed in centiseconds) after the last frame. Each frame ends with a\ndelay until the next frame. The default is \"-1\", which is a special value to tell the\nmuxer to re-use the previous delay. In case of a loop, you might want to customize this\nvalue to mark a pause for instance.\n\nFor example, to encode a gif looping 10 times, with a 5 seconds delay between the loops:\n\nffmpeg -i INPUT -loop 10 -finaldelay 500 out.gif\n\nNote 1: if you wish to extract the frames into separate GIF files, you need to force the\nimage2 muxer:\n\nffmpeg -i INPUT -c:v gif -f image2 \"out%d.gif\"\n\nNote 2: the GIF format has a very large time base: the delay between two frames can therefore\nnot be smaller than one centi second.\n"
                },
                {
                    "name": "hash",
                    "content": "Hash testing format.\n\nThis muxer computes and prints a cryptographic hash of all the input audio and video frames.\nThis can be used for equality checks without having to do a complete binary comparison.\n\nBy default audio frames are converted to signed 16-bit raw audio and video frames to raw\nvideo before computing the hash, but the output of explicit conversions to other codecs can\nalso be used. Timestamps are ignored. It uses the SHA-256 cryptographic hash function by\ndefault, but supports several other algorithms.\n\nThe output of the muxer consists of a single line of the form: algo=hash, where algo is a\nshort string representing the hash function used, and hash is a hexadecimal number\nrepresenting the computed hash.\n\nhash algorithm\nUse the cryptographic hash function specified by the string algorithm.  Supported values\ninclude \"MD5\", \"murmur3\", \"RIPEMD128\", \"RIPEMD160\", \"RIPEMD256\", \"RIPEMD320\", \"SHA160\",\n\"SHA224\", \"SHA256\" (default), \"SHA512/224\", \"SHA512/256\", \"SHA384\", \"SHA512\", \"CRC32\" and\n\"adler32\".\n\nExamples\n\nTo compute the SHA-256 hash of the input converted to raw audio and video, and store it in\nthe file out.sha256:\n\nffmpeg -i INPUT -f hash out.sha256\n\nTo print an MD5 hash to stdout use the command:\n\nffmpeg -i INPUT -f hash -hash md5 -\n\nSee also the framehash muxer.\n"
                },
                {
                    "name": "hls",
                    "content": "Apple HTTP Live Streaming muxer that segments MPEG-TS according to the HTTP Live Streaming\n(HLS) specification.\n\nIt creates a playlist file, and one or more segment files. The output filename specifies the\nplaylist filename.\n\nBy default, the muxer creates a file for each segment produced. These files have the same\nname as the playlist, followed by a sequential number and a .ts extension.\n\nMake sure to require a closed GOP when encoding and to set the GOP size to fit your segment\ntime constraint.\n\nFor example, to convert an input file with ffmpeg:\n\nffmpeg -i in.mkv -c:v h264 -flags +cgop -g 30 -hlstime 1 out.m3u8\n\nThis example will produce the playlist, out.m3u8, and segment files: out0.ts, out1.ts,\nout2.ts, etc.\n\nSee also the segment muxer, which provides a more generic and flexible implementation of a\nsegmenter, and can be used to perform HLS segmentation.\n\nOptions\n\nThis muxer supports the following options:\n\nhlsinittime duration\nSet the initial target segment length. Default value is 0.\n\nduration must be a time duration specification, see the Time duration section in the\nffmpeg-utils(1) manual.\n\nSegment will be cut on the next key frame after this time has passed on the first m3u8\nlist.  After the initial playlist is filled ffmpeg will cut segments at duration equal to\n\"hlstime\"\n\nhlstime duration\nSet the target segment length. Default value is 2.\n\nduration must be a time duration specification, see the Time duration section in the\nffmpeg-utils(1) manual.  Segment will be cut on the next key frame after this time has\npassed.\n\nhlslistsize size\nSet the maximum number of playlist entries. If set to 0 the list file will contain all\nthe segments. Default value is 5.\n\nhlsdeletethreshold size\nSet the number of unreferenced segments to keep on disk before \"hlsflags\ndeletesegments\" deletes them. Increase this to allow continue clients to download\nsegments which were recently referenced in the playlist. Default value is 1, meaning\nsegments older than \"hlslistsize+1\" will be deleted.\n\nhlstsoptions optionslist\nSet output format options using a :-separated list of key=value parameters. Values\ncontaining \":\" special characters must be escaped.\n\nhlswrap wrap\nThis is a deprecated option, you can use \"hlslistsize\" and \"hlsflags deletesegments\"\ninstead it\n\nThis option is useful to avoid to fill the disk with many segment files, and limits the\nmaximum number of segment files written to disk to wrap.\n\nhlsstartnumbersource\nStart the playlist sequence number (\"#EXT-X-MEDIA-SEQUENCE\") according to the specified\nsource.  Unless \"hlsflags singlefile\" is set, it also specifies source of starting\nsequence numbers of segment and subtitle filenames. In any case, if \"hlsflags\nappendlist\" is set and read playlist sequence number is greater than the specified start\nsequence number, then that value will be used as start value.\n\nIt accepts the following values:\n\ngeneric (default)\nSet the starting sequence numbers according to startnumber option value.\n\nepoch\nThe start number will be the seconds since epoch (1970-01-01 00:00:00)\n\nepochus\nThe start number will be the microseconds since epoch (1970-01-01 00:00:00)\n\ndatetime\nThe start number will be based on the current date/time as YYYYmmddHHMMSS. e.g.\n20161231235759.\n\nstartnumber number\nStart the playlist sequence number (\"#EXT-X-MEDIA-SEQUENCE\") from the specified number\nwhen hlsstartnumbersource value is generic. (This is the default case.)  Unless\n\"hlsflags singlefile\" is set, it also specifies starting sequence numbers of segment\nand subtitle filenames.  Default value is 0.\n\nhlsallowcache allowcache\nExplicitly set whether the client MAY (1) or MUST NOT (0) cache media segments.\n\nhlsbaseurl baseurl\nAppend baseurl to every entry in the playlist.  Useful to generate playlists with\nabsolute paths.\n\nNote that the playlist sequence number must be unique for each segment and it is not to\nbe confused with the segment filename sequence number which can be cyclic, for example if\nthe wrap option is specified.\n\nhlssegmentfilename filename\nSet the segment filename. Unless \"hlsflags singlefile\" is set, filename is used as a\nstring format with the segment number:\n\nffmpeg -i in.nut -hlssegmentfilename 'file%03d.ts' out.m3u8\n\nThis example will produce the playlist, out.m3u8, and segment files: file000.ts,\nfile001.ts, file002.ts, etc.\n\nfilename may contain full path or relative path specification, but only the file name\npart without any path info will be contained in the m3u8 segment list.  Should a relative\npath be specified, the path of the created segment files will be relative to the current\nworking directory.  When strftimemkdir is set, the whole expanded value of filename will\nbe written into the m3u8 segment list.\n\nWhen \"varstreammap\" is set with two or more variant streams, the filename pattern must\ncontain the string \"%v\", this string specifies the position of variant stream index in\nthe generated segment file names.\n\nffmpeg -i in.ts -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k \\\n-map 0:v -map 0:a -map 0:v -map 0:a -f hls -varstreammap \"v:0,a:0 v:1,a:1\" \\\n-hlssegmentfilename 'file%v%03d.ts' out%v.m3u8\n\nThis example will produce the playlists segment file sets: file0000.ts, file0001.ts,\nfile0002.ts, etc. and file1000.ts, file1001.ts, file1002.ts, etc.\n\nThe string \"%v\" may be present in the filename or in the last directory name containing\nthe file, but only in one of them. (Additionally, %v may appear multiple times in the\nlast sub-directory or filename.) If the string %v is present in the directory name, then\nsub-directories are created after expanding the directory name pattern. This enables\ncreation of segments corresponding to different variant streams in subdirectories.\n\nffmpeg -i in.ts -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k \\\n-map 0:v -map 0:a -map 0:v -map 0:a -f hls -varstreammap \"v:0,a:0 v:1,a:1\" \\\n-hlssegmentfilename 'vs%v/file%03d.ts' vs%v/out.m3u8\n\nThis example will produce the playlists segment file sets: vs0/file000.ts,\nvs0/file001.ts, vs0/file002.ts, etc. and vs1/file000.ts, vs1/file001.ts,\nvs1/file002.ts, etc.\n\nuselocaltime\nSame as strftime option, will be deprecated.\n"
                },
                {
                    "name": "strftime",
                    "content": "Use strftime() on filename to expand the segment filename with localtime.  The segment\nnumber is also available in this mode, but to use it, you need to specify\nsecondlevelsegmentindex hlsflag and %%d will be the specifier.\n\nffmpeg -i in.nut -strftime 1 -hlssegmentfilename 'file-%Y%m%d-%s.ts' out.m3u8\n\nThis example will produce the playlist, out.m3u8, and segment files:\nfile-20160215-1455569023.ts, file-20160215-1455569024.ts, etc.  Note: On some\nsystems/environments, the %s specifier is not available. See\n\"strftime()\" documentation.\n\nffmpeg -i in.nut -strftime 1 -hlsflags secondlevelsegmentindex -hlssegmentfilename 'file-%Y%m%d-%%04d.ts' out.m3u8\n\nThis example will produce the playlist, out.m3u8, and segment files:\nfile-20160215-0001.ts, file-20160215-0002.ts, etc.\n\nuselocaltimemkdir\nSame as strftimemkdir option, will be deprecated .\n\nstrftimemkdir\nUsed together with -strftimemkdir, it will create all subdirectories which is expanded\nin filename.\n\nffmpeg -i in.nut -strftime 1 -strftimemkdir 1 -hlssegmentfilename '%Y%m%d/file-%Y%m%d-%s.ts' out.m3u8\n\nThis example will create a directory 201560215 (if it does not exist), and then produce\nthe playlist, out.m3u8, and segment files: 20160215/file-20160215-1455569023.ts,\n20160215/file-20160215-1455569024.ts, etc.\n\nffmpeg -i in.nut -strftime 1 -strftimemkdir 1 -hlssegmentfilename '%Y/%m/%d/file-%Y%m%d-%s.ts' out.m3u8\n\nThis example will create a directory hierarchy 2016/02/15 (if any of them do not exist),\nand then produce the playlist, out.m3u8, and segment files:\n2016/02/15/file-20160215-1455569023.ts, 2016/02/15/file-20160215-1455569024.ts, etc.\n\nhlskeyinfofile keyinfofile\nUse the information in keyinfofile for segment encryption. The first line of\nkeyinfofile specifies the key URI written to the playlist. The key URL is used to\naccess the encryption key during playback. The second line specifies the path to the key\nfile used to obtain the key during the encryption process. The key file is read as a\nsingle packed array of 16 octets in binary format. The optional third line specifies the\ninitialization vector (IV) as a hexadecimal string to be used instead of the segment\nsequence number (default) for encryption. Changes to keyinfofile will result in segment\nencryption with the new key/IV and an entry in the playlist for the new key URI/IV if\n\"hlsflags periodicrekey\" is enabled.\n\nKey info file format:\n\n<key URI>\n<key file path>\n<IV> (optional)\n\nExample key URIs:\n\nhttp://server/file.key\n/path/to/file.key\nfile.key\n\nExample key file paths:\n\nfile.key\n/path/to/file.key\n\nExample IV:\n\n0123456789ABCDEF0123456789ABCDEF\n\nKey info file example:\n\nhttp://server/file.key\n/path/to/file.key\n0123456789ABCDEF0123456789ABCDEF\n\nExample shell script:\n\n#!/bin/sh\nBASEURL=${1:-'.'}\nopenssl rand 16 > file.key\necho $BASEURL/file.key > file.keyinfo\necho file.key >> file.keyinfo\necho $(openssl rand -hex 16) >> file.keyinfo\nffmpeg -f lavfi -re -i testsrc -c:v h264 -hlsflags deletesegments \\\n-hlskeyinfofile file.keyinfo out.m3u8\n"
                },
                {
                    "name": "-hls",
                    "content": "Enable (1) or disable (0) the AES128 encryption.  When enabled every segment generated is\nencrypted and the encryption key is saved as playlist name.key.\n"
                },
                {
                    "name": "-hls",
                    "content": "16-octet key to encrypt the segments, by default it is randomly generated.\n"
                },
                {
                    "name": "-hls",
                    "content": "If set, keyurl is prepended instead of baseurl to the key filename in the playlist.\n"
                },
                {
                    "name": "-hls",
                    "content": "16-octet initialization vector for every segment instead of the autogenerated ones.\n\nhlssegmenttype flags\nPossible values:\n\nmpegts\nOutput segment files in MPEG-2 Transport Stream format. This is compatible with all\nHLS versions.\n\nfmp4\nOutput segment files in fragmented MP4 format, similar to MPEG-DASH.  fmp4 files may\nbe used in HLS version 7 and above.\n\nhlsfmp4initfilename filename\nSet filename to the fragment files header file, default filename is init.mp4.\n\nUse \"-strftime 1\" on filename to expand the segment filename with localtime.\n\nffmpeg -i in.nut  -hlssegmenttype fmp4 -strftime 1 -hlsfmp4initfilename \"%sinit.mp4\" out.m3u8\n\nThis will produce init like this 1602678741init.mp4\n\nhlsfmp4initresend\nResend init file after m3u8 file refresh every time, default is 0.\n\nWhen \"varstreammap\" is set with two or more variant streams, the filename pattern must\ncontain the string \"%v\", this string specifies the position of variant stream index in\nthe generated init file names.  The string \"%v\" may be present in the filename or in the\nlast directory name containing the file. If the string is present in the directory name,\nthen sub-directories are created after expanding the directory name pattern. This enables\ncreation of init files corresponding to different variant streams in subdirectories.\n\nhlsflags flags\nPossible values:\n\nsinglefile\nIf this flag is set, the muxer will store all segments in a single MPEG-TS file, and\nwill use byte ranges in the playlist. HLS playlists generated with this way will have\nthe version number 4.  For example:\n\nffmpeg -i in.nut -hlsflags singlefile out.m3u8\n\nWill produce the playlist, out.m3u8, and a single segment file, out.ts.\n\ndeletesegments\nSegment files removed from the playlist are deleted after a period of time equal to\nthe duration of the segment plus the duration of the playlist.\n\nappendlist\nAppend new segments into the end of old segment list, and remove the \"#EXT-X-ENDLIST\"\nfrom the old segment list.\n\nrounddurations\nRound the duration info in the playlist file segment info to integer values, instead\nof using floating point.\n\ndiscontstart\nAdd the \"#EXT-X-DISCONTINUITY\" tag to the playlist, before the first segment's\ninformation.\n\nomitendlist\nDo not append the \"EXT-X-ENDLIST\" tag at the end of the playlist.\n\nperiodicrekey\nThe file specified by \"hlskeyinfofile\" will be checked periodically and detect\nupdates to the encryption info. Be sure to replace this file atomically, including\nthe file containing the AES encryption key.\n\nindependentsegments\nAdd the \"#EXT-X-INDEPENDENT-SEGMENTS\" to playlists that has video segments and when\nall the segments of that playlist are guaranteed to start with a Key frame.\n\niframesonly\nAdd the \"#EXT-X-I-FRAMES-ONLY\" to playlists that has video segments and can play only\nI-frames in the \"#EXT-X-BYTERANGE\" mode.\n\nsplitbytime\nAllow segments to start on frames other than keyframes. This improves behavior on\nsome players when the time between keyframes is inconsistent, but may make things\nworse on others, and can cause some oddities during seeking. This flag should be used\nwith the \"hlstime\" option.\n\nprogramdatetime\nGenerate \"EXT-X-PROGRAM-DATE-TIME\" tags.\n\nsecondlevelsegmentindex\nMakes it possible to use segment indexes as %%d in hlssegmentfilename expression\nbesides date/time values when strftime is on.  To get fixed width numbers with\ntrailing zeroes, %%0xd format is available where x is the required width.\n\nsecondlevelsegmentsize\nMakes it possible to use segment sizes (counted in bytes) as %%s in\nhlssegmentfilename expression besides date/time values when strftime is on.  To get\nfixed width numbers with trailing zeroes, %%0xs format is available where x is the\nrequired width.\n\nsecondlevelsegmentduration\nMakes it possible to use segment duration (calculated  in microseconds) as %%t in\nhlssegmentfilename expression besides date/time values when strftime is on.  To get\nfixed width numbers with trailing zeroes, %%0xt format is available where x is the\nrequired width.\n\nffmpeg -i sample.mpeg \\\n-f hls -hlstime 3 -hlslistsize 5 \\\n-hlsflags secondlevelsegmentindex+secondlevelsegmentsize+secondlevelsegmentduration \\\n-strftime 1 -strftimemkdir 1 -hlssegmentfilename \"segment%Y%m%d%H%M%S%%04d%%08s%%013t.ts\" stream.m3u8\n\nThis will produce segments like this:\nsegment201701021943340003001222000000003000000.ts,\nsegment201701021943340004001200720000003000000.ts etc.\n\ntempfile\nWrite segment data to filename.tmp and rename to filename only once the segment is\ncomplete. A webserver serving up segments can be configured to reject requests to\n*.tmp to prevent access to in-progress segments before they have been added to the\nm3u8 playlist. This flag also affects how m3u8 playlist files are created.  If this\nflag is set, all playlist files will written into temporary file and renamed after\nthey are complete, similarly as segments are handled.  But playlists with \"file\"\nprotocol and with type (\"hlsplaylisttype\") other than \"vod\" are always written into\ntemporary file regardless of this flag. Master playlist files (\"masterplname\"), if\nany, with \"file\" protocol, are always written into temporary file regardless of this\nflag if \"masterplpublishrate\" value is other than zero.\n\nhlsplaylisttype event\nEmit \"#EXT-X-PLAYLIST-TYPE:EVENT\" in the m3u8 header. Forces hlslistsize to 0; the\nplaylist can only be appended to.\n\nhlsplaylisttype vod\nEmit \"#EXT-X-PLAYLIST-TYPE:VOD\" in the m3u8 header. Forces hlslistsize to 0; the\nplaylist must not change.\n"
                },
                {
                    "name": "method",
                    "content": "Use the given HTTP method to create the hls files.\n\nffmpeg -re -i in.ts -f hls -method PUT http://example.com/live/out.m3u8\n\nThis example will upload all the mpegts segment files to the HTTP server using the HTTP\nPUT method, and update the m3u8 files every \"refresh\" times using the same method.  Note\nthat the HTTP server must support the given method for uploading files.\n\nhttpuseragent\nOverride User-Agent field in HTTP header. Applicable only for HTTP output.\n\nvarstreammap\nMap string which specifies how to group the audio, video and subtitle streams into\ndifferent variant streams. The variant stream groups are separated by space.  Expected\nstring format is like this \"a:0,v:0 a:1,v:1 ....\". Here a:, v:, s: are the keys to\nspecify audio, video and subtitle streams respectively.  Allowed values are 0 to 9\n(limited just based on practical usage).\n\nWhen there are two or more variant streams, the output filename pattern must contain the\nstring \"%v\", this string specifies the position of variant stream index in the output\nmedia playlist filenames. The string \"%v\" may be present in the filename or in the last\ndirectory name containing the file. If the string is present in the directory name, then\nsub-directories are created after expanding the directory name pattern. This enables\ncreation of variant streams in subdirectories.\n\nffmpeg -re -i in.ts -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k \\\n-map 0:v -map 0:a -map 0:v -map 0:a -f hls -varstreammap \"v:0,a:0 v:1,a:1\" \\\nhttp://example.com/live/out%v.m3u8\n\nThis example creates two hls variant streams. The first variant stream will contain video\nstream of bitrate 1000k and audio stream of bitrate 64k and the second variant stream\nwill contain video stream of bitrate 256k and audio stream of bitrate 32k. Here, two\nmedia playlist with file names out0.m3u8 and out1.m3u8 will be created. If you want\nsomething meaningful text instead of indexes in result names, you may specify names for\neach or some of the variants as in the following example.\n\nffmpeg -re -i in.ts -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k \\\n-map 0:v -map 0:a -map 0:v -map 0:a -f hls -varstreammap \"v:0,a:0,name:myhd v:1,a:1,name:mysd\" \\\nhttp://example.com/live/out%v.m3u8\n\nThis example creates two hls variant streams as in the previous one.  But here, the two\nmedia playlist with file names outmyhd.m3u8 and outmysd.m3u8 will be created.\n\nffmpeg -re -i in.ts -b:v:0 1000k -b:v:1 256k -b:a:0 64k \\\n-map 0:v -map 0:a -map 0:v -f hls -varstreammap \"v:0 a:0 v:1\" \\\nhttp://example.com/live/out%v.m3u8\n\nThis example creates three hls variant streams. The first variant stream will be a video\nonly stream with video bitrate 1000k, the second variant stream will be an audio only\nstream with bitrate 64k and the third variant stream will be a video only stream with\nbitrate 256k. Here, three media playlist with file names out0.m3u8, out1.m3u8 and\nout2.m3u8 will be created.\n\nffmpeg -re -i in.ts -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k \\\n-map 0:v -map 0:a -map 0:v -map 0:a -f hls -varstreammap \"v:0,a:0 v:1,a:1\" \\\nhttp://example.com/live/vs%v/out.m3u8\n\nThis example creates the variant streams in subdirectories. Here, the first media\nplaylist is created at http://example.com/live/vs0/out.m3u8 and the second one at\nhttp://example.com/live/vs1/out.m3u8.\n\nffmpeg -re -i in.ts -b:a:0 32k -b:a:1 64k -b:v:0 1000k -b:v:1 3000k  \\\n-map 0:a -map 0:a -map 0:v -map 0:v -f hls \\\n-varstreammap \"a:0,agroup:audlow a:1,agroup:audhigh v:0,agroup:audlow v:1,agroup:audhigh\" \\\n-masterplname master.m3u8 \\\nhttp://example.com/live/out%v.m3u8\n\nThis example creates two audio only and two video only variant streams. In addition to\nthe #EXT-X-STREAM-INF tag for each variant stream in the master playlist, #EXT-X-MEDIA\ntag is also added for the two audio only variant streams and they are mapped to the two\nvideo only variant streams with audio group names 'audlow' and 'audhigh'.\n\nBy default, a single hls variant containing all the encoded streams is created.\n\nffmpeg -re -i in.ts -b:a:0 32k -b:a:1 64k -b:v:0 1000k \\\n-map 0:a -map 0:a -map 0:v -f hls \\\n-varstreammap \"a:0,agroup:audlow,default:yes a:1,agroup:audlow v:0,agroup:audlow\" \\\n-masterplname master.m3u8 \\\nhttp://example.com/live/out%v.m3u8\n\nThis example creates two audio only and one video only variant streams. In addition to\nthe #EXT-X-STREAM-INF tag for each variant stream in the master playlist, #EXT-X-MEDIA\ntag is also added for the two audio only variant streams and they are mapped to the one\nvideo only variant streams with audio group name 'audlow', and the audio group have\ndefault stat is NO or YES.\n\nBy default, a single hls variant containing all the encoded streams is created.\n\nffmpeg -re -i in.ts -b:a:0 32k -b:a:1 64k -b:v:0 1000k \\\n-map 0:a -map 0:a -map 0:v -f hls \\\n-varstreammap \"a:0,agroup:audlow,default:yes,language:ENG a:1,agroup:audlow,language:CHN v:0,agroup:audlow\" \\\n-masterplname master.m3u8 \\\nhttp://example.com/live/out%v.m3u8\n\nThis example creates two audio only and one video only variant streams. In addition to\nthe #EXT-X-STREAM-INF tag for each variant stream in the master playlist, #EXT-X-MEDIA\ntag is also added for the two audio only variant streams and they are mapped to the one\nvideo only variant streams with audio group name 'audlow', and the audio group have\ndefault stat is NO or YES, and one audio have and language is named ENG, the other audio\nlanguage is named CHN.\n\nBy default, a single hls variant containing all the encoded streams is created.\n\nffmpeg -y -i inputwithsubtitle.mkv \\\n-b:v:0 5250k -c:v h264 -pixfmt yuv420p -profile:v main -level 4.1 \\\n-b:a:0 256k \\\n-c:s webvtt -c:a mp2 -ar 48000 -ac 2 -map 0:v -map 0:a:0 -map 0:s:0 \\\n-f hls -varstreammap \"v:0,a:0,s:0,sgroup:subtitle\" \\\n-masterplname master.m3u8 -t 300 -hlstime 10 -hlsinittime 4 -hlslistsize \\\n10 -masterplpublishrate 10  -hlsflags \\\ndeletesegments+discontstart+splitbytime ./tmp/video.m3u8\n\nThis example adds \"#EXT-X-MEDIA\" tag with \"TYPE=SUBTITLES\" in the master playlist with\nwebvtt subtitle group name 'subtitle'. Please make sure the input file has one text\nsubtitle stream at least.\n\nccstreammap\nMap string which specifies different closed captions groups and their attributes. The\nclosed captions stream groups are separated by space.  Expected string format is like\nthis \"ccgroup:<group name>,instreamid:<INSTREAM-ID>,language:<language code> ....\".\n'ccgroup' and 'instreamid' are mandatory attributes. 'language' is an optional attribute.\nThe closed captions groups configured using this option are mapped to different variant\nstreams by providing the same 'ccgroup' name in the \"varstreammap\" string. If\n\"varstreammap\" is not set, then the first available ccgroup in \"ccstreammap\" is\nmapped to the output variant stream. The examples for these two use cases are given\nbelow.\n\nffmpeg -re -i in.ts -b:v 1000k -b:a 64k -a53cc 1 -f hls \\\n-ccstreammap \"ccgroup:cc,instreamid:CC1,language:en\" \\\n-masterplname master.m3u8 \\\nhttp://example.com/live/out.m3u8\n\nThis example adds \"#EXT-X-MEDIA\" tag with \"TYPE=CLOSED-CAPTIONS\" in the master playlist\nwith group name 'cc', language 'en' (english) and INSTREAM-ID 'CC1'. Also, it adds\n\"CLOSED-CAPTIONS\" attribute with group name 'cc' for the output variant stream.\n\nffmpeg -re -i in.ts -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k \\\n-a53cc:0 1 -a53cc:1 1\\\n-map 0:v -map 0:a -map 0:v -map 0:a -f hls \\\n-ccstreammap \"ccgroup:cc,instreamid:CC1,language:en ccgroup:cc,instreamid:CC2,language:sp\" \\\n-varstreammap \"v:0,a:0,ccgroup:cc v:1,a:1,ccgroup:cc\" \\\n-masterplname master.m3u8 \\\nhttp://example.com/live/out%v.m3u8\n\nThis example adds two \"#EXT-X-MEDIA\" tags with \"TYPE=CLOSED-CAPTIONS\" in the master\nplaylist for the INSTREAM-IDs 'CC1' and 'CC2'. Also, it adds \"CLOSED-CAPTIONS\" attribute\nwith group name 'cc' for the two output variant streams.\n\nmasterplname\nCreate HLS master playlist with the given name.\n\nffmpeg -re -i in.ts -f hls -masterplname master.m3u8 http://example.com/live/out.m3u8\n\nThis example creates HLS master playlist with name master.m3u8 and it is published at\nhttp://example.com/live/\n\nmasterplpublishrate\nPublish master play list repeatedly every after specified number of segment intervals.\n\nffmpeg -re -i in.ts -f hls -masterplname master.m3u8 \\\n-hlstime 2 -masterplpublishrate 30 http://example.com/live/out.m3u8\n\nThis example creates HLS master playlist with name master.m3u8 and keep publishing it\nrepeatedly every after 30 segments i.e. every after 60s.\n\nhttppersistent\nUse persistent HTTP connections. Applicable only for HTTP output.\n"
                },
                {
                    "name": "timeout",
                    "content": "Set timeout for socket I/O operations. Applicable only for HTTP output.\n"
                },
                {
                    "name": "-ignore",
                    "content": "Ignore IO errors during open, write and delete. Useful for long-duration runs with\nnetwork output.\n"
                },
                {
                    "name": "headers",
                    "content": "Set custom HTTP headers, can override built in default headers. Applicable only for HTTP\noutput.\n"
                },
                {
                    "name": "ico",
                    "content": "ICO file muxer.\n\nMicrosoft's icon file format (ICO) has some strict limitations that should be noted:\n\n•   Size cannot exceed 256 pixels in any dimension\n\n•   Only BMP and PNG images can be stored\n\n•   If a BMP image is used, it must be one of the following pixel formats:\n\nBMP Bit Depth      FFmpeg Pixel Format\n1bit               pal8\n4bit               pal8\n8bit               pal8\n16bit              rgb555le\n24bit              bgr24\n32bit              bgra\n\n•   If a BMP image is used, it must use the BITMAPINFOHEADER DIB header\n\n•   If a PNG image is used, it must use the rgba pixel format\n"
                },
                {
                    "name": "image2",
                    "content": "Image file muxer.\n\nThe image file muxer writes video frames to image files.\n\nThe output filenames are specified by a pattern, which can be used to produce sequentially\nnumbered series of files.  The pattern may contain the string \"%d\" or \"%0Nd\", this string\nspecifies the position of the characters representing a numbering in the filenames. If the\nform \"%0Nd\" is used, the string representing the number in each filename is 0-padded to N\ndigits. The literal character '%' can be specified in the pattern with the string \"%%\".\n\nIf the pattern contains \"%d\" or \"%0Nd\", the first filename of the file list specified will\ncontain the number 1, all the following numbers will be sequential.\n\nThe pattern may contain a suffix which is used to automatically determine the format of the\nimage files to write.\n\nFor example the pattern \"img-%03d.bmp\" will specify a sequence of filenames of the form\nimg-001.bmp, img-002.bmp, ..., img-010.bmp, etc.  The pattern \"img%%-%d.jpg\" will specify a\nsequence of filenames of the form img%-1.jpg, img%-2.jpg, ..., img%-10.jpg, etc.\n\nThe image muxer supports the .Y.U.V image file format. This format is special in that that\neach image frame consists of three files, for each of the YUV420P components. To read or\nwrite this image file format, specify the name of the '.Y' file. The muxer will automatically\nopen the '.U' and '.V' files as required.\n\nOptions\n\nframepts\nIf set to 1, expand the filename with pts from pkt->pts.  Default value is 0.\n\nstartnumber\nStart the sequence from the specified number. Default value is 1.\n"
                },
                {
                    "name": "update",
                    "content": "If set to 1, the filename will always be interpreted as just a filename, not a pattern,\nand the corresponding file will be continuously overwritten with new images. Default\nvalue is 0.\n"
                },
                {
                    "name": "strftime",
                    "content": "If set to 1, expand the filename with date and time information from \"strftime()\".\nDefault value is 0.\n\nprotocolopts optionslist\nSet protocol options as a :-separated list of key=value parameters. Values containing the\n\":\" special character must be escaped.\n\nExamples\n\nThe following example shows how to use ffmpeg for creating a sequence of files img-001.jpeg,\nimg-002.jpeg, ..., taking one image every second from the input video:\n\nffmpeg -i in.avi -vsync cfr -r 1 -f image2 'img-%03d.jpeg'\n\nNote that with ffmpeg, if the format is not specified with the \"-f\" option and the output\nfilename specifies an image file format, the image2 muxer is automatically selected, so the\nprevious command can be written as:\n\nffmpeg -i in.avi -vsync cfr -r 1 'img-%03d.jpeg'\n\nNote also that the pattern must not necessarily contain \"%d\" or \"%0Nd\", for example to create\na single image file img.jpeg from the start of the input video you can employ the command:\n\nffmpeg -i in.avi -f image2 -frames:v 1 img.jpeg\n\nThe strftime option allows you to expand the filename with date and time information. Check\nthe documentation of the \"strftime()\" function for the syntax.\n\nFor example to generate image files from the \"strftime()\" \"%Y-%m-%d%H-%M-%S\" pattern, the\nfollowing ffmpeg command can be used:\n\nffmpeg -f v4l2 -r 1 -i /dev/video0 -f image2 -strftime 1 \"%Y-%m-%d%H-%M-%S.jpg\"\n\nYou can set the file name with current frame's PTS:\n\nffmpeg -f v4l2 -r 1 -i /dev/video0 -copyts -f image2 -framepts true %d.jpg\"\n\nA more complex example is to publish contents of your desktop directly to a WebDAV server\nevery second:\n\nffmpeg -f x11grab -framerate 1 -i :0.0 -q:v 6 -update 1 -protocolopts method=PUT http://example.com/desktop.jpg\n"
                },
                {
                    "name": "matroska",
                    "content": "Matroska container muxer.\n\nThis muxer implements the matroska and webm container specs.\n\nMetadata\n\nThe recognized metadata settings in this muxer are:\n"
                },
                {
                    "name": "title",
                    "content": "Set title name provided to a single track. This gets mapped to the FileDescription\nelement for a stream written as attachment.\n"
                },
                {
                    "name": "language",
                    "content": "Specify the language of the track in the Matroska languages form.\n\nThe language can be either the 3 letters bibliographic ISO-639-2 (ISO 639-2/B) form (like\n\"fre\" for French), or a language code mixed with a country code for specialities in\nlanguages (like \"fre-ca\" for Canadian French).\n\nstereomode\nSet stereo 3D video layout of two views in a single video track.\n\nThe following values are recognized:\n\nmono\nvideo is not stereo\n\nleftright\nBoth views are arranged side by side, Left-eye view is on the left\n\nbottomtop\nBoth views are arranged in top-bottom orientation, Left-eye view is at bottom\n\ntopbottom\nBoth views are arranged in top-bottom orientation, Left-eye view is on top\n\ncheckerboardrl\nEach view is arranged in a checkerboard interleaved pattern, Left-eye view being\nfirst\n\ncheckerboardlr\nEach view is arranged in a checkerboard interleaved pattern, Right-eye view being\nfirst\n\nrowinterleavedrl\nEach view is constituted by a row based interleaving, Right-eye view is first row\n\nrowinterleavedlr\nEach view is constituted by a row based interleaving, Left-eye view is first row\n\ncolinterleavedrl\nBoth views are arranged in a column based interleaving manner, Right-eye view is\nfirst column\n\ncolinterleavedlr\nBoth views are arranged in a column based interleaving manner, Left-eye view is first\ncolumn\n\nanaglyphcyanred\nAll frames are in anaglyph format viewable through red-cyan filters\n\nrightleft\nBoth views are arranged side by side, Right-eye view is on the left\n\nanaglyphgreenmagenta\nAll frames are in anaglyph format viewable through green-magenta filters\n\nblocklr\nBoth eyes laced in one Block, Left-eye view is first\n\nblockrl\nBoth eyes laced in one Block, Right-eye view is first\n\nFor example a 3D WebM clip can be created using the following command line:\n\nffmpeg -i sampleleftrightclip.mpg -an -c:v libvpx -metadata stereomode=leftright -y stereoclip.webm\n\nOptions\n\nThis muxer supports the following options:\n\nreserveindexspace\nBy default, this muxer writes the index for seeking (called cues in Matroska terms) at\nthe end of the file, because it cannot know in advance how much space to leave for the\nindex at the beginning of the file. However for some use cases -- e.g.  streaming where\nseeking is possible but slow -- it is useful to put the index at the beginning of the\nfile.\n\nIf this option is set to a non-zero value, the muxer will reserve a given amount of space\nin the file header and then try to write the cues there when the muxing finishes. If the\nreserved space does not suffice, no Cues will be written, the file will be finalized and\nwriting the trailer will return an error.  A safe size for most use cases should be about\n50kB per hour of video.\n\nNote that cues are only written if the output is seekable and this option will have no\neffect if it is not.\n\ndefaultmode\nThis option controls how the FlagDefault of the output tracks will be set.  It influences\nwhich tracks players should play by default. The default mode is infer.\n\ninfer\nIn this mode, for each type of track (audio, video or subtitle), if there is a track\nwith disposition default of this type, then the first such track (i.e. the one with\nthe lowest index) will be marked as default; if no such track exists, the first track\nof this type will be marked as default instead (if existing). This ensures that the\ndefault flag is set in a sensible way even if the input originated from containers\nthat lack the concept of default tracks.\n\ninfernosubs\nThis mode is the same as infer except that if no subtitle track with disposition\ndefault exists, no subtitle track will be marked as default.\n\npassthrough\nIn this mode the FlagDefault is set if and only if the AVDISPOSITIONDEFAULT flag is\nset in the disposition of the corresponding stream.\n\nflippedrawrgb\nIf set to true, store positive height for raw RGB bitmaps, which indicates bitmap is\nstored bottom-up. Note that this option does not flip the bitmap which has to be done\nmanually beforehand, e.g. by using the vflip filter.  Default is false and indicates\nbitmap is stored top down.\n"
                },
                {
                    "name": "md5",
                    "content": "MD5 testing format.\n\nThis is a variant of the hash muxer. Unlike that muxer, it defaults to using the MD5 hash\nfunction.\n\nExamples\n\nTo compute the MD5 hash of the input converted to raw audio and video, and store it in the\nfile out.md5:\n\nffmpeg -i INPUT -f md5 out.md5\n\nYou can print the MD5 to stdout with the command:\n\nffmpeg -i INPUT -f md5 -\n\nSee also the hash and framemd5 muxers.\n"
                },
                {
                    "name": "mov, mp4, ismv",
                    "content": "MOV/MP4/ISMV (Smooth Streaming) muxer.\n\nThe mov/mp4/ismv muxer supports fragmentation. Normally, a MOV/MP4 file has all the metadata\nabout all packets stored in one location (written at the end of the file, it can be moved to\nthe start for better playback by adding faststart to the movflags, or using the qt-faststart\ntool). A fragmented file consists of a number of fragments, where packets and metadata about\nthese packets are stored together. Writing a fragmented file has the advantage that the file\nis decodable even if the writing is interrupted (while a normal MOV/MP4 is undecodable if it\nis not properly finished), and it requires less memory when writing very long files (since\nwriting normal MOV/MP4 files stores info about every single packet in memory until the file\nis closed). The downside is that it is less compatible with other applications.\n\nOptions\n\nFragmentation is enabled by setting one of the AVOptions that define how to cut the file into\nfragments:\n"
                },
                {
                    "name": "-moov",
                    "content": "Reserves space for the moov atom at the beginning of the file instead of placing the moov\natom at the end. If the space reserved is insufficient, muxing will fail.\n"
                },
                {
                    "name": "-movflags",
                    "content": "Start a new fragment at each video keyframe.\n"
                },
                {
                    "name": "-frag",
                    "content": "Create fragments that are duration microseconds long.\n"
                },
                {
                    "name": "-frag",
                    "content": "Create fragments that contain up to size bytes of payload data.\n"
                },
                {
                    "name": "-movflags",
                    "content": "Allow the caller to manually choose when to cut fragments, by calling\n\"avwriteframe(ctx, NULL)\" to write a fragment with the packets written so far. (This is\nonly useful with other applications integrating libavformat, not from ffmpeg.)\n"
                },
                {
                    "name": "-min",
                    "content": "Don't create fragments that are shorter than duration microseconds long.\n\nIf more than one condition is specified, fragments are cut when one of the specified\nconditions is fulfilled. The exception to this is \"-minfragduration\", which has to be\nfulfilled for any of the other conditions to apply.\n\nAdditionally, the way the output file is written can be adjusted through a few other options:\n"
                },
                {
                    "name": "-movflags",
                    "content": "Write an initial moov atom directly at the start of the file, without describing any\nsamples in it. Generally, an mdat/moov pair is written at the start of the file, as a\nnormal MOV/MP4 file, containing only a short portion of the file. With this option set,\nthere is no initial mdat atom, and the moov atom only describes the tracks but has a zero\nduration.\n\nThis option is implicitly set when writing ismv (Smooth Streaming) files.\n"
                },
                {
                    "name": "-movflags",
                    "content": "Write a separate moof (movie fragment) atom for each track. Normally, packets for all\ntracks are written in a moof atom (which is slightly more efficient), but with this\noption set, the muxer writes one moof/mdat pair for each track, making it easier to\nseparate tracks.\n\nThis option is implicitly set when writing ismv (Smooth Streaming) files.\n"
                },
                {
                    "name": "-movflags",
                    "content": "Skip writing of sidx atom. When bitrate overhead due to sidx atom is high, this option\ncould be used for cases where sidx atom is not mandatory.  When globalsidx flag is\nenabled, this option will be ignored.\n"
                },
                {
                    "name": "-movflags faststart",
                    "content": "Run a second pass moving the index (moov atom) to the beginning of the file.  This\noperation can take a while, and will not work in various situations such as fragmented\noutput, thus it is not enabled by default.\n"
                },
                {
                    "name": "-movflags rtphint",
                    "content": "Add RTP hinting tracks to the output file.\n"
                },
                {
                    "name": "-movflags",
                    "content": "Disable Nero chapter markers (chpl atom).  Normally, both Nero chapters and a QuickTime\nchapter track are written to the file. With this option set, only the QuickTime chapter\ntrack will be written. Nero chapters can cause failures when the file is reprocessed with\ncertain tagging programs, like mp3Tag 2.61a and iTunes 11.3, most likely other versions\nare affected as well.\n"
                },
                {
                    "name": "-movflags",
                    "content": "Do not write any absolute basedataoffset in tfhd atoms. This avoids tying fragments to\nabsolute byte positions in the file/streams.\n"
                },
                {
                    "name": "-movflags",
                    "content": "Similarly to the omittfhdoffset, this flag avoids writing the absolute basedataoffset\nfield in tfhd atoms, but does so by using the new default-base-is-moof flag instead. This\nflag is new from 14496-12:2012. This may make the fragments easier to parse in certain\ncircumstances (avoiding basing track fragment location calculations on the implicit end\nof the previous track fragment).\n"
                },
                {
                    "name": "-write",
                    "content": "Specify \"on\" to force writing a timecode track, \"off\" to disable it and \"auto\" to write a\ntimecode track only for mov and mp4 output (default).\n"
                },
                {
                    "name": "-movflags",
                    "content": "Enables utilization of version 1 of the CTTS box, in which the CTS offsets can be\nnegative. This enables the initial sample to have DTS/CTS of zero, and reduces the need\nfor edit lists for some cases such as video tracks with B-frames. Additionally, eases\nconformance with the DASH-IF interoperability guidelines.\n\nThis option is implicitly set when writing ismv (Smooth Streaming) files.\n"
                },
                {
                    "name": "-write",
                    "content": "Write producer time reference box (PRFT) with a specified time source for the NTP field\nin the PRFT box. Set value as wallclock to specify timesource as wallclock time and pts\nto specify timesource as input packets' PTS values.\n\nSetting value to pts is applicable only for a live encoding use case, where PTS values\nare set as as wallclock time at the source. For example, an encoding use case with\ndecklink capture source where videopts and audiopts are set to abswallclock.\n\nExample\n\nSmooth Streaming content can be pushed in real time to a publishing point on IIS with this\nmuxer. Example:\n\nffmpeg -re <<normal input/transcoding options>> -movflags isml+fragkeyframe -f ismv http://server/publishingpoint.isml/Streams(Encoder1)\n"
                },
                {
                    "name": "mp3",
                    "content": "The MP3 muxer writes a raw MP3 stream with the following optional features:\n\n•   An ID3v2 metadata header at the beginning (enabled by default). Versions 2.3 and 2.4 are\nsupported, the \"id3v2version\" private option controls which one is used (3 or 4).\nSetting \"id3v2version\" to 0 disables the ID3v2 header completely.\n\nThe muxer supports writing attached pictures (APIC frames) to the ID3v2 header.  The\npictures are supplied to the muxer in form of a video stream with a single packet. There\ncan be any number of those streams, each will correspond to a single APIC frame.  The\nstream metadata tags title and comment map to APIC description and picture type\nrespectively. See <http://id3.org/id3v2.4.0-frames> for allowed picture types.\n\nNote that the APIC frames must be written at the beginning, so the muxer will buffer the\naudio frames until it gets all the pictures. It is therefore advised to provide the\npictures as soon as possible to avoid excessive buffering.\n\n•   A Xing/LAME frame right after the ID3v2 header (if present). It is enabled by default,\nbut will be written only if the output is seekable. The \"writexing\" private option can\nbe used to disable it.  The frame contains various information that may be useful to the\ndecoder, like the audio duration or encoder delay.\n\n•   A legacy ID3v1 tag at the end of the file (disabled by default). It may be enabled with\nthe \"writeid3v1\" private option, but as its capabilities are very limited, its usage is\nnot recommended.\n\nExamples:\n\nWrite an mp3 with an ID3v2.3 header and an ID3v1 footer:\n\nffmpeg -i INPUT -id3v2version 3 -writeid3v1 1 out.mp3\n\nTo attach a picture to an mp3 file select both the audio and the picture stream with \"map\":\n\nffmpeg -i input.mp3 -i cover.png -c copy -map 0 -map 1\n-metadata:s:v title=\"Album cover\" -metadata:s:v comment=\"Cover (Front)\" out.mp3\n\nWrite a \"clean\" MP3 without any extra features:\n\nffmpeg -i input.wav -writexing 0 -id3v2version 0 out.mp3\n"
                },
                {
                    "name": "mpegts",
                    "content": "MPEG transport stream muxer.\n\nThis muxer implements ISO 13818-1 and part of ETSI EN 300 468.\n\nThe recognized metadata settings in mpegts muxer are \"serviceprovider\" and \"servicename\".\nIf they are not set the default for \"serviceprovider\" is FFmpeg and the default for\n\"servicename\" is Service01.\n\nOptions\n\nThe muxer options are:\n\nmpegtstransportstreamid integer\nSet the transportstreamid. This identifies a transponder in DVB.  Default is 0x0001.\n\nmpegtsoriginalnetworkid integer\nSet the originalnetworkid. This is unique identifier of a network in DVB. Its main use\nis in the unique identification of a service through the path OriginalNetworkID,\nTransportStreamID. Default is 0x0001.\n\nmpegtsserviceid integer\nSet the serviceid, also known as program in DVB. Default is 0x0001.\n\nmpegtsservicetype integer\nSet the program servicetype. Default is \"digitaltv\".  Accepts the following options:\n\nhexvalue\nAny hexadecimal value between 0x01 and 0xff as defined in ETSI 300 468.\n\ndigitaltv\nDigital TV service.\n\ndigitalradio\nDigital Radio service.\n\nteletext\nTeletext service.\n\nadvancedcodecdigitalradio\nAdvanced Codec Digital Radio service.\n\nmpeg2digitalhdtv\nMPEG2 Digital HDTV service.\n\nadvancedcodecdigitalsdtv\nAdvanced Codec Digital SDTV service.\n\nadvancedcodecdigitalhdtv\nAdvanced Codec Digital HDTV service.\n\nmpegtspmtstartpid integer\nSet the first PID for PMTs. Default is 0x1000, minimum is 0x0020, maximum is 0x1ffa. This\noption has no effect in m2ts mode where the PMT PID is fixed 0x0100.\n\nmpegtsstartpid integer\nSet the first PID for elementary streams. Default is 0x0100, minimum is 0x0020, maximum\nis 0x1ffa. This option has no effect in m2ts mode where the elementary stream PIDs are\nfixed.\n\nmpegtsm2tsmode boolean\nEnable m2ts mode if set to 1. Default value is \"-1\" which disables m2ts mode.\n\nmuxrate integer\nSet a constant muxrate. Default is VBR.\n\npespayloadsize integer\nSet minimum PES packet payload in bytes. Default is 2930.\n\nmpegtsflags flags\nSet mpegts flags. Accepts the following options:\n\nresendheaders\nReemit PAT/PMT before writing the next packet.\n\nlatm\nUse LATM packetization for AAC.\n\npatpmtatframes\nReemit PAT and PMT at each video frame.\n\nsystemb\nConform to System B (DVB) instead of System A (ATSC).\n\ninitialdiscontinuity\nMark the initial packet of each stream as discontinuity.\n\nmpegtscopyts boolean\nPreserve original timestamps, if value is set to 1. Default value is \"-1\", which results\nin shifting timestamps so that they start from 0.\n\nomitvideopeslength boolean\nOmit the PES packet length for video packets. Default is 1 (true).\n\npcrperiod integer\nOverride the default PCR retransmission time in milliseconds. Default is \"-1\" which means\nthat the PCR interval will be determined automatically: 20 ms is used for CBR streams,\nthe highest multiple of the frame duration which is less than 100 ms is used for VBR\nstreams.\n\npatperiod duration\nMaximum time in seconds between PAT/PMT tables. Default is 0.1.\n\nsdtperiod duration\nMaximum time in seconds between SDT tables. Default is 0.5.\n\ntablesversion integer\nSet PAT, PMT and SDT version (default 0, valid values are from 0 to 31, inclusively).\nThis option allows updating stream structure so that standard consumer may detect the\nchange. To do so, reopen output \"AVFormatContext\" (in case of API usage) or restart\nffmpeg instance, cyclically changing tablesversion value:\n\nffmpeg -i source1.ts -codec copy -f mpegts -tablesversion 0 udp://1.1.1.1:1111\nffmpeg -i source2.ts -codec copy -f mpegts -tablesversion 1 udp://1.1.1.1:1111\n...\nffmpeg -i source3.ts -codec copy -f mpegts -tablesversion 31 udp://1.1.1.1:1111\nffmpeg -i source1.ts -codec copy -f mpegts -tablesversion 0 udp://1.1.1.1:1111\nffmpeg -i source2.ts -codec copy -f mpegts -tablesversion 1 udp://1.1.1.1:1111\n...\n\nExample\n\nffmpeg -i file.mpg -c copy \\\n-mpegtsoriginalnetworkid 0x1122 \\\n-mpegtstransportstreamid 0x3344 \\\n-mpegtsserviceid 0x5566 \\\n-mpegtspmtstartpid 0x1500 \\\n-mpegtsstartpid 0x150 \\\n-metadata serviceprovider=\"Some provider\" \\\n-metadata servicename=\"Some Channel\" \\\nout.ts\n\nmxf, mxfd10, mxfopatom\nMXF muxer.\n\nOptions\n\nThe muxer options are:\n\nstoreusercomments bool\nSet if user comments should be stored if available or never.  IRT D-10 does not allow\nuser comments. The default is thus to write them for mxf and mxfopatom but not for\nmxfd10\n"
                },
                {
                    "name": "null",
                    "content": "Null muxer.\n\nThis muxer does not generate any output file, it is mainly useful for testing or benchmarking\npurposes.\n\nFor example to benchmark decoding with ffmpeg you can use the command:\n\nffmpeg -benchmark -i INPUT -f null out.null\n\nNote that the above command does not read or write the out.null file, but specifying the\noutput file is required by the ffmpeg syntax.\n\nAlternatively you can write the command as:\n\nffmpeg -benchmark -i INPUT -f null -\n"
                },
                {
                    "name": "nut",
                    "content": ""
                },
                {
                    "name": "-syncpoints",
                    "content": "Change the syncpoint usage in nut:\n\ndefault use the normal low-overhead seeking aids.\nnone do not use the syncpoints at all, reducing the overhead but making the stream non-\nseekable;\nUse of this option is not recommended, as the resulting files are very damage\nsensitive and seeking is not possible. Also in general the overhead from\nsyncpoints is negligible. Note, -C<writeindex> 0 can be used to disable\nall growing data tables, allowing to mux endless streams with limited memory\nand without these disadvantages.\n\ntimestamped extend the syncpoint with a wallclock field.\n\nThe none and timestamped flags are experimental.\n"
                },
                {
                    "name": "-write",
                    "content": "Write index at the end, the default is to write an index.\n\nffmpeg -i INPUT -fstrict experimental -syncpoints none - | processor\n"
                },
                {
                    "name": "ogg",
                    "content": "Ogg container muxer.\n"
                },
                {
                    "name": "-page",
                    "content": "Preferred page duration, in microseconds. The muxer will attempt to create pages that are\napproximately duration microseconds long. This allows the user to compromise between seek\ngranularity and container overhead. The default is 1 second. A value of 0 will fill all\nsegments, making pages as large as possible. A value of 1 will effectively use 1 packet-\nper-page in most situations, giving a small seek granularity at the cost of additional\ncontainer overhead.\n"
                },
                {
                    "name": "-serial",
                    "content": "Serial value from which to set the streams serial number.  Setting it to different and\nsufficiently large values ensures that the produced ogg files can be safely chained.\n\nsegment, streamsegment, ssegment\nBasic stream segmenter.\n\nThis muxer outputs streams to a number of separate files of nearly fixed duration. Output\nfilename pattern can be set in a fashion similar to image2, or by using a \"strftime\" template\nif the strftime option is enabled.\n\n\"streamsegment\" is a variant of the muxer used to write to streaming output formats, i.e.\nwhich do not require global headers, and is recommended for outputting e.g. to MPEG transport\nstream segments.  \"ssegment\" is a shorter alias for \"streamsegment\".\n\nEvery segment starts with a keyframe of the selected reference stream, which is set through\nthe referencestream option.\n\nNote that if you want accurate splitting for a video file, you need to make the input key\nframes correspond to the exact splitting times expected by the segmenter, or the segment\nmuxer will start the new segment with the key frame found next after the specified start\ntime.\n\nThe segment muxer works best with a single constant frame rate video.\n\nOptionally it can generate a list of the created segments, by setting the option\nsegmentlist. The list type is specified by the segmentlisttype option. The entry filenames\nin the segment list are set by default to the basename of the corresponding segment files.\n\nSee also the hls muxer, which provides a more specific implementation for HLS segmentation.\n\nOptions\n\nThe segment muxer supports the following options:\n\nincrementtc 1|0\nif set to 1, increment timecode between each segment If this is selected, the input need\nto have a timecode in the first video stream. Default value is 0.\n\nreferencestream specifier\nSet the reference stream, as specified by the string specifier.  If specifier is set to\n\"auto\", the reference is chosen automatically. Otherwise it must be a stream specifier\n(see the ``Stream specifiers'' chapter in the ffmpeg manual) which specifies the\nreference stream. The default value is \"auto\".\n\nsegmentformat format\nOverride the inner container format, by default it is guessed by the filename extension.\n\nsegmentformatoptions optionslist\nSet output format options using a :-separated list of key=value parameters. Values\ncontaining the \":\" special character must be escaped.\n\nsegmentlist name\nGenerate also a listfile named name. If not specified no listfile is generated.\n\nsegmentlistflags flags\nSet flags affecting the segment list generation.\n\nIt currently supports the following flags:\n\ncache\nAllow caching (only affects M3U8 list files).\n\nlive\nAllow live-friendly file generation.\n\nsegmentlistsize size\nUpdate the list file so that it contains at most size segments. If 0 the list file will\ncontain all the segments. Default value is 0.\n\nsegmentlistentryprefix prefix\nPrepend prefix to each entry. Useful to generate absolute paths.  By default no prefix is\napplied.\n\nsegmentlisttype type\nSelect the listing format.\n\nThe following values are recognized:\n\nflat\nGenerate a flat list for the created segments, one segment per line.\n\ncsv, ext\nGenerate a list for the created segments, one segment per line, each line matching\nthe format (comma-separated values):\n\n<segmentfilename>,<segmentstarttime>,<segmentendtime>\n\nsegmentfilename is the name of the output file generated by the muxer according to\nthe provided pattern. CSV escaping (according to RFC4180) is applied if required.\n\nsegmentstarttime and segmentendtime specify the segment start and end time\nexpressed in seconds.\n\nA list file with the suffix \".csv\" or \".ext\" will auto-select this format.\n\next is deprecated in favor or csv.\n\nffconcat\nGenerate an ffconcat file for the created segments. The resulting file can be read\nusing the FFmpeg concat demuxer.\n\nA list file with the suffix \".ffcat\" or \".ffconcat\" will auto-select this format.\n\nm3u8\nGenerate an extended M3U8 file, version 3, compliant with\n<http://tools.ietf.org/id/draft-pantos-http-live-streaming>.\n\nA list file with the suffix \".m3u8\" will auto-select this format.\n\nIf not specified the type is guessed from the list file name suffix.\n\nsegmenttime time\nSet segment duration to time, the value must be a duration specification. Default value\nis \"2\". See also the segmenttimes option.\n\nNote that splitting may not be accurate, unless you force the reference stream key-frames\nat the given time. See the introductory notice and the examples below.\n\nsegmentatclocktime 1|0\nIf set to \"1\" split at regular clock time intervals starting from 00:00 o'clock. The time\nvalue specified in segmenttime is used for setting the length of the splitting interval.\n\nFor example with segmenttime set to \"900\" this makes it possible to create files at\n12:00 o'clock, 12:15, 12:30, etc.\n\nDefault value is \"0\".\n\nsegmentclocktimeoffset duration\nDelay the segment splitting times with the specified duration when using\nsegmentatclocktime.\n\nFor example with segmenttime set to \"900\" and segmentclocktimeoffset set to \"300\" this\nmakes it possible to create files at 12:05, 12:20, 12:35, etc.\n\nDefault value is \"0\".\n\nsegmentclocktimewrapduration duration\nForce the segmenter to only start a new segment if a packet reaches the muxer within the\nspecified duration after the segmenting clock time. This way you can make the segmenter\nmore resilient to backward local time jumps, such as leap seconds or transition to\nstandard time from daylight savings time.\n\nDefault is the maximum possible duration which means starting a new segment regardless of\nthe elapsed time since the last clock time.\n\nsegmenttimedelta delta\nSpecify the accuracy time when selecting the start time for a segment, expressed as a\nduration specification. Default value is \"0\".\n\nWhen delta is specified a key-frame will start a new segment if its PTS satisfies the\nrelation:\n\nPTS >= starttime - timedelta\n\nThis option is useful when splitting video content, which is always split at GOP\nboundaries, in case a key frame is found just before the specified split time.\n\nIn particular may be used in combination with the ffmpeg option forcekeyframes. The key\nframe times specified by forcekeyframes may not be set accurately because of rounding\nissues, with the consequence that a key frame time may result set just before the\nspecified time. For constant frame rate videos a value of 1/(2*framerate) should address\nthe worst case mismatch between the specified time and the time set by forcekeyframes.\n\nsegmenttimes times\nSpecify a list of split points. times contains a list of comma separated duration\nspecifications, in increasing order. See also the segmenttime option.\n\nsegmentframes frames\nSpecify a list of split video frame numbers. frames contains a list of comma separated\ninteger numbers, in increasing order.\n\nThis option specifies to start a new segment whenever a reference stream key frame is\nfound and the sequential number (starting from 0) of the frame is greater or equal to the\nnext value in the list.\n\nsegmentwrap limit\nWrap around segment index once it reaches limit.\n\nsegmentstartnumber number\nSet the sequence number of the first segment. Defaults to 0.\n\nstrftime 1|0\nUse the \"strftime\" function to define the name of the new segments to write. If this is\nselected, the output segment name must contain a \"strftime\" function template. Default\nvalue is 0.\n\nbreaknonkeyframes 1|0\nIf enabled, allow segments to start on frames other than keyframes. This improves\nbehavior on some players when the time between keyframes is inconsistent, but may make\nthings worse on others, and can cause some oddities during seeking. Defaults to 0.\n\nresettimestamps 1|0\nReset timestamps at the beginning of each segment, so that each segment will start with\nnear-zero timestamps. It is meant to ease the playback of the generated segments. May not\nwork with some combinations of muxers/codecs. It is set to 0 by default.\n\ninitialoffset offset\nSpecify timestamp offset to apply to the output packet timestamps. The argument must be a\ntime duration specification, and defaults to 0.\n\nwriteemptysegments 1|0\nIf enabled, write an empty segment if there are no packets during the period a segment\nwould usually span. Otherwise, the segment will be filled with the next packet written.\nDefaults to 0.\n\nMake sure to require a closed GOP when encoding and to set the GOP size to fit your segment\ntime constraint.\n\nExamples\n\n•   Remux the content of file in.mkv to a list of segments out-000.nut, out-001.nut, etc.,\nand write the list of generated segments to out.list:\n\nffmpeg -i in.mkv -codec hevc -flags +cgop -g 60 -map 0 -f segment -segmentlist out.list out%03d.nut\n\n•   Segment input and set output format options for the output segments:\n\nffmpeg -i in.mkv -f segment -segmenttime 10 -segmentformatoptions movflags=+faststart out%03d.mp4\n\n•   Segment the input file according to the split points specified by the segmenttimes\noption:\n\nffmpeg -i in.mkv -codec copy -map 0 -f segment -segmentlist out.csv -segmenttimes 1,2,3,5,8,13,21 out%03d.nut\n\n•   Use the ffmpeg forcekeyframes option to force key frames in the input at the specified\nlocation, together with the segment option segmenttimedelta to account for possible\nroundings operated when setting key frame times.\n\nffmpeg -i in.mkv -forcekeyframes 1,2,3,5,8,13,21 -codec:v mpeg4 -codec:a pcms16le -map 0 \\\n-f segment -segmentlist out.csv -segmenttimes 1,2,3,5,8,13,21 -segmenttimedelta 0.05 out%03d.nut\n\nIn order to force key frames on the input file, transcoding is required.\n\n•   Segment the input file by splitting the input file according to the frame numbers\nsequence specified with the segmentframes option:\n\nffmpeg -i in.mkv -codec copy -map 0 -f segment -segmentlist out.csv -segmentframes 100,200,300,500,800 out%03d.nut\n\n•   Convert the in.mkv to TS segments using the \"libx264\" and \"aac\" encoders:\n\nffmpeg -i in.mkv -map 0 -codec:v libx264 -codec:a aac -f ssegment -segmentlist out.list out%03d.ts\n\n•   Segment the input file, and create an M3U8 live playlist (can be used as live HLS\nsource):\n\nffmpeg -re -i in.mkv -codec copy -map 0 -f segment -segmentlist playlist.m3u8 \\\n-segmentlistflags +live -segmenttime 10 out%03d.mkv\n"
                },
                {
                    "name": "smoothstreaming",
                    "content": "Smooth Streaming muxer generates a set of files (Manifest, chunks) suitable for serving with\nconventional web server.\n\nwindowsize\nSpecify the number of fragments kept in the manifest. Default 0 (keep all).\n\nextrawindowsize\nSpecify the number of fragments kept outside of the manifest before removing from disk.\nDefault 5.\n\nlookaheadcount\nSpecify the number of lookahead fragments. Default 2.\n\nminfragduration\nSpecify the minimum fragment duration (in microseconds). Default 5000000.\n\nremoveatexit\nSpecify whether to remove all fragments when finished. Default 0 (do not remove).\n"
                },
                {
                    "name": "streamhash",
                    "content": "Per stream hash testing format.\n\nThis muxer computes and prints a cryptographic hash of all the input frames, on a per-stream\nbasis. This can be used for equality checks without having to do a complete binary\ncomparison.\n\nBy default audio frames are converted to signed 16-bit raw audio and video frames to raw\nvideo before computing the hash, but the output of explicit conversions to other codecs can\nalso be used. Timestamps are ignored. It uses the SHA-256 cryptographic hash function by\ndefault, but supports several other algorithms.\n\nThe output of the muxer consists of one line per stream of the form:\nstreamindex,streamtype,algo=hash, where streamindex is the index of the mapped stream,\nstreamtype is a single character indicating the type of stream, algo is a short string\nrepresenting the hash function used, and hash is a hexadecimal number representing the\ncomputed hash.\n\nhash algorithm\nUse the cryptographic hash function specified by the string algorithm.  Supported values\ninclude \"MD5\", \"murmur3\", \"RIPEMD128\", \"RIPEMD160\", \"RIPEMD256\", \"RIPEMD320\", \"SHA160\",\n\"SHA224\", \"SHA256\" (default), \"SHA512/224\", \"SHA512/256\", \"SHA384\", \"SHA512\", \"CRC32\" and\n\"adler32\".\n\nExamples\n\nTo compute the SHA-256 hash of the input converted to raw audio and video, and store it in\nthe file out.sha256:\n\nffmpeg -i INPUT -f streamhash out.sha256\n\nTo print an MD5 hash to stdout use the command:\n\nffmpeg -i INPUT -f streamhash -hash md5 -\n\nSee also the hash and framehash muxers.\n"
                },
                {
                    "name": "fifo",
                    "content": "The fifo pseudo-muxer allows the separation of encoding and muxing by using first-in-first-\nout queue and running the actual muxer in a separate thread. This is especially useful in\ncombination with the tee muxer and can be used to send data to several destinations with\ndifferent reliability/writing speed/latency.\n\nAPI users should be aware that callback functions (interruptcallback, ioopen and ioclose)\nused within its AVFormatContext must be thread-safe.\n\nThe behavior of the fifo muxer if the queue fills up or if the output fails is selectable,\n\n•   output can be transparently restarted with configurable delay between retries based on\nreal time or time of the processed stream.\n\n•   encoding can be blocked during temporary failure, or continue transparently dropping\npackets in case fifo queue fills up.\n\nfifoformat\nSpecify the format name. Useful if it cannot be guessed from the output name suffix.\n\nqueuesize\nSpecify size of the queue (number of packets). Default value is 60.\n\nformatopts\nSpecify format options for the underlying muxer. Muxer options can be specified as a list\nof key=value pairs separated by ':'.\n\ndroppktsonoverflow bool\nIf set to 1 (true), in case the fifo queue fills up, packets will be dropped rather than\nblocking the encoder. This makes it possible to continue streaming without delaying the\ninput, at the cost of omitting part of the stream. By default this option is set to 0\n(false), so in such cases the encoder will be blocked until the muxer processes some of\nthe packets and none of them is lost.\n\nattemptrecovery bool\nIf failure occurs, attempt to recover the output. This is especially useful when used\nwith network output, since it makes it possible to restart streaming transparently.  By\ndefault this option is set to 0 (false).\n\nmaxrecoveryattempts\nSets maximum number of successive unsuccessful recovery attempts after which the output\nfails permanently. By default this option is set to 0 (unlimited).\n\nrecoverywaittime duration\nWaiting time before the next recovery attempt after previous unsuccessful recovery\nattempt. Default value is 5 seconds.\n\nrecoverywaitstreamtime bool\nIf set to 0 (false), the real time is used when waiting for the recovery attempt (i.e.\nthe recovery will be attempted after at least recoverywaittime seconds).  If set to 1\n(true), the time of the processed stream is taken into account instead (i.e. the recovery\nwill be attempted after at least recoverywaittime seconds of the stream is omitted).\nBy default, this option is set to 0 (false).\n\nrecoveranyerror bool\nIf set to 1 (true), recovery will be attempted regardless of type of the error causing\nthe failure. By default this option is set to 0 (false) and in case of certain (usually\npermanent) errors the recovery is not attempted even when attemptrecovery is set to 1.\n\nrestartwithkeyframe bool\nSpecify whether to wait for the keyframe after recovering from queue overflow or failure.\nThis option is set to 0 (false) by default.\n\ntimeshift duration\nBuffer the specified amount of packets and delay writing the output. Note that queuesize\nmust be big enough to store the packets for timeshift. At the end of the input the fifo\nbuffer is flushed at realtime speed.\n\nExamples\n\n•   Stream something to rtmp server, continue processing the stream at real-time rate even in\ncase of temporary failure (network outage) and attempt to recover streaming every second\nindefinitely.\n\nffmpeg -re -i ... -c:v libx264 -c:a aac -f fifo -fifoformat flv -map 0:v -map 0:a\n-droppktsonoverflow 1 -attemptrecovery 1 -recoverywaittime 1 rtmp://example.com/live/streamname\n"
                },
                {
                    "name": "tee",
                    "content": "The tee muxer can be used to write the same data to several outputs, such as files or\nstreams.  It can be used, for example, to stream a video over a network and save it to disk\nat the same time.\n\nIt is different from specifying several outputs to the ffmpeg command-line tool. With the tee\nmuxer, the audio and video data will be encoded only once.  With conventional multiple\noutputs, multiple encoding operations in parallel are initiated, which can be a very\nexpensive process. The tee muxer is not useful when using the libavformat API directly\nbecause it is then possible to feed the same packets to several muxers directly.\n\nSince the tee muxer does not represent any particular output format, ffmpeg cannot auto-\nselect output streams. So all streams intended for output must be specified using \"-map\". See\nthe examples below.\n\nSome encoders may need different options depending on the output format; the auto-detection\nof this can not work with the tee muxer, so they need to be explicitly specified.  The main\nexample is the globalheader flag.\n\nThe slave outputs are specified in the file name given to the muxer, separated by '|'. If any\nof the slave name contains the '|' separator, leading or trailing spaces or any special\ncharacter, those must be escaped (see the \"Quoting and escaping\" section in the\nffmpeg-utils(1) manual).\n\nOptions\n\nusefifo bool\nIf set to 1, slave outputs will be processed in separate threads using the fifo muxer.\nThis allows to compensate for different speed/latency/reliability of outputs and setup\ntransparent recovery. By default this feature is turned off.\n\nfifooptions\nOptions to pass to fifo pseudo-muxer instances. See fifo.\n\nMuxer options can be specified for each slave by prepending them as a list of key=value pairs\nseparated by ':', between square brackets. If the options values contain a special character\nor the ':' separator, they must be escaped; note that this is a second level escaping.\n\nThe following special options are also recognized:\n\nf   Specify the format name. Required if it cannot be guessed from the output URL.\n\nbsfs[/spec]\nSpecify a list of bitstream filters to apply to the specified output.\n\nIt is possible to specify to which streams a given bitstream filter applies, by appending\na stream specifier to the option separated by \"/\". spec must be a stream specifier (see\nFormat stream specifiers).\n\nIf the stream specifier is not specified, the bitstream filters will be applied to all\nstreams in the output. This will cause that output operation to fail if the output\ncontains streams to which the bitstream filter cannot be applied e.g. \"h264mp4toannexb\"\nbeing applied to an output containing an audio stream.\n\nOptions for a bitstream filter must be specified in the form of \"opt=value\".\n\nSeveral bitstream filters can be specified, separated by \",\".\n\nusefifo bool\nThis allows to override tee muxer usefifo option for individual slave muxer.\n\nfifooptions\nThis allows to override tee muxer fifooptions for individual slave muxer.  See fifo.\n"
                },
                {
                    "name": "select",
                    "content": "Select the streams that should be mapped to the slave output, specified by a stream\nspecifier. If not specified, this defaults to all the mapped streams. This will cause\nthat output operation to fail if the output format does not accept all mapped streams.\n\nYou may use multiple stream specifiers separated by commas (\",\") e.g.: \"a:0,v\"\n"
                },
                {
                    "name": "onfail",
                    "content": "Specify behaviour on output failure. This can be set to either \"abort\" (which is default)\nor \"ignore\". \"abort\" will cause whole process to fail in case of failure on this slave\noutput. \"ignore\" will ignore failure on this output, so other outputs will continue\nwithout being affected.\n\nExamples\n\n•   Encode something and both archive it in a WebM file and stream it as MPEG-TS over UDP:\n\nffmpeg -i ... -c:v libx264 -c:a mp2 -f tee -map 0:v -map 0:a\n\"archive-20121107.mkv|[f=mpegts]udp://10.0.1.255:1234/\"\n\n•   As above, but continue streaming even if output to local file fails (for example local\ndrive fills up):\n\nffmpeg -i ... -c:v libx264 -c:a mp2 -f tee -map 0:v -map 0:a\n\"[onfail=ignore]archive-20121107.mkv|[f=mpegts]udp://10.0.1.255:1234/\"\n\n•   Use ffmpeg to encode the input, and send the output to three different destinations. The\n\"dumpextra\" bitstream filter is used to add extradata information to all the output\nvideo keyframes packets, as requested by the MPEG-TS format. The select option is applied\nto out.aac in order to make it contain only audio packets.\n\nffmpeg -i ... -map 0 -flags +globalheader -c:v libx264 -c:a aac\n-f tee \"[bsfs/v=dumpextra=freq=keyframe]out.ts|[movflags=+faststart]out.mp4|[select=a]out.aac\"\n\n•   As above, but select only stream \"a:1\" for the audio output. Note that a second level\nescaping must be performed, as \":\" is a special character used to separate options.\n\nffmpeg -i ... -map 0 -flags +globalheader -c:v libx264 -c:a aac\n-f tee \"[bsfs/v=dumpextra=freq=keyframe]out.ts|[movflags=+faststart]out.mp4|[select=\\'a:1\\']out.aac\"\n\nwebmdashmanifest\nWebM DASH Manifest muxer.\n\nThis muxer implements the WebM DASH Manifest specification to generate the DASH manifest XML.\nIt also supports manifest generation for DASH live streams.\n\nFor more information see:\n\n•   WebM DASH Specification:\n<https://sites.google.com/a/webmproject.org/wiki/adaptive-streaming/webm-dash-specification>\n\n•   ISO DASH Specification:\n<http://standards.iso.org/ittf/PubliclyAvailableStandards/c065274ISOIEC23009-12014.zip>\n\nOptions\n\nThis muxer supports the following options:\n\nadaptationsets\nThis option has the following syntax: \"id=x,streams=a,b,c id=y,streams=d,e\" where x and y\nare the unique identifiers of the adaptation sets and a,b,c,d and e are the indices of\nthe corresponding audio and video streams. Any number of adaptation sets can be added\nusing this option.\n"
                },
                {
                    "name": "live",
                    "content": "Set this to 1 to create a live stream DASH Manifest. Default: 0.\n\nchunkstartindex\nStart index of the first chunk. This will go in the startNumber attribute of the\nSegmentTemplate element in the manifest. Default: 0.\n\nchunkdurationms\nDuration of each chunk in milliseconds. This will go in the duration attribute of the\nSegmentTemplate element in the manifest. Default: 1000.\n\nutctimingurl\nURL of the page that will return the UTC timestamp in ISO format. This will go in the\nvalue attribute of the UTCTiming element in the manifest.  Default: None.\n\ntimeshiftbufferdepth\nSmallest time (in seconds) shifting buffer for which any Representation is guaranteed to\nbe available. This will go in the timeShiftBufferDepth attribute of the MPD element.\nDefault: 60.\n\nminimumupdateperiod\nMinimum update period (in seconds) of the manifest. This will go in the\nminimumUpdatePeriod attribute of the MPD element. Default: 0.\n\nExample\n\nffmpeg -f webmdashmanifest -i video1.webm \\\n-f webmdashmanifest -i video2.webm \\\n-f webmdashmanifest -i audio1.webm \\\n-f webmdashmanifest -i audio2.webm \\\n-map 0 -map 1 -map 2 -map 3 \\\n-c copy \\\n-f webmdashmanifest \\\n-adaptationsets \"id=0,streams=0,1 id=1,streams=2,3\" \\\nmanifest.xml\n\nwebmchunk\nWebM Live Chunk Muxer.\n\nThis muxer writes out WebM headers and chunks as separate files which can be consumed by\nclients that support WebM Live streams via DASH.\n\nOptions\n\nThis muxer supports the following options:\n\nchunkstartindex\nIndex of the first chunk (defaults to 0).\n"
                },
                {
                    "name": "header",
                    "content": "Filename of the header where the initialization data will be written.\n\naudiochunkduration\nDuration of each audio chunk in milliseconds (defaults to 5000).\n\nExample\n\nffmpeg -f v4l2 -i /dev/video0 \\\n-f alsa -i hw:0 \\\n-map 0:0 \\\n-c:v libvpx-vp9 \\\n-s 640x360 -keyintmin 30 -g 30 \\\n-f webmchunk \\\n-header webmlivevideo360.hdr \\\n-chunkstartindex 1 \\\nwebmlivevideo360%d.chk \\\n-map 1:0 \\\n-c:a libvorbis \\\n-b:a 128k \\\n-f webmchunk \\\n-header webmliveaudio128.hdr \\\n-chunkstartindex 1 \\\n-audiochunkduration 1000 \\\nwebmliveaudio128%d.chk\n"
                }
            ]
        },
        "METADATA": {
            "content": "FFmpeg is able to dump metadata from media files into a simple UTF-8-encoded INI-like text\nfile and then load it back using the metadata muxer/demuxer.\n\nThe file format is as follows:\n\n1.  A file consists of a header and a number of metadata tags divided into sections, each on\nits own line.\n\n2.  The header is a ;FFMETADATA string, followed by a version number (now 1).\n\n3.  Metadata tags are of the form key=value\n\n4.  Immediately after header follows global metadata\n\n5.  After global metadata there may be sections with per-stream/per-chapter metadata.\n\n6.  A section starts with the section name in uppercase (i.e. STREAM or CHAPTER) in brackets\n([, ]) and ends with next section or end of file.\n\n7.  At the beginning of a chapter section there may be an optional timebase to be used for\nstart/end values. It must be in form TIMEBASE=num/den, where num and den are integers. If\nthe timebase is missing then start/end times are assumed to be in nanoseconds.\n\nNext a chapter section must contain chapter start and end times in form START=num,\nEND=num, where num is a positive integer.\n\n8.  Empty lines and lines starting with ; or # are ignored.\n\n9.  Metadata keys or values containing special characters (=, ;, #, \\ and a newline) must be\nescaped with a backslash \\.\n\n10. Note that whitespace in metadata (e.g. foo = bar) is considered to be a part of the tag\n(in the example above key is foo , value is\nbar).\n\nA ffmetadata file might look like this:\n\n;FFMETADATA1\ntitle=bike\\\\shed\n;this is a comment\nartist=FFmpeg troll team\n\n[CHAPTER]\nTIMEBASE=1/1000\nSTART=0\n#chapter ends at 0:01:00\nEND=60000\ntitle=chapter \\#1\n[STREAM]\ntitle=multi\\\nline\n\nBy using the ffmetadata muxer and demuxer it is possible to extract metadata from an input\nfile to an ffmetadata file, and then transcode the file into an output file with the edited\nffmetadata file.\n\nExtracting an ffmetadata file with ffmpeg goes as follows:\n\nffmpeg -i INPUT -f ffmetadata FFMETADATAFILE\n\nReinserting edited metadata information from the FFMETADATAFILE file can be done as:\n\nffmpeg -i INPUT -i FFMETADATAFILE -mapmetadata 1 -codec copy OUTPUT\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ffmpeg(1), ffplay(1), ffprobe(1), libavformat(3)\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\nFFMPEG-FORMATS(1)",
            "subsections": []
        }
    },
    "summary": "ffmpeg-formats - FFmpeg formats",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "ffmpeg",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffmpeg/1/json"
        },
        {
            "name": "ffplay",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffplay/1/json"
        },
        {
            "name": "ffprobe",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ffprobe/1/json"
        },
        {
            "name": "libavformat",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/libavformat/3/json"
        }
    ]
}