X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=doc%2Fbitstream_filters.texi;h=7d7e97503a3a51b12b8aa881536c11516a327f30;hb=d9f72e53bfe76b5c40bb444f0a81617dffdfedf4;hp=aac4705be47c90b51201831f433fd34f9b1436a0;hpb=40e32f83c6a2085093b61e959f34a106fa2dad6b;p=ffmpeg diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index aac4705be47..7d7e97503a3 100644 --- a/doc/bitstream_filters.texi +++ b/doc/bitstream_filters.texi @@ -75,6 +75,10 @@ the header stored in extradata to the key packets: ffmpeg -i INPUT -map 0 -flags:v +global_header -c:v libx264 -bsf:v dump_extra out.ts @end example +@section eac3_core + +Extract the core from a E-AC-3 stream, dropping extra channels. + @section extract_extradata Extract the in-band extradata. @@ -93,6 +97,35 @@ When this option is enabled, the long-term headers are removed from the bitstream after extraction. @end table +@section filter_units + +Remove units with types in or not in a given set from the stream. + +@table @option +@item pass_types +List of unit types or ranges of unit types to pass through while removing +all others. This is specified as a '|'-separated list of unit type values +or ranges of values with '-'. + +@item remove_types +Identical to @option{pass_types}, except the units in the given set +removed and all others passed through. +@end table + +Extradata is unchanged by this transformation, but note that if the stream +contains inline parameter sets then the output may be unusable if they are +removed. + +For example, to remove all non-VCL NAL units from an H.264 stream: +@example +ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=pass_types=1-5' OUTPUT +@end example + +To remove all AUDs, SEI and filler from an H.265 stream: +@example +ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=35|38-40' OUTPUT +@end example + @section hapqa_extract Extract Rgb or Alpha part of an HAPQA file, without recompression, in order to create an HAPQ or an HAPAlphaOnly file. @@ -472,7 +505,33 @@ Log trace output containing all syntax elements in the coded stream headers (everything above the level of individual coded blocks). This can be useful for debugging low-level stream issues. -Supports H.264, H.265 and MPEG-2. +Supports H.264, H.265, MPEG-2 and VP9. + +@section vp9_metadata + +Modify metadata embedded in a VP9 stream. + +@table @option +@item color_space +Set the color space value in the frame header. +@table @samp +@item unknown +@item bt601 +@item bt709 +@item smpte170 +@item smpte240 +@item bt2020 +@item rgb +@end table + +@item color_range +Set the color range value in the frame header. Note that this cannot +be set in RGB streams. +@table @samp +@item tv +@item pc +@end table +@end table @section vp9_superframe