bitstream_filters.texi 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. @chapter Bitstream Filters
  2. @c man begin BITSTREAM FILTERS
  3. When you configure your FFmpeg build, all the supported bitstream
  4. filters are enabled by default. You can list all available ones using
  5. the configure option @code{--list-bsfs}.
  6. You can disable all the bitstream filters using the configure option
  7. @code{--disable-bsfs}, and selectively enable any bitstream filter using
  8. the option @code{--enable-bsf=BSF}, or you can disable a particular
  9. bitstream filter using the option @code{--disable-bsf=BSF}.
  10. The option @code{-bsfs} of the ff* tools will display the list of
  11. all the supported bitstream filters included in your build.
  12. The ff* tools have a -bsf option applied per stream, taking a
  13. comma-separated list of filters, whose parameters follow the filter
  14. name after a '='.
  15. @example
  16. ffmpeg -i INPUT -c:v copy -bsf:v filter1[=opt1=str1:opt2=str2][,filter2] OUTPUT
  17. @end example
  18. Below is a description of the currently available bitstream filters,
  19. with their parameters, if any.
  20. @section aac_adtstoasc
  21. Convert MPEG-2/4 AAC ADTS to an MPEG-4 Audio Specific Configuration
  22. bitstream.
  23. This filter creates an MPEG-4 AudioSpecificConfig from an MPEG-2/4
  24. ADTS header and removes the ADTS header.
  25. This filter is required for example when copying an AAC stream from a
  26. raw ADTS AAC or an MPEG-TS container to MP4A-LATM, to an FLV file, or
  27. to MOV/MP4 files and related formats such as 3GP or M4A. Please note
  28. that it is auto-inserted for MP4A-LATM and MOV/MP4 and related formats.
  29. @section av1_metadata
  30. Modify metadata embedded in an AV1 stream.
  31. @table @option
  32. @item td
  33. Insert or remove temporal delimiter OBUs in all temporal units of the
  34. stream.
  35. @table @samp
  36. @item insert
  37. Insert a TD at the beginning of every TU which does not already have one.
  38. @item remove
  39. Remove the TD from the beginning of every TU which has one.
  40. @end table
  41. @item color_primaries
  42. @item transfer_characteristics
  43. @item matrix_coefficients
  44. Set the color description fields in the stream (see AV1 section 6.4.2).
  45. @item color_range
  46. Set the color range in the stream (see AV1 section 6.4.2; note that
  47. this cannot be set for streams using BT.709 primaries, sRGB transfer
  48. characteristic and identity (RGB) matrix coefficients).
  49. @table @samp
  50. @item tv
  51. Limited range.
  52. @item pc
  53. Full range.
  54. @end table
  55. @item chroma_sample_position
  56. Set the chroma sample location in the stream (see AV1 section 6.4.2).
  57. This can only be set for 4:2:0 streams.
  58. @table @samp
  59. @item vertical
  60. Left position (matching the default in MPEG-2 and H.264).
  61. @item colocated
  62. Top-left position.
  63. @end table
  64. @item tick_rate
  65. Set the tick rate (@emph{num_units_in_display_tick / time_scale}) in
  66. the timing info in the sequence header.
  67. @item num_ticks_per_picture
  68. Set the number of ticks in each picture, to indicate that the stream
  69. has a fixed framerate. Ignored if @option{tick_rate} is not also set.
  70. @item delete_padding
  71. Deletes Padding OBUs.
  72. @end table
  73. @section chomp
  74. Remove zero padding at the end of a packet.
  75. @section dca_core
  76. Extract the core from a DCA/DTS stream, dropping extensions such as
  77. DTS-HD.
  78. @section dump_extra
  79. Add extradata to the beginning of the filtered packets except when
  80. said packets already exactly begin with the extradata that is intended
  81. to be added.
  82. @table @option
  83. @item freq
  84. The additional argument specifies which packets should be filtered.
  85. It accepts the values:
  86. @table @samp
  87. @item k
  88. @item keyframe
  89. add extradata to all key packets
  90. @item e
  91. @item all
  92. add extradata to all packets
  93. @end table
  94. @end table
  95. If not specified it is assumed @samp{k}.
  96. For example the following @command{ffmpeg} command forces a global
  97. header (thus disabling individual packet headers) in the H.264 packets
  98. generated by the @code{libx264} encoder, but corrects them by adding
  99. the header stored in extradata to the key packets:
  100. @example
  101. ffmpeg -i INPUT -map 0 -flags:v +global_header -c:v libx264 -bsf:v dump_extra out.ts
  102. @end example
  103. @section eac3_core
  104. Extract the core from a E-AC-3 stream, dropping extra channels.
  105. @section extract_extradata
  106. Extract the in-band extradata.
  107. Certain codecs allow the long-term headers (e.g. MPEG-2 sequence headers,
  108. or H.264/HEVC (VPS/)SPS/PPS) to be transmitted either "in-band" (i.e. as a part
  109. of the bitstream containing the coded frames) or "out of band" (e.g. on the
  110. container level). This latter form is called "extradata" in FFmpeg terminology.
  111. This bitstream filter detects the in-band headers and makes them available as
  112. extradata.
  113. @table @option
  114. @item remove
  115. When this option is enabled, the long-term headers are removed from the
  116. bitstream after extraction.
  117. @end table
  118. @section filter_units
  119. Remove units with types in or not in a given set from the stream.
  120. @table @option
  121. @item pass_types
  122. List of unit types or ranges of unit types to pass through while removing
  123. all others. This is specified as a '|'-separated list of unit type values
  124. or ranges of values with '-'.
  125. @item remove_types
  126. Identical to @option{pass_types}, except the units in the given set
  127. removed and all others passed through.
  128. @end table
  129. Extradata is unchanged by this transformation, but note that if the stream
  130. contains inline parameter sets then the output may be unusable if they are
  131. removed.
  132. For example, to remove all non-VCL NAL units from an H.264 stream:
  133. @example
  134. ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=pass_types=1-5' OUTPUT
  135. @end example
  136. To remove all AUDs, SEI and filler from an H.265 stream:
  137. @example
  138. ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=35|38-40' OUTPUT
  139. @end example
  140. @section hapqa_extract
  141. Extract Rgb or Alpha part of an HAPQA file, without recompression, in order to create an HAPQ or an HAPAlphaOnly file.
  142. @table @option
  143. @item texture
  144. Specifies the texture to keep.
  145. @table @option
  146. @item color
  147. @item alpha
  148. @end table
  149. @end table
  150. Convert HAPQA to HAPQ
  151. @example
  152. ffmpeg -i hapqa_inputfile.mov -c copy -bsf:v hapqa_extract=texture=color -tag:v HapY -metadata:s:v:0 encoder="HAPQ" hapq_file.mov
  153. @end example
  154. Convert HAPQA to HAPAlphaOnly
  155. @example
  156. ffmpeg -i hapqa_inputfile.mov -c copy -bsf:v hapqa_extract=texture=alpha -tag:v HapA -metadata:s:v:0 encoder="HAPAlpha Only" hapalphaonly_file.mov
  157. @end example
  158. @section h264_metadata
  159. Modify metadata embedded in an H.264 stream.
  160. @table @option
  161. @item aud
  162. Insert or remove AUD NAL units in all access units of the stream.
  163. @table @samp
  164. @item insert
  165. @item remove
  166. @end table
  167. @item sample_aspect_ratio
  168. Set the sample aspect ratio of the stream in the VUI parameters.
  169. @item overscan_appropriate_flag
  170. Set whether the stream is suitable for display using overscan
  171. or not (see H.264 section E.2.1).
  172. @item video_format
  173. @item video_full_range_flag
  174. Set the video format in the stream (see H.264 section E.2.1 and
  175. table E-2).
  176. @item colour_primaries
  177. @item transfer_characteristics
  178. @item matrix_coefficients
  179. Set the colour description in the stream (see H.264 section E.2.1
  180. and tables E-3, E-4 and E-5).
  181. @item chroma_sample_loc_type
  182. Set the chroma sample location in the stream (see H.264 section
  183. E.2.1 and figure E-1).
  184. @item tick_rate
  185. Set the tick rate (num_units_in_tick / time_scale) in the VUI
  186. parameters. This is the smallest time unit representable in the
  187. stream, and in many cases represents the field rate of the stream
  188. (double the frame rate).
  189. @item fixed_frame_rate_flag
  190. Set whether the stream has fixed framerate - typically this indicates
  191. that the framerate is exactly half the tick rate, but the exact
  192. meaning is dependent on interlacing and the picture structure (see
  193. H.264 section E.2.1 and table E-6).
  194. @item crop_left
  195. @item crop_right
  196. @item crop_top
  197. @item crop_bottom
  198. Set the frame cropping offsets in the SPS. These values will replace
  199. the current ones if the stream is already cropped.
  200. These fields are set in pixels. Note that some sizes may not be
  201. representable if the chroma is subsampled or the stream is interlaced
  202. (see H.264 section 7.4.2.1.1).
  203. @item sei_user_data
  204. Insert a string as SEI unregistered user data. The argument must
  205. be of the form @emph{UUID+string}, where the UUID is as hex digits
  206. possibly separated by hyphens, and the string can be anything.
  207. For example, @samp{086f3693-b7b3-4f2c-9653-21492feee5b8+hello} will
  208. insert the string ``hello'' associated with the given UUID.
  209. @item delete_filler
  210. Deletes both filler NAL units and filler SEI messages.
  211. @item level
  212. Set the level in the SPS. Refer to H.264 section A.3 and tables A-1
  213. to A-5.
  214. The argument must be the name of a level (for example, @samp{4.2}), a
  215. level_idc value (for example, @samp{42}), or the special name @samp{auto}
  216. indicating that the filter should attempt to guess the level from the
  217. input stream properties.
  218. @end table
  219. @section h264_mp4toannexb
  220. Convert an H.264 bitstream from length prefixed mode to start code
  221. prefixed mode (as defined in the Annex B of the ITU-T H.264
  222. specification).
  223. This is required by some streaming formats, typically the MPEG-2
  224. transport stream format (muxer @code{mpegts}).
  225. For example to remux an MP4 file containing an H.264 stream to mpegts
  226. format with @command{ffmpeg}, you can use the command:
  227. @example
  228. ffmpeg -i INPUT.mp4 -codec copy -bsf:v h264_mp4toannexb OUTPUT.ts
  229. @end example
  230. Please note that this filter is auto-inserted for MPEG-TS (muxer
  231. @code{mpegts}) and raw H.264 (muxer @code{h264}) output formats.
  232. @section h264_redundant_pps
  233. This applies a specific fixup to some Blu-ray streams which contain
  234. redundant PPSs modifying irrelevant parameters of the stream which
  235. confuse other transformations which require correct extradata.
  236. A new single global PPS is created, and all of the redundant PPSs
  237. within the stream are removed.
  238. @section hevc_metadata
  239. Modify metadata embedded in an HEVC stream.
  240. @table @option
  241. @item aud
  242. Insert or remove AUD NAL units in all access units of the stream.
  243. @table @samp
  244. @item insert
  245. @item remove
  246. @end table
  247. @item sample_aspect_ratio
  248. Set the sample aspect ratio in the stream in the VUI parameters.
  249. @item video_format
  250. @item video_full_range_flag
  251. Set the video format in the stream (see H.265 section E.3.1 and
  252. table E.2).
  253. @item colour_primaries
  254. @item transfer_characteristics
  255. @item matrix_coefficients
  256. Set the colour description in the stream (see H.265 section E.3.1
  257. and tables E.3, E.4 and E.5).
  258. @item chroma_sample_loc_type
  259. Set the chroma sample location in the stream (see H.265 section
  260. E.3.1 and figure E.1).
  261. @item tick_rate
  262. Set the tick rate in the VPS and VUI parameters (num_units_in_tick /
  263. time_scale). Combined with @option{num_ticks_poc_diff_one}, this can
  264. set a constant framerate in the stream. Note that it is likely to be
  265. overridden by container parameters when the stream is in a container.
  266. @item num_ticks_poc_diff_one
  267. Set poc_proportional_to_timing_flag in VPS and VUI and use this value
  268. to set num_ticks_poc_diff_one_minus1 (see H.265 sections 7.4.3.1 and
  269. E.3.1). Ignored if @option{tick_rate} is not also set.
  270. @item crop_left
  271. @item crop_right
  272. @item crop_top
  273. @item crop_bottom
  274. Set the conformance window cropping offsets in the SPS. These values
  275. will replace the current ones if the stream is already cropped.
  276. These fields are set in pixels. Note that some sizes may not be
  277. representable if the chroma is subsampled (H.265 section 7.4.3.2.1).
  278. @item level
  279. Set the level in the VPS and SPS. See H.265 section A.4 and tables
  280. A.6 and A.7.
  281. The argument must be the name of a level (for example, @samp{5.1}), a
  282. @emph{general_level_idc} value (for example, @samp{153} for level 5.1),
  283. or the special name @samp{auto} indicating that the filter should
  284. attempt to guess the level from the input stream properties.
  285. @end table
  286. @section hevc_mp4toannexb
  287. Convert an HEVC/H.265 bitstream from length prefixed mode to start code
  288. prefixed mode (as defined in the Annex B of the ITU-T H.265
  289. specification).
  290. This is required by some streaming formats, typically the MPEG-2
  291. transport stream format (muxer @code{mpegts}).
  292. For example to remux an MP4 file containing an HEVC stream to mpegts
  293. format with @command{ffmpeg}, you can use the command:
  294. @example
  295. ffmpeg -i INPUT.mp4 -codec copy -bsf:v hevc_mp4toannexb OUTPUT.ts
  296. @end example
  297. Please note that this filter is auto-inserted for MPEG-TS (muxer
  298. @code{mpegts}) and raw HEVC/H.265 (muxer @code{h265} or
  299. @code{hevc}) output formats.
  300. @section imxdump
  301. Modifies the bitstream to fit in MOV and to be usable by the Final Cut
  302. Pro decoder. This filter only applies to the mpeg2video codec, and is
  303. likely not needed for Final Cut Pro 7 and newer with the appropriate
  304. @option{-tag:v}.
  305. For example, to remux 30 MB/sec NTSC IMX to MOV:
  306. @example
  307. ffmpeg -i input.mxf -c copy -bsf:v imxdump -tag:v mx3n output.mov
  308. @end example
  309. @section mjpeg2jpeg
  310. Convert MJPEG/AVI1 packets to full JPEG/JFIF packets.
  311. MJPEG is a video codec wherein each video frame is essentially a
  312. JPEG image. The individual frames can be extracted without loss,
  313. e.g. by
  314. @example
  315. ffmpeg -i ../some_mjpeg.avi -c:v copy frames_%d.jpg
  316. @end example
  317. Unfortunately, these chunks are incomplete JPEG images, because
  318. they lack the DHT segment required for decoding. Quoting from
  319. @url{http://www.digitalpreservation.gov/formats/fdd/fdd000063.shtml}:
  320. Avery Lee, writing in the rec.video.desktop newsgroup in 2001,
  321. commented that "MJPEG, or at least the MJPEG in AVIs having the
  322. MJPG fourcc, is restricted JPEG with a fixed -- and *omitted* --
  323. Huffman table. The JPEG must be YCbCr colorspace, it must be 4:2:2,
  324. and it must use basic Huffman encoding, not arithmetic or
  325. progressive. . . . You can indeed extract the MJPEG frames and
  326. decode them with a regular JPEG decoder, but you have to prepend
  327. the DHT segment to them, or else the decoder won't have any idea
  328. how to decompress the data. The exact table necessary is given in
  329. the OpenDML spec."
  330. This bitstream filter patches the header of frames extracted from an MJPEG
  331. stream (carrying the AVI1 header ID and lacking a DHT segment) to
  332. produce fully qualified JPEG images.
  333. @example
  334. ffmpeg -i mjpeg-movie.avi -c:v copy -bsf:v mjpeg2jpeg frame_%d.jpg
  335. exiftran -i -9 frame*.jpg
  336. ffmpeg -i frame_%d.jpg -c:v copy rotated.avi
  337. @end example
  338. @section mjpegadump
  339. Add an MJPEG A header to the bitstream, to enable decoding by
  340. Quicktime.
  341. @anchor{mov2textsub}
  342. @section mov2textsub
  343. Extract a representable text file from MOV subtitles, stripping the
  344. metadata header from each subtitle packet.
  345. See also the @ref{text2movsub} filter.
  346. @section mp3decomp
  347. Decompress non-standard compressed MP3 audio headers.
  348. @section mpeg2_metadata
  349. Modify metadata embedded in an MPEG-2 stream.
  350. @table @option
  351. @item display_aspect_ratio
  352. Set the display aspect ratio in the stream.
  353. The following fixed values are supported:
  354. @table @option
  355. @item 4/3
  356. @item 16/9
  357. @item 221/100
  358. @end table
  359. Any other value will result in square pixels being signalled instead
  360. (see H.262 section 6.3.3 and table 6-3).
  361. @item frame_rate
  362. Set the frame rate in the stream. This is constructed from a table
  363. of known values combined with a small multiplier and divisor - if
  364. the supplied value is not exactly representable, the nearest
  365. representable value will be used instead (see H.262 section 6.3.3
  366. and table 6-4).
  367. @item video_format
  368. Set the video format in the stream (see H.262 section 6.3.6 and
  369. table 6-6).
  370. @item colour_primaries
  371. @item transfer_characteristics
  372. @item matrix_coefficients
  373. Set the colour description in the stream (see H.262 section 6.3.6
  374. and tables 6-7, 6-8 and 6-9).
  375. @end table
  376. @section mpeg4_unpack_bframes
  377. Unpack DivX-style packed B-frames.
  378. DivX-style packed B-frames are not valid MPEG-4 and were only a
  379. workaround for the broken Video for Windows subsystem.
  380. They use more space, can cause minor AV sync issues, require more
  381. CPU power to decode (unless the player has some decoded picture queue
  382. to compensate the 2,0,2,0 frame per packet style) and cause
  383. trouble if copied into a standard container like mp4 or mpeg-ps/ts,
  384. because MPEG-4 decoders may not be able to decode them, since they are
  385. not valid MPEG-4.
  386. For example to fix an AVI file containing an MPEG-4 stream with
  387. DivX-style packed B-frames using @command{ffmpeg}, you can use the command:
  388. @example
  389. ffmpeg -i INPUT.avi -codec copy -bsf:v mpeg4_unpack_bframes OUTPUT.avi
  390. @end example
  391. @section noise
  392. Damages the contents of packets or simply drops them without damaging the
  393. container. Can be used for fuzzing or testing error resilience/concealment.
  394. Parameters:
  395. @table @option
  396. @item amount
  397. A numeral string, whose value is related to how often output bytes will
  398. be modified. Therefore, values below or equal to 0 are forbidden, and
  399. the lower the more frequent bytes will be modified, with 1 meaning
  400. every byte is modified.
  401. @item dropamount
  402. A numeral string, whose value is related to how often packets will be dropped.
  403. Therefore, values below or equal to 0 are forbidden, and the lower the more
  404. frequent packets will be dropped, with 1 meaning every packet is dropped.
  405. @end table
  406. The following example applies the modification to every byte but does not drop
  407. any packets.
  408. @example
  409. ffmpeg -i INPUT -c copy -bsf noise[=1] output.mkv
  410. @end example
  411. @section null
  412. This bitstream filter passes the packets through unchanged.
  413. @section pcm_rechunk
  414. Repacketize PCM audio to a fixed number of samples per packet or a fixed packet
  415. rate per second. This is similar to the @ref{asetnsamples,,asetnsamples audio
  416. filter,ffmpeg-filters} but works on audio packets instead of audio frames.
  417. @table @option
  418. @item nb_out_samples, n
  419. Set the number of samples per each output audio packet. The number is intended
  420. as the number of samples @emph{per each channel}. Default value is 1024.
  421. @item pad, p
  422. If set to 1, the filter will pad the last audio packet with silence, so that it
  423. will contain the same number of samples (or roughly the same number of samples,
  424. see @option{frame_rate}) as the previous ones. Default value is 1.
  425. @item frame_rate, r
  426. This option makes the filter output a fixed number of packets per second instead
  427. of a fixed number of samples per packet. If the audio sample rate is not
  428. divisible by the frame rate then the number of samples will not be constant but
  429. will vary slightly so that each packet will start as close to the frame
  430. boundary as possible. Using this option has precedence over @option{nb_out_samples}.
  431. @end table
  432. You can generate the well known 1602-1601-1602-1601-1602 pattern of 48kHz audio
  433. for NTSC frame rate using the @option{frame_rate} option.
  434. @example
  435. ffmpeg -f lavfi -i sine=r=48000:d=1 -c pcm_s16le -bsf pcm_rechunk=r=30000/1001 -f framecrc -
  436. @end example
  437. @section prores_metadata
  438. Modify color property metadata embedded in prores stream.
  439. @table @option
  440. @item color_primaries
  441. Set the color primaries.
  442. Available values are:
  443. @table @samp
  444. @item auto
  445. Keep the same color primaries property (default).
  446. @item unknown
  447. @item bt709
  448. @item bt470bg
  449. BT601 625
  450. @item smpte170m
  451. BT601 525
  452. @item bt2020
  453. @item smpte431
  454. DCI P3
  455. @item smpte432
  456. P3 D65
  457. @end table
  458. @item transfer_characteristics
  459. Set the color transfer.
  460. Available values are:
  461. @table @samp
  462. @item auto
  463. Keep the same transfer characteristics property (default).
  464. @item unknown
  465. @item bt709
  466. BT 601, BT 709, BT 2020
  467. @item smpte2084
  468. SMPTE ST 2084
  469. @item arib-std-b67
  470. ARIB STD-B67
  471. @end table
  472. @item matrix_coefficients
  473. Set the matrix coefficient.
  474. Available values are:
  475. @table @samp
  476. @item auto
  477. Keep the same colorspace property (default).
  478. @item unknown
  479. @item bt709
  480. @item smpte170m
  481. BT 601
  482. @item bt2020nc
  483. @end table
  484. @end table
  485. Set Rec709 colorspace for each frame of the file
  486. @example
  487. ffmpeg -i INPUT -c copy -bsf:v prores_metadata=color_primaries=bt709:color_trc=bt709:colorspace=bt709 output.mov
  488. @end example
  489. Set Hybrid Log-Gamma parameters for each frame of the file
  490. @example
  491. ffmpeg -i INPUT -c copy -bsf:v prores_metadata=color_primaries=bt2020:color_trc=arib-std-b67:colorspace=bt2020nc output.mov
  492. @end example
  493. @section remove_extra
  494. Remove extradata from packets.
  495. It accepts the following parameter:
  496. @table @option
  497. @item freq
  498. Set which frame types to remove extradata from.
  499. @table @samp
  500. @item k
  501. Remove extradata from non-keyframes only.
  502. @item keyframe
  503. Remove extradata from keyframes only.
  504. @item e, all
  505. Remove extradata from all frames.
  506. @end table
  507. @end table
  508. @anchor{text2movsub}
  509. @section text2movsub
  510. Convert text subtitles to MOV subtitles (as used by the @code{mov_text}
  511. codec) with metadata headers.
  512. See also the @ref{mov2textsub} filter.
  513. @section trace_headers
  514. Log trace output containing all syntax elements in the coded stream
  515. headers (everything above the level of individual coded blocks).
  516. This can be useful for debugging low-level stream issues.
  517. Supports AV1, H.264, H.265, (M)JPEG, MPEG-2 and VP9, but depending
  518. on the build only a subset of these may be available.
  519. @section truehd_core
  520. Extract the core from a TrueHD stream, dropping ATMOS data.
  521. @section vp9_metadata
  522. Modify metadata embedded in a VP9 stream.
  523. @table @option
  524. @item color_space
  525. Set the color space value in the frame header. Note that any frame
  526. set to RGB will be implicitly set to PC range and that RGB is
  527. incompatible with profiles 0 and 2.
  528. @table @samp
  529. @item unknown
  530. @item bt601
  531. @item bt709
  532. @item smpte170
  533. @item smpte240
  534. @item bt2020
  535. @item rgb
  536. @end table
  537. @item color_range
  538. Set the color range value in the frame header. Note that any value
  539. imposed by the color space will take precedence over this value.
  540. @table @samp
  541. @item tv
  542. @item pc
  543. @end table
  544. @end table
  545. @section vp9_superframe
  546. Merge VP9 invisible (alt-ref) frames back into VP9 superframes. This
  547. fixes merging of split/segmented VP9 streams where the alt-ref frame
  548. was split from its visible counterpart.
  549. @section vp9_superframe_split
  550. Split VP9 superframes into single frames.
  551. @section vp9_raw_reorder
  552. Given a VP9 stream with correct timestamps but possibly out of order,
  553. insert additional show-existing-frame packets to correct the ordering.
  554. @c man end BITSTREAM FILTERS