FFMPEG (Input 8K AAC -> (AAC FLV) youtube streaming noise

1.4k views Asked by At

Hello I run a streaming encoder for a non profit cause. Chosen FFMPEG as it's very simple and doing the job near perfectly however the audio is noisy popping and cracking. Video is crystal clear.

ffmpeg version N-86950-g1bef008 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.1.0 (GCC)

Here is my command.

ffmpeg -rtsp_transport tcp -i $RTSP_SRC -vcodec copy -af "volume=12dB" -ar 8000 -acodec aac -f flv rtmp://a.rtmp.youtube.com/live2/$DEST_KEY

However when I just play the stream the noise levels are quite acceptable.

ffplay -rtsp_transport tcp -i $RTSP_SRC

What I have tried so far.

  • Change input audio sampling from 8K to 16K (that's all is supported currently). It made the noise problem much worse. I can't change it to a native FLV sampling(44100 or 22050 or 11025) at least not yet, the integrated rtsp stream does not support it.)
  • My working theory is during resampling stream noise is getting boosted. So to eliminate that I tried audio copy codec even then there is no significant improvement.
1

There are 1 answers

0
AudioBubble On

-af "equalizer=f=100:t=h:width=200:g=-64" Suppressing this frequency band cut all the crackling / popping noise for me.