Writers

A writer defines the output format adopted by ffprobe, and will be used for printing all the parts of the output.

A writer may accept one or more arguments, which specify the options to adopt. The options are specified as a list of key=value pairs, separated by ":".

All writers support the following options:

'string_validation, sv'

Set string validation mode.

The following values are accepted.

'fail'

The writer will fail immediately in case an invalid string (UTF-8) sequence or code point is found in the input. This is especially useful to validate input metadata.

'ignore'

Any validation error will be ignored. This will result in possibly broken output, especially with the json or xml writer.

'replace'

The writer will substitute invalid UTF-8 sequences or code points with the string specified with the 'string_validation_replacement'.

Default value is 'replace'.

'string_validation_replacement, svr'

Set replacement string to use in case 'string_validation' is set to 'replace'.

In case the option is not specified, the writer will assume the empty string, that is it will remove the invalid sequences from the input strings.

A description of the currently available writers follows.