You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

633 lines
23KB

  1. @chapter Muxers
  2. @c man begin MUXERS
  3. Muxers are configured elements in Libav which allow writing
  4. multimedia streams to a particular type of file.
  5. When you configure your Libav build, all the supported muxers
  6. are enabled by default. You can list all available muxers using the
  7. configure option @code{--list-muxers}.
  8. You can disable all the muxers with the configure option
  9. @code{--disable-muxers} and selectively enable / disable single muxers
  10. with the options @code{--enable-muxer=@var{MUXER}} /
  11. @code{--disable-muxer=@var{MUXER}}.
  12. The option @code{-formats} of the av* tools will display the list of
  13. enabled muxers.
  14. A description of some of the currently available muxers follows.
  15. @anchor{crc}
  16. @section crc
  17. CRC (Cyclic Redundancy Check) testing format.
  18. This muxer computes and prints the Adler-32 CRC of all the input audio
  19. and video frames. By default audio frames are converted to signed
  20. 16-bit raw audio and video frames to raw video before computing the
  21. CRC.
  22. The output of the muxer consists of a single line of the form:
  23. CRC=0x@var{CRC}, where @var{CRC} is a hexadecimal number 0-padded to
  24. 8 digits containing the CRC for all the decoded input frames.
  25. For example to compute the CRC of the input, and store it in the file
  26. @file{out.crc}:
  27. @example
  28. avconv -i INPUT -f crc out.crc
  29. @end example
  30. You can print the CRC to stdout with the command:
  31. @example
  32. avconv -i INPUT -f crc -
  33. @end example
  34. You can select the output format of each frame with @command{avconv} by
  35. specifying the audio and video codec and format. For example to
  36. compute the CRC of the input audio converted to PCM unsigned 8-bit
  37. and the input video converted to MPEG-2 video, use the command:
  38. @example
  39. avconv -i INPUT -c:a pcm_u8 -c:v mpeg2video -f crc -
  40. @end example
  41. See also the @ref{framecrc} muxer.
  42. @anchor{dash}
  43. @section dash
  44. Dynamic Adaptive Streaming over HTTP (DASH) muxer that creates segments
  45. and manifest files according to the MPEG-DASH standard ISO/IEC 23009-1:2014.
  46. For more information see:
  47. @itemize @bullet
  48. @item
  49. ISO DASH Specification: @url{http://standards.iso.org/ittf/PubliclyAvailableStandards/c065274_ISO_IEC_23009-1_2014.zip}
  50. @item
  51. WebM DASH Specification: @url{https://sites.google.com/a/webmproject.org/wiki/adaptive-streaming/webm-dash-specification}
  52. @end itemize
  53. It creates a MPD manifest file and segment files for each stream.
  54. The segment filename might contain pre-defined identifiers used with SegmentTemplate
  55. as defined in section 5.3.9.4.4 of the standard. Available identifiers are "$RepresentationID$",
  56. "$Number$", "$Bandwidth$" and "$Time$".
  57. @example
  58. avconv -re -i <input> -map 0 -map 0 -c:a libfdk_aac -c:v libx264
  59. -b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline
  60. -profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0
  61. -b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1
  62. -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a"
  63. -f dash /path/to/out.mpd
  64. @end example
  65. @table @option
  66. @item -min_seg_duration @var{microseconds}
  67. Set the segment length in microseconds.
  68. @item -window_size @var{size}
  69. Set the maximum number of segments kept in the manifest.
  70. @item -extra_window_size @var{size}
  71. Set the maximum number of segments kept outside of the manifest before removing from disk.
  72. @item -remove_at_exit @var{remove}
  73. Enable (1) or disable (0) removal of all segments when finished.
  74. @item -use_template @var{template}
  75. Enable (1) or disable (0) use of SegmentTemplate instead of SegmentList.
  76. @item -use_timeline @var{timeline}
  77. Enable (1) or disable (0) use of SegmentTimeline in SegmentTemplate.
  78. @item -single_file @var{single_file}
  79. Enable (1) or disable (0) storing all segments in one file, accessed using byte ranges.
  80. @item -single_file_name @var{file_name}
  81. DASH-templated name to be used for baseURL. Implies @var{single_file} set to "1".
  82. @item -init_seg_name @var{init_name}
  83. DASH-templated name to used for the initialization segment. Default is "init-stream$RepresentationID$.m4s"
  84. @item -media_seg_name @var{segment_name}
  85. DASH-templated name to used for the media segments. Default is "chunk-stream$RepresentationID$-$Number%05d$.m4s"
  86. @item -utc_timing_url @var{utc_url}
  87. URL of the page that will return the UTC timestamp in ISO format. Example: "https://time.akamai.com/?iso"
  88. @item -adaptation_sets @var{adaptation_sets}
  89. Assign streams to AdaptationSets. Syntax is "id=x,streams=a,b,c id=y,streams=d,e" with x and y being the IDs
  90. of the adaptation sets and a,b,c,d and e are the indices of the mapped streams.
  91. To map all video (or audio) streams to an AdaptationSet, "v" (or "a") can be used as stream identifier instead of IDs.
  92. When no assignment is defined, this defaults to an AdaptationSet for each stream.
  93. @end table
  94. @anchor{framecrc}
  95. @section framecrc
  96. Per-frame CRC (Cyclic Redundancy Check) testing format.
  97. This muxer computes and prints the Adler-32 CRC for each decoded audio
  98. and video frame. By default audio frames are converted to signed
  99. 16-bit raw audio and video frames to raw video before computing the
  100. CRC.
  101. The output of the muxer consists of a line for each audio and video
  102. frame of the form: @var{stream_index}, @var{frame_dts},
  103. @var{frame_size}, 0x@var{CRC}, where @var{CRC} is a hexadecimal
  104. number 0-padded to 8 digits containing the CRC of the decoded frame.
  105. For example to compute the CRC of each decoded frame in the input, and
  106. store it in the file @file{out.crc}:
  107. @example
  108. avconv -i INPUT -f framecrc out.crc
  109. @end example
  110. You can print the CRC of each decoded frame to stdout with the command:
  111. @example
  112. avconv -i INPUT -f framecrc -
  113. @end example
  114. You can select the output format of each frame with @command{avconv} by
  115. specifying the audio and video codec and format. For example, to
  116. compute the CRC of each decoded input audio frame converted to PCM
  117. unsigned 8-bit and of each decoded input video frame converted to
  118. MPEG-2 video, use the command:
  119. @example
  120. avconv -i INPUT -c:a pcm_u8 -c:v mpeg2video -f framecrc -
  121. @end example
  122. See also the @ref{crc} muxer.
  123. @anchor{hls}
  124. @section hls
  125. Apple HTTP Live Streaming muxer that segments MPEG-TS according to
  126. the HTTP Live Streaming specification.
  127. It creates a playlist file and numbered segment files. The output
  128. filename specifies the playlist filename; the segment filenames
  129. receive the same basename as the playlist, a sequential number and
  130. a .ts extension.
  131. @example
  132. avconv -i in.nut out.m3u8
  133. @end example
  134. @table @option
  135. @item -hls_time @var{seconds}
  136. Set the segment length in seconds.
  137. @item -hls_list_size @var{size}
  138. Set the maximum number of playlist entries.
  139. @item -hls_wrap @var{wrap}
  140. Set the number after which index wraps.
  141. @item -start_number @var{number}
  142. Start the sequence from @var{number}.
  143. @item -hls_base_url @var{baseurl}
  144. Append @var{baseurl} to every entry in the playlist.
  145. Useful to generate playlists with absolute paths.
  146. @item -hls_allow_cache @var{allowcache}
  147. Explicitly set whether the client MAY (1) or MUST NOT (0) cache media segments
  148. @item -hls_version @var{version}
  149. Set the protocol version. Enables or disables version-specific features
  150. such as the integer (version 2) or decimal EXTINF values (version 3).
  151. @item -hls_enc @var{enc}
  152. Enable (1) or disable (0) the AES128 encryption.
  153. When enabled every segment generated is encrypted and the encryption key
  154. is saved as @var{playlist name}.key.
  155. @item -hls_enc_key @var{key}
  156. Use the specified hex-coded 16byte key to encrypt the segments, by default it
  157. is randomly generated.
  158. @item -hls_enc_key_url @var{keyurl}
  159. If set, @var{keyurl} is prepended instead of @var{baseurl} to the key filename
  160. in the playlist.
  161. @item -hls_enc_iv @var{iv}
  162. Use a specified hex-coded 16byte initialization vector for every segment instead
  163. of the autogenerated ones.
  164. @end table
  165. @anchor{image2}
  166. @section image2
  167. Image file muxer.
  168. The image file muxer writes video frames to image files.
  169. The output filenames are specified by a pattern, which can be used to
  170. produce sequentially numbered series of files.
  171. The pattern may contain the string "%d" or "%0@var{N}d", this string
  172. specifies the position of the characters representing a numbering in
  173. the filenames. If the form "%0@var{N}d" is used, the string
  174. representing the number in each filename is 0-padded to @var{N}
  175. digits. The literal character '%' can be specified in the pattern with
  176. the string "%%".
  177. If the pattern contains "%d" or "%0@var{N}d", the first filename of
  178. the file list specified will contain the number 1, all the following
  179. numbers will be sequential.
  180. The pattern may contain a suffix which is used to automatically
  181. determine the format of the image files to write.
  182. For example the pattern "img-%03d.bmp" will specify a sequence of
  183. filenames of the form @file{img-001.bmp}, @file{img-002.bmp}, ...,
  184. @file{img-010.bmp}, etc.
  185. The pattern "img%%-%d.jpg" will specify a sequence of filenames of the
  186. form @file{img%-1.jpg}, @file{img%-2.jpg}, ..., @file{img%-10.jpg},
  187. etc.
  188. The following example shows how to use @command{avconv} for creating a
  189. sequence of files @file{img-001.jpeg}, @file{img-002.jpeg}, ...,
  190. taking one image every second from the input video:
  191. @example
  192. avconv -i in.avi -vsync 1 -r 1 -f image2 'img-%03d.jpeg'
  193. @end example
  194. Note that with @command{avconv}, if the format is not specified with the
  195. @code{-f} option and the output filename specifies an image file
  196. format, the image2 muxer is automatically selected, so the previous
  197. command can be written as:
  198. @example
  199. avconv -i in.avi -vsync 1 -r 1 'img-%03d.jpeg'
  200. @end example
  201. Note also that the pattern must not necessarily contain "%d" or
  202. "%0@var{N}d", for example to create a single image file
  203. @file{img.jpeg} from the input video you can employ the command:
  204. @example
  205. avconv -i in.avi -f image2 -frames:v 1 img.jpeg
  206. @end example
  207. @table @option
  208. @item -start_number @var{number}
  209. Start the sequence from @var{number}.
  210. @item -update @var{number}
  211. If @var{number} is nonzero, the filename will always be interpreted as just a
  212. filename, not a pattern, and this file will be continuously overwritten with new
  213. images.
  214. @end table
  215. @section matroska
  216. Matroska container muxer.
  217. This muxer implements the matroska and webm container specs.
  218. The recognized metadata settings in this muxer are:
  219. @table @option
  220. @item title=@var{title name}
  221. Name provided to a single track
  222. @end table
  223. @table @option
  224. @item language=@var{language name}
  225. Specifies the language of the track in the Matroska languages form
  226. @end table
  227. @table @option
  228. @item STEREO_MODE=@var{mode}
  229. Stereo 3D video layout of two views in a single video track
  230. @table @option
  231. @item mono
  232. video is not stereo
  233. @item left_right
  234. Both views are arranged side by side, Left-eye view is on the left
  235. @item bottom_top
  236. Both views are arranged in top-bottom orientation, Left-eye view is at bottom
  237. @item top_bottom
  238. Both views are arranged in top-bottom orientation, Left-eye view is on top
  239. @item checkerboard_rl
  240. Each view is arranged in a checkerboard interleaved pattern, Left-eye view being first
  241. @item checkerboard_lr
  242. Each view is arranged in a checkerboard interleaved pattern, Right-eye view being first
  243. @item row_interleaved_rl
  244. Each view is constituted by a row based interleaving, Right-eye view is first row
  245. @item row_interleaved_lr
  246. Each view is constituted by a row based interleaving, Left-eye view is first row
  247. @item col_interleaved_rl
  248. Both views are arranged in a column based interleaving manner, Right-eye view is first column
  249. @item col_interleaved_lr
  250. Both views are arranged in a column based interleaving manner, Left-eye view is first column
  251. @item anaglyph_cyan_red
  252. All frames are in anaglyph format viewable through red-cyan filters
  253. @item right_left
  254. Both views are arranged side by side, Right-eye view is on the left
  255. @item anaglyph_green_magenta
  256. All frames are in anaglyph format viewable through green-magenta filters
  257. @item block_lr
  258. Both eyes laced in one Block, Left-eye view is first
  259. @item block_rl
  260. Both eyes laced in one Block, Right-eye view is first
  261. @end table
  262. @end table
  263. For example a 3D WebM clip can be created using the following command line:
  264. @example
  265. avconv -i sample_left_right_clip.mpg -an -c:v libvpx -metadata STEREO_MODE=left_right -y stereo_clip.webm
  266. @end example
  267. This muxer supports the following options:
  268. @table @option
  269. @item reserve_index_space
  270. By default, this muxer writes the index for seeking (called cues in Matroska
  271. terms) at the end of the file, because it cannot know in advance how much space
  272. to leave for the index at the beginning of the file. However for some use cases
  273. -- e.g. streaming where seeking is possible but slow -- it is useful to put the
  274. index at the beginning of the file.
  275. If this option is set to a non-zero value, the muxer will reserve a given amount
  276. of space in the file header and then try to write the cues there when the muxing
  277. finishes. If the available space does not suffice, muxing will fail. A safe size
  278. for most use cases should be about 50kB per hour of video.
  279. Note that cues are only written if the output is seekable and this option will
  280. have no effect if it is not.
  281. @end table
  282. @section mov, mp4, ismv
  283. The mov/mp4/ismv muxer supports fragmentation. Normally, a MOV/MP4
  284. file has all the metadata about all packets stored in one location
  285. (written at the end of the file, it can be moved to the start for
  286. better playback using the @command{qt-faststart} tool). A fragmented
  287. file consists of a number of fragments, where packets and metadata
  288. about these packets are stored together. Writing a fragmented
  289. file has the advantage that the file is decodable even if the
  290. writing is interrupted (while a normal MOV/MP4 is undecodable if
  291. it is not properly finished), and it requires less memory when writing
  292. very long files (since writing normal MOV/MP4 files stores info about
  293. every single packet in memory until the file is closed). The downside
  294. is that it is less compatible with other applications.
  295. Fragmentation is enabled by setting one of the AVOptions that define
  296. how to cut the file into fragments:
  297. @table @option
  298. @item -movflags frag_keyframe
  299. Start a new fragment at each video keyframe.
  300. @item -frag_duration @var{duration}
  301. Create fragments that are @var{duration} microseconds long.
  302. @item -frag_size @var{size}
  303. Create fragments that contain up to @var{size} bytes of payload data.
  304. @item -movflags frag_custom
  305. Allow the caller to manually choose when to cut fragments, by
  306. calling @code{av_write_frame(ctx, NULL)} to write a fragment with
  307. the packets written so far. (This is only useful with other
  308. applications integrating libavformat, not from @command{avconv}.)
  309. @item -min_frag_duration @var{duration}
  310. Don't create fragments that are shorter than @var{duration} microseconds long.
  311. @end table
  312. If more than one condition is specified, fragments are cut when
  313. one of the specified conditions is fulfilled. The exception to this is
  314. @code{-min_frag_duration}, which has to be fulfilled for any of the other
  315. conditions to apply.
  316. Additionally, the way the output file is written can be adjusted
  317. through a few other options:
  318. @table @option
  319. @item -movflags empty_moov
  320. Write an initial moov atom directly at the start of the file, without
  321. describing any samples in it. Generally, an mdat/moov pair is written
  322. at the start of the file, as a normal MOV/MP4 file, containing only
  323. a short portion of the file. With this option set, there is no initial
  324. mdat atom, and the moov atom only describes the tracks but has
  325. a zero duration.
  326. This option is implicitly set when writing ismv (Smooth Streaming) files.
  327. @item -movflags separate_moof
  328. Write a separate moof (movie fragment) atom for each track. Normally,
  329. packets for all tracks are written in a moof atom (which is slightly
  330. more efficient), but with this option set, the muxer writes one moof/mdat
  331. pair for each track, making it easier to separate tracks.
  332. This option is implicitly set when writing ismv (Smooth Streaming) files.
  333. @item -movflags faststart
  334. Run a second pass moving the index (moov atom) to the beginning of the file.
  335. This operation can take a while, and will not work in various situations such
  336. as fragmented output, thus it is not enabled by default.
  337. @item -movflags disable_chpl
  338. Disable Nero chapter markers (chpl atom). Normally, both Nero chapters
  339. and a QuickTime chapter track are written to the file. With this option
  340. set, only the QuickTime chapter track will be written. Nero chapters can
  341. cause failures when the file is reprocessed with certain tagging programs.
  342. @item -movflags omit_tfhd_offset
  343. Do not write any absolute base_data_offset in tfhd atoms. This avoids
  344. tying fragments to absolute byte positions in the file/streams.
  345. @item -movflags default_base_moof
  346. Similarly to the omit_tfhd_offset, this flag avoids writing the
  347. absolute base_data_offset field in tfhd atoms, but does so by using
  348. the new default-base-is-moof flag instead. This flag is new from
  349. 14496-12:2012. This may make the fragments easier to parse in certain
  350. circumstances (avoiding basing track fragment location calculations
  351. on the implicit end of the previous track fragment).
  352. @end table
  353. Smooth Streaming content can be pushed in real time to a publishing
  354. point on IIS with this muxer. Example:
  355. @example
  356. avconv -re @var{<normal input/transcoding options>} -movflags isml+frag_keyframe -f ismv http://server/publishingpoint.isml/Streams(Encoder1)
  357. @end example
  358. @section mp3
  359. The MP3 muxer writes a raw MP3 stream with the following optional features:
  360. @itemize @bullet
  361. @item
  362. An ID3v2 metadata header at the beginning (enabled by default). Versions 2.3 and
  363. 2.4 are supported, the @code{id3v2_version} private option controls which one is
  364. used (3 or 4). Setting @code{id3v2_version} to 0 disables the ID3v2 header
  365. completely.
  366. The muxer supports writing attached pictures (APIC frames) to the ID3v2 header.
  367. The pictures are supplied to the muxer in form of a video stream with a single
  368. packet. There can be any number of those streams, each will correspond to a
  369. single APIC frame. The stream metadata tags @var{title} and @var{comment} map
  370. to APIC @var{description} and @var{picture type} respectively. See
  371. @url{http://id3.org/id3v2.4.0-frames} for allowed picture types.
  372. Note that the APIC frames must be written at the beginning, so the muxer will
  373. buffer the audio frames until it gets all the pictures. It is therefore advised
  374. to provide the pictures as soon as possible to avoid excessive buffering.
  375. @item
  376. A Xing/LAME frame right after the ID3v2 header (if present). It is enabled by
  377. default, but will be written only if the output is seekable. The
  378. @code{write_xing} private option can be used to disable it. The frame contains
  379. various information that may be useful to the decoder, like the audio duration
  380. or encoder delay.
  381. @item
  382. A legacy ID3v1 tag at the end of the file (disabled by default). It may be
  383. enabled with the @code{write_id3v1} private option, but as its capabilities are
  384. very limited, its usage is not recommended.
  385. @end itemize
  386. Examples:
  387. Write an mp3 with an ID3v2.3 header and an ID3v1 footer:
  388. @example
  389. avconv -i INPUT -id3v2_version 3 -write_id3v1 1 out.mp3
  390. @end example
  391. Attach a picture to an mp3:
  392. @example
  393. avconv -i input.mp3 -i cover.png -c copy -metadata:s:v title="Album cover"
  394. -metadata:s:v comment="Cover (Front)" out.mp3
  395. @end example
  396. Write a "clean" MP3 without any extra features:
  397. @example
  398. avconv -i input.wav -write_xing 0 -id3v2_version 0 out.mp3
  399. @end example
  400. @section mpegts
  401. MPEG transport stream muxer.
  402. This muxer implements ISO 13818-1 and part of ETSI EN 300 468.
  403. The muxer options are:
  404. @table @option
  405. @item -mpegts_original_network_id @var{number}
  406. Set the original_network_id (default 0x0001). This is unique identifier
  407. of a network in DVB. Its main use is in the unique identification of a
  408. service through the path Original_Network_ID, Transport_Stream_ID.
  409. @item -mpegts_transport_stream_id @var{number}
  410. Set the transport_stream_id (default 0x0001). This identifies a
  411. transponder in DVB.
  412. @item -mpegts_service_id @var{number}
  413. Set the service_id (default 0x0001) also known as program in DVB.
  414. @item -mpegts_pmt_start_pid @var{number}
  415. Set the first PID for PMT (default 0x1000, max 0x1f00).
  416. @item -mpegts_start_pid @var{number}
  417. Set the first PID for data packets (default 0x0100, max 0x0f00).
  418. @item -muxrate @var{number}
  419. Set a constant muxrate (default VBR).
  420. @item -pcr_period @var{numer}
  421. Override the default PCR retransmission time (default 20ms), ignored
  422. if variable muxrate is selected.
  423. @end table
  424. The recognized metadata settings in mpegts muxer are @code{service_provider}
  425. and @code{service_name}. If they are not set the default for
  426. @code{service_provider} is "Libav" and the default for
  427. @code{service_name} is "Service01".
  428. @example
  429. avconv -i file.mpg -c copy \
  430. -mpegts_original_network_id 0x1122 \
  431. -mpegts_transport_stream_id 0x3344 \
  432. -mpegts_service_id 0x5566 \
  433. -mpegts_pmt_start_pid 0x1500 \
  434. -mpegts_start_pid 0x150 \
  435. -metadata service_provider="Some provider" \
  436. -metadata service_name="Some Channel" \
  437. -y out.ts
  438. @end example
  439. @section null
  440. Null muxer.
  441. This muxer does not generate any output file, it is mainly useful for
  442. testing or benchmarking purposes.
  443. For example to benchmark decoding with @command{avconv} you can use the
  444. command:
  445. @example
  446. avconv -benchmark -i INPUT -f null out.null
  447. @end example
  448. Note that the above command does not read or write the @file{out.null}
  449. file, but specifying the output file is required by the @command{avconv}
  450. syntax.
  451. Alternatively you can write the command as:
  452. @example
  453. avconv -benchmark -i INPUT -f null -
  454. @end example
  455. @section nut
  456. @table @option
  457. @item -syncpoints @var{flags}
  458. Change the syncpoint usage in nut:
  459. @table @option
  460. @item @var{default} use the normal low-overhead seeking aids.
  461. @item @var{none} do not use the syncpoints at all, reducing the overhead but making the stream non-seekable;
  462. @item @var{timestamped} extend the syncpoint with a wallclock field.
  463. @end table
  464. The @var{none} and @var{timestamped} flags are experimental.
  465. @end table
  466. @example
  467. avconv -i INPUT -f_strict experimental -syncpoints none - | processor
  468. @end example
  469. @section ogg
  470. Ogg container muxer.
  471. @table @option
  472. @item -page_duration @var{duration}
  473. Preferred page duration, in microseconds. The muxer will attempt to create
  474. pages that are approximately @var{duration} microseconds long. This allows the
  475. user to compromise between seek granularity and container overhead. The default
  476. is 1 second. A value of 0 will fill all segments, making pages as large as
  477. possible. A value of 1 will effectively use 1 packet-per-page in most
  478. situations, giving a small seek granularity at the cost of additional container
  479. overhead.
  480. @item -serial_offset @var{value}
  481. Serial value from which to set the streams serial number.
  482. Setting it to different and sufficiently large values ensures that the produced
  483. ogg files can be safely chained.
  484. @end table
  485. @section segment
  486. Basic stream segmenter.
  487. The segmenter muxer outputs streams to a number of separate files of nearly
  488. fixed duration. Output filename pattern can be set in a fashion similar to
  489. @ref{image2}.
  490. Every segment starts with a video keyframe, if a video stream is present.
  491. The segment muxer works best with a single constant frame rate video.
  492. Optionally it can generate a flat list of the created segments, one segment
  493. per line.
  494. @table @option
  495. @item segment_format @var{format}
  496. Override the inner container format, by default it is guessed by the filename
  497. extension.
  498. @item segment_time @var{t}
  499. Set segment duration to @var{t} seconds.
  500. @item segment_list @var{name}
  501. Generate also a listfile named @var{name}.
  502. @item segment_list_type @var{type}
  503. Select the listing format.
  504. @table @option
  505. @item @var{flat} use a simple flat list of entries.
  506. @item @var{hls} use a m3u8-like structure.
  507. @end table
  508. @item segment_list_size @var{size}
  509. Overwrite the listfile once it reaches @var{size} entries.
  510. @item segment_list_entry_prefix @var{prefix}
  511. Prepend @var{prefix} to each entry. Useful to generate absolute paths.
  512. @item segment_wrap @var{limit}
  513. Wrap around segment index once it reaches @var{limit}.
  514. @end table
  515. @example
  516. avconv -i in.mkv -c copy -map 0 -f segment -list out.list out%03d.nut
  517. @end example
  518. @c man end MUXERS