Question / Help Audio keeps becoming choppy encoding a webcam feed

malk315

New Member
Hi-

New to OBS and really like it except I keep having an issue with the audio from a Foscam oudoor IP cam I setup as a media source with RTSP from the webcam. When I use VLC to open the network stream it is flawless -- perfect audio and video. The audio is only 8khz sample rate supported by the camera so not great fidelity wise but usable. I used 720p with 24 hz (NTSC) frame rate camera settings and constant bit rate (camera settings for RTSP, not OBS) and I've tried 2 Mbps and 4 Mbps rate for the camera settings and still have the audio issue.

For OBS I'm using default settings but setup the output and preview to 720p and bandwidth cap to 2.5 Mbps with 24 fps to match the camera's settings (except OBS streams at 2.5 Mbps cap to Youtube Live, the camera is set to a 4 Mbps RTSP constant bit rate, I've also tried 2 Mbps setting on the camera's config). I've tried both direct X hardware assited encoding and pure software x264 encoding and both can develop the issue described below.

I can start streaming and the video and audio looks and sounds great for some time, but then after a short time the audio will go into this "choppy" mode I have a video to demonstrate what happens:

https://www.youtube.com/watch?v=c1tRA-0_oRQ

On the video clip above the audio goes bad at 40 seconds in it just chops in and out. When it does this while streaming all I have to do to fix it is kill OBS and restart it and it will go for a while with good audio once again. On the "sound meter" that OBS shows, you can see the meter freeze when there is the silent part of the choppiness and the meter dances around when there is audio. When things are going normally (no audio issue), the sound meter will dance around all the time -- I can even tell if the audio is broken just by looking at the meter hesitate and don't even need to hear the output.

Any clue as to what the cause may be? I'm really using mostly just defaults and don't have a log at the moment because the camera is still packed up after coming home from the event (a chainsaw get together!). The audio is important for this type of event so folks watching the stream can hear the purr of those 2 cycle engines. Even at only 8khz sampling that the camera supports a chainsaw idling can be heard pretty well and running at full speed isn't too bad either.

I believe I'm running the latest OBS released in March (I downloaded it in April). I'll get a log next time I have the camera out for a test setup. Sometimes it can take a long time before this problem occurs. Other than this it's been pretty good -- sometimes there are pixel artifacts on the video which is OBS -- not the camera because when I watch a live RTSP stream with VLC the picture is perfect -- never any odd pixelization issues etc. Audio is always perfect when using VLC for hours so I'm quite confident the problem is strictly OBS -- especially since just restarting OBS clears the problem up for a little while, then it goes back to this annoying choppy audio.

Thanks for any insight! When I have the camera on the bench I'll grab the log. The log never reports dropped frames or anything like that. When I check the codec info when using VLC with the camera, it never reports lost frames or anything from camera to computer running VLC.

Thanks.
 
Top