jiaaro/pydub

When playing audio, diagnostic messagse are displayed on console

Open

#247 创建于 2018年1月29日

在 GitHub 查看
 (6 评论) (4 反应) (0 负责人)Python (8,054 star) (981 fork)batch import
featuregood first issuehelp wanted

描述

First off, I love PyDub! Easy to use and powerful! Thanks! My issue: when using PyDub 0.20.0 and playing an audio stream from memory (loaded from .m4a file):

            from pydub          import AudioSegment as pydub
            from pydub.playback import play
            self.mFileAudio  = pydub.from_file(self.mFilePathName, "mp4") 
            play(self.mFileAudio)

the following messages stream to console:

  Duration: 00:00:00.86, bitrate: 256 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, 1 channels, s16, 256 kb/s
    nan M-A:    nan fd=   0 aq=   27KB vq=    0KB sq=    0B f=0/0   
    nan M-A:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
  -0.06 M-A:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
  -0.03 M-A:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
   0.00 M-A:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
<snip>

Is there a way to block these?

Expected behavior

I would prefer to turn off the diagnostic messages

Actual behavior

30 messages per second of audio

Your System configuration

  • Python version: 3.6
  • Pydub version: 0.20.0
  • ffmpeg or avlib?: ffmpeg v3.2.2
  • ffmpeg/avlib version:

Is there an audio file you can include to help us reproduce?

You can include the audio file in this issue - just put it in a zip file and drag/drop the zip file into the github issue.

贡献者指南

When playing audio, diagnostic messagse are displayed on console · jiaaro/pydub#247 | Good First Issue