Opened 11 years ago

Closed 10 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 11 years ago.
example patch to add log level to message

Download all attachments as: .zip

Change History (3)

by abc123, 11 years ago

Attachment: log.patch added

example patch to add log level to message

comment:1 by Carl Eugen Hoyos, 11 years ago

Priority: normalwish
Status: newopen

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 by Carl Eugen Hoyos, 10 years ago

Component: ffmpegavutil
Resolution: fixed
Status: openclosed

Implemented in 669a09fb by jfbvxt at gmail

Note: See TracTickets for help on using tickets.