Remove side data from packets and from the stream, or select packets by their side data.
It accepts the following parameters:
- remove
-
Set the side data types to remove, joined with +, from the packets and from the side data of the stream. Each type is given by its handle; ffmpeg -h bsf=side_data lists them.
- select
-
Set the side data types of the packets to keep, joined with +. A packet is kept if it carries any of them, and dropped otherwise. The selection looks at the side data before remove applies. Dropping a packet breaks the decoding of the packets that depend on it, so this is meant for analysis or for streams where each packet decodes on its own.
For example, to drop the display matrix and the replay gain of a stream:
ffmpeg -i INPUT -c copy -bsf:v side_data=remove=displaymatrix+replaygain output.mkv