Skip to content

[Feature] Loglevel silent everything #8

Open

Description

@jhd-old

Get started

Problem

First of all, thank you very much for this amazing library!

Everything works great, but my console will be flooded at every start of the stream with following errors:
[h264 @ 000001e5995c6340] no frame!
[h264 @ 000001e5995c6340] non-existing PPS 0 referenced

After a few seconds everything works fine. But it would be fine to be able to dump every log (including the errors).

Required feature

My suggestion would be to add another dumplevel:

This value could be -1 (show nothing), 0 (only show errors), 1 (show basic logs), 2 (show detailed logs).

Which should correspond to ffmpegs parameter: loglevel="silent"

Alternative solution

No response

mpegCoder version

3.2.4

Additional context

No response

Activity

  1. added
    enhancementNew feature or request.
    to be solvedThis issue or PR is waiting for the response.
    on Feb 22, 2023
  2. cainmagi commented on Feb 22, 2023

    @cainmagi
    Owner

    Hello!

    I appreciate your message for reminding me that I still need to maintain this project!

    However, to my knowledge, it is not easy to control all running logs because some of them are not directly controlled by FFMpeg. For example, here, h264 is an independent library. If we want to suppress this information, we may have to try to find a way to configure h264 rather than FFMpeg.

    I will try to do this in the next version, but I cannot guarantee that I can successfully do it.

    Sincerely,
    Yuchen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.to be solvedThis issue or PR is waiting for the response.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions