opus-tools icon indicating copy to clipboard operation
opus-tools copied to clipboard

How to suppress `opusenc` progress bar, but still print the final stats?

Open vadimkantorov opened this issue 2 years ago • 0 comments

In various testing scenarios, it's useful to have the final runtime/stats printout but suppress the progress stats. Is it possible to instruct opusenc to print no progress, but still print the stats? I think --quiet currently suppresses all print-outs, including the final stats.

If not possible now, I think it's a worthy option to have in the future :)

Thanks!

Current example from the logs:

[-] 86% 02:34:28.36  273x realtime, 39.36kbit/s
                                                
[\] 89% 02:39:09.62  273x realtime, 39.34kbit/s
                                                
[|] 91% 02:43:49.52  273x realtime, 39.33kbit/s
                                                
[/] 94% 02:48:31.82  273x realtime,  39.3kbit/s
                                                
[-] 97% 02:53:12.24  273x realtime, 39.29kbit/s
                                                
[\] 99% 02:58:01.48  274x realtime, 39.25kbit/s
                                                
Encoding complete
-----------------------------------------------------
       Encoded: 2 hours, 58 minutes, and 10.04 seconds
       Runtime: 39 seconds
                (274.1x realtime)
         Wrote: 53272638 bytes, 534502 packets, 10693 pages
       Bitrate: 39.2505kbit/s (without overhead)
 Instant rates: 24.4kbit/s to 78.4kbit/s
                (61 to 196 bytes per packet)
      Overhead: 1.55% (container+metadata)

vadimkantorov avatar Dec 06 '23 14:12 vadimkantorov