Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Loglevel silent everything #8

Open
3 tasks done
jhd-old opened this issue Feb 22, 2023 · 1 comment
Open
3 tasks done

[Feature] Loglevel silent everything #8

jhd-old opened this issue Feb 22, 2023 · 1 comment
Labels
enhancement New feature or request. to be solved This issue or PR is waiting for the response.

Comments

@jhd-old
Copy link

jhd-old commented Feb 22, 2023

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

@jhd-old jhd-old added enhancement New feature or request. to be solved This issue or PR is waiting for the response. labels Feb 22, 2023
@cainmagi
Copy link
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
Labels
enhancement New feature or request. to be solved This issue or PR is waiting for the response.
Projects
None yet
Development

No branches or pull requests

2 participants