Question / Help RTSP stream freezes in OBS >20

Gary Lum

New Member
We have 2 RTSP streams configured in OBS, one from an AXIS video camera and the other a screen capture device. We use this setup to capture class lectures and stream live to youtube. We noticed that after upgrading to OBS 20 or greater, the camera stream from the AXIS camera will just stop regularly. Nothing short of restarting OBS will get it to start again.
We never had this problem in OBS 18. When we first noticed this, the fix was to go back to v18. However, we'd like to use the virtualcam software which need v21 or greater.

log file below
 

Attachments

  • OBS_log.txt
    17.7 KB · Views: 71

steve500

New Member
I wish I had an answer for you but instead, here to say I am also having this same problem. The cameras just occasionally stop working. I have to re-apply the cameras in the source's options for it to begin working again. Sometimes it works for a long time making me think it's fine now, we'll start a stream and 15 minutes later one or both RTSP cameras stop working. So frustrating.
 

MandyDroid

New Member
Sorry I know this isa Windows thread but I felt it may be worth writing up here anyway. I didn't find a similar thread for Mac.

I recently had this issue using a GoPro Hero Black 7 on Mac OS X 10.15.4, OBS 24.0.6 64 bit, and VLC 3.0.8 installed on the system. I was using the VLC Video Source to rtmp://127.0.0.1/live/ using the sallar RTMP server for Mac from https://github.com/sallar/mac-local-rtmp-server . The source would freeze after a little while not a determinate period of time. I read some forum threads and decided to try the same stream using media source instead. For unknown reason the stream is remaining stable. So I guess just try both to see which works because maybe one will translate the stream without error more easily. Point of interest is that the stream would also freeze in the stand alone VLC player.

Happy Broadcasting!
 

LabPadre

New Member
I have tried using VLC 2.28 and still have this problem. It freezes many times in a day. I'm using OBS 26.1. RTSP VLC stream sporadically freezes. Can only fix by stopping and starting feed. Running Xsplit fixes the problem but there are other underlying issues with that softwware as well. I'm assuming its has nothing to do with encoding settings since I've tried all combinations of settings. I hope OBS fixes this soon! It is so aggravating being that I have 8 live 24/7 streams.
 

llinfeng

New Member
According to this post from the VLC forum, VLC.exe accepts an "-R" flag which handles auto-reconnect nicely. There is a remotely "similar" option for the VLC video source named "Always play even when not visible", which does not solve the auto-reconnect problem.

I only need to stream off one IP camera, and the following triplet seems to be reliable (per my limited testing). It splits the tasks by using Window Capture in OBS to read off a running VLC.exe instance. VLC does allow for directly lunching into "Fullscreen mode". This makes the resizing the captured Window in OBS an one-shot effort.
  1. Launch VLC with "R" flag. On a Windows 10 machine, I end up with the following. These can be used to populate a "shortcut".
    C:\Program Files\VideoLAN\VLC\vlc.exe -R rtsp://your_ip_addr
  2. In VLC, in Preference/Video, turn on "Full screen mode", and quit VLC. From this point on, new RSTP feeds (along with all other videos) will load into full-screen mode.
  3. In OBS, use Window Capture to fetch the feed from the running VLC instance. Since we launched into the RSTP feed with the "-R" flag in VLC, the stream tends to "freeze" less frequently.
My VLC version is 2.2.8, and my OBS version is 27.0.0.-rc2. Initially, with directly adding the RTSP feed as a "VLC video source", the feed tend to freeze within a minute or two. On top of the freezing, at times, movements in the feed are rendered pixelated. This is arguably worse than showing a frozen view. Per my limited testing this morning, the Window Capture approach shall keep the feed alive for 10+ minutes :)

Since each RSTP address is unique, Window Capture should be able to distinguish more than one RSTP feeds running on multiple VLC instances. This may work for handling multiple RTSP feeds @LabPadre.
 

TOME2

New Member
You've tried using VLC source instead of media source for these feeds?
I just started having a similar issue but I am using VLC Video Source in the config. It will work fine for days on end, then it just seems to chock and then in some instances, it just starts working again and I get pixielized frames here and there. I also have both of these CAMs connnected to a security system and those streams are flawless. Any suggestions on how to properly configure the VLC Video Source?
 
Top