Bug Report Media source choppy/blocky playback with rtmp source

I tried to setup a multi source setup with a friend. Basically my cpu is too weak to produce good quality streams on 1080p60 when other programs (like facerig) are using cpu, or the game makes heavy use of cpu.

What we did was use our router (linux machine) to setup a rtmp server and set my encoding to high bitrate to avoid high cpu usage. What we got was a fluid high quality stream that used less cpu on my side. So far so good.
Now come the problems:
The stream is fine on my friends machine, when he opens it with vlc (2.2.4). It takes a second to stabilize, but is fluid and without blocks at that point.
However in the obs source it gets blocky/choppy and has artifacts. I had problems with the media source in the past, by the way, which resulted in choppy playback in the final recording, but that might be a different issue.

I attach a screenshot showing obs on the left, and vlc on the right monitoring the same source stream, just that my friend added his source (the facerig avatar from his cam).

For some reason obs handles the stream differently than vlc, which should not happen as far as i understand, as obs just uses a vlc plugin. Is there a bug? Is there a source setup that would get this to work?
I see this as an important feature for multi client stream management, and it would be nice if it worked properly.

Another note: A window capture on vlc works fine.

screenshot:
2017_03_27_21_37_02_rtsp___192_168.png


Update: It seems to render properly, if i send only I frames to the streaming server, but the output is very blocky, as obs doesn't seem to process very well with more than ~30-40mbit on the media input. So the quality isn't as good as it would be with "normal" encoding. Grabbing the output of vlc seems to work, although this is just a workaround and not practical for long time use. Especially as it would need a seperate audio device for vlc output to avoid conflict with the local streaming of the encoding PC (the game of my friend and his other outputs interfering with the original complete already mixed audio stream from my pc. It would introduce a lot of sync issues).
 

Attachments

  • 2017_03_27_21_37_02_rtsp___192_168.jpg
    2017_03_27_21_37_02_rtsp___192_168.jpg
    951.8 KB · Views: 105
Last edited:
Figured it out myself. Media plugin is broken, don't use it. Use the VLC plugin instead. I wasn't noticing but apparently it only appears when you have vlc of the same architecture installed. If you use 64bit obs, like me, you need to get VLC 64bit version, which can be a pain to find. You need to browse the vlc ftp for "older versions" to find the recent 64 bit download.
 

Suslik V

Active Member
From last changes to OBS Studio:
https://github.com/jp9000/obs-studio/commit/45d029b1fb6af2d0b50d4c96b90defa2c0c84060 and some others,
the 'Media Source' acts differently now.
Starts up of the source is much faster then VLC Video Source - its almost solves this issue (not sure, but for me it not happens any more with Cut transition and fast local video source): https://obsproject.com/mantis/view.php?id=587 , and completely solves this one: https://obsproject.com/mantis/view.php?id=850

Just wait for new release...
 
I remember the audio choppyness issue. One of the reasons i stopped trying to use live broadcast intro videos. Its been bugging me for weeks last year. Assuming that such an obvious problem would be fixed at some point i didn't report it however.
 

Suslik V

Active Member
Because changes to 'Media Source' the behavior can change... Now it looks much better, really.

Anyway, to help troubleshoot the problems caused by 'Media Source', you need:
  1. Add working 'Video Capture Device' to the current Scene Collection (virtual cam possible too) - this ensures that all errors of the 'Media Source' would be logged.
  2. Make test recording/streaming with your 'Media Source' present in scene.
  3. Post log-file from this attempt.
Or simply wait for new release and than try it again.
 
I think I'll just wait it out. VLC source works for now and fast switching is nothing i care about. Maybe I will try that out later (creating the log) so the developers get an idea what might be happening..
 

Claudio

New Member
Same problem as Anubisviech here. I use rtsp ip cameras to stream video, and OBS media source display artifacts in 50%+ of the preview screen and it's unusable. (I have OBS 64 bits and VLC 32 so, the same, the vlc plugin wont work).
Until it's fixed I play the stream in VLC (smooth and fine) and use window capture.
Strange, because the media plays ok in VLC
 
Top