angelcam / rust-ac-ffmpeg

Simple and safe Rust interface for FFmpeg libraries.
MIT License
197 stars 33 forks source link

How to disable logging (set log level) ? #37

Closed Lighty0410 closed 2 years ago

Lighty0410 commented 2 years ago

Hey everyone ! I'm trying to remux an mpegts stream to dash (mp4). And here's the problem i face. For some reasons the dash muxer loves to throw lots of logs which makes stdout really messy. Using ffmpeg in terminal i can set the log level. I tried using "loglevel" on the muxer builder, but nothing happened. Is there a way to do so using this crate ? Thanks in advance !

operutka commented 2 years ago

Hi @Lighty0410. You can use this function set_log_callback and simply drop the messages instead of logging them.

Lighty0410 commented 2 years ago

Hi @Lighty0410. You can use this function set_log_callback and simply drop the messages instead of logging them.

Thank you a lot ! Didn't see it. Closing the issue.