Skip to content

Commit d6b7541

Browse files
committed
Add logging level documentation
1 parent 8c6ca77 commit d6b7541

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,20 @@ Property value mappings from C to Javascript and vice versa are as follows:
267267
* Binary data blobs of type `uint8_t *`, such as `extradata` or `AVPacketSideData.data` are assumed to be small and easy to copy. Javascript getters make a copy of the underlying data and return a Buffer. The setters create a copy of the data in a buffer and use it to set the underlying value. Therefore, to modify the data, it must be read via the getter, modified and written back via the setter.
268268
* `AVDictionary` metadata and private data values have a natural mapping to Javascript objects as keys to property names and their value pair. Always set dictionary-based and private data values using an object. Dictionary values are replaced in their entirety. For private data, only the properties contained in the update object will be modified.
269269

270+
#### Logging
271+
272+
To control the level of logging from FFmpeg you can use the `beamcoder.logging()` function. With no parameter it will return the current logging level, to set the logging level pass one of the following strings:
273+
274+
* `quiet` - print no output.
275+
* `panic` - something went really wrong - crash will follow
276+
* `fatal` - recovery not possible
277+
* `error` - lossless recovery not possible
278+
* `warning` - something doesn't look correct
279+
* `info` - standard information - the default
280+
* `verbose` - detailed information
281+
* `debug` - stuff which is only useful for libav* developers
282+
* `trace` - extremely verbose debugging for libav* developers
283+
270284
### Demuxing
271285

272286
The process of demuxing (de-multiplexing) extracts time-labelled packets of data contained in a media stream or file. FFmpeg provides a diverse range of demuxing capability with support for a wide range of input formats and protocols (`beamcoder.protocols()`).

0 commit comments

Comments
 (0)