Modify metadata embedded in an H.264 stream.
- aud
-
Insert or remove AUD NAL units in all access units of the stream.
- pass
- insert
- remove
Default is pass.
- sample_aspect_ratio
-
Set the sample aspect ratio of the stream in the VUI parameters. See H.264 table E-1.
- overscan_appropriate_flag
-
Set whether the stream is suitable for display using overscan or not (see H.264 section E.2.1).
- video_format, video_full_range_flag
-
Set the video format in the stream (see H.264 section E.2.1 and table E-2).
- colour_primaries, transfer_characteristics, matrix_coefficients
-
Set the colour description in the stream (see H.264 section E.2.1 and tables E-3, E-4 and E-5).
- chroma_sample_loc_type
-
Set the chroma sample location in the stream (see H.264 section E.2.1 and figure E-1).
- tick_rate
-
Set the tick rate (time_scale / num_units_in_tick) in the VUI parameters. This is the smallest time unit representable in the stream, and in many cases represents the field rate of the stream (double the frame rate).
- fixed_frame_rate_flag
-
Set whether the stream has fixed framerate - typically this indicates that the framerate is exactly half the tick rate, but the exact meaning is dependent on interlacing and the picture structure (see H.264 section E.2.1 and table E-6).
- zero_new_constraint_set_flags
-
Zero constraint_set4_flag and constraint_set5_flag in the SPS. These bits were reserved in a previous version of the H.264 spec, and thus some hardware decoders require these to be zero. The result of zeroing this is still a valid bitstream.
- crop_left, crop_right, crop_top, crop_bottom
-
Set the frame cropping offsets in the SPS. These values will replace the current ones if the stream is already cropped.
These fields are set in pixels. Note that some sizes may not be representable if the chroma is subsampled or the stream is interlaced (see H.264 section 7.4.2.1.1).
- sei_user_data
-
Insert a string as SEI unregistered user data. The argument must be of the form UUID+string, where the UUID is as hex digits possibly separated by hyphens, and the string can be anything.
For example, 086f3693-b7b3-4f2c-9653-21492feee5b8+hello will insert the string “hello” associated with the given UUID.
- delete_filler
-
Deletes both filler NAL units and filler SEI messages.
- display_orientation
-
Insert, extract or remove Display orientation SEI messages. See H.264 section D.1.27 and D.2.27 for syntax and semantics.
- pass
- insert
- remove
- extract
Default is pass.
Insert mode works in conjunction with
rotateandflipoptions. Any pre-existing Display orientation messages will be removed in insert or remove mode. Extract mode attaches the display matrix to the packet as side data. - rotate
-
Set rotation in display orientation SEI (anticlockwise angle in degrees). Range is -360 to +360. Default is NaN.
- flip
-
Set flip in display orientation SEI.
- horizontal
- vertical
Default is unset.
- level
-
Set the level in the SPS. Refer to H.264 section A.3 and tables A-1 to A-5.
The argument must be the name of a level (for example, 4.2), a level_idc value (for example, 42), or the special name auto indicating that the filter should attempt to guess the level from the input stream properties.