Opened 6 years ago

Closed 5 years ago

#3382 closed enhancement (fixed)

Add severity level to ffmpeg log formatting

Reported by: abc123 Owned by:
Priority: wish Component: avutil
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
FFmpeg CLI only uses terminal colors to distinguish between different categories of logging messages. If console colors are disabled or stderr redirected, it becomes impossible to determine the severity of a log event.

How to reproduce:

% ffmpeg -i input ... output
ffmpeg version
built on ...

[rawvideo @ 0x9f8c640] Encoder did not produce proper pts, making some up.

I propose changing the format string to produce something like this:
[rawvideo @ 0x9f8c640] [WARNING] Encoder did not produce proper pts, making some up.

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (1)

log.patch (2.9 KB) - added by abc123 6 years ago.
example patch to add log level to message

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by abc123

example patch to add log level to message

comment:1 Changed 6 years ago by cehoyos

  • Priority changed from normal to wish
  • Status changed from new to open

I believe an option will be needed to enable this additional output but please send your patch to the ffmpeg-devel mailing list for a proper review.

comment:2 Changed 5 years ago by cehoyos

  • Component changed from ffmpeg to avutil
  • Resolution set to fixed
  • Status changed from open to closed

Implemented in 669a09fb by jfbvxt at gmail

Note: See TracTickets for help on using tickets.