logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
randys  
#1 Posted : Saturday, April 8, 2017 3:05:24 PM(UTC)
randys

Rank: Member

Groups: Registered
Joined: 4/26/2015(UTC)
Posts: 13
Location: Oregon

Thanks: 2 times
We are using two IP cameras for webcasting of a small meeting. These are surveillance-type cameras but producing a very good HD picture. But, we're seeing periodic frozen frames on the input to vMix. The freezes last from 2 to 10 seconds, and appear at what seems to be random times. We've adjusted bitrate on the incoming video (1200-8000), resolution (480P-1080P), encoders, quality of video and constant versus variable bit rates. Nothing we've tried seems to fix this problem. The camera connects as an RTSP device as a streaming source.

We believe that it must be a vMix problem because we can connect the RTSP stream to VLC on the same machine with no freezing.

Interestingly, we have a different brand camera that does not have this same problem.

Has anyone else seen this? Are there some settings we may be missing, or perhaps drivers needed? So far, vMix has been bulletproof for us but this is a critical function and we're stymied.
SportsNetUSA.net  
#2 Posted : Saturday, April 8, 2017 5:17:44 PM(UTC)
SportsNetUSA.net

Rank: Advanced Member

Groups: Registered
Joined: 10/7/2015(UTC)
Posts: 635
Location: California

Thanks: 122 times
Was thanked: 123 time(s) in 115 post(s)
What does the CPU usage look like when in you're running your 2 IP camera configuration and when the freezing happens?
randys  
#3 Posted : Saturday, April 8, 2017 7:11:04 PM(UTC)
randys

Rank: Member

Groups: Registered
Joined: 4/26/2015(UTC)
Posts: 13
Location: Oregon

Thanks: 2 times
With both cameras running, total CPU usage is right at about 30%. There is no observable change in CPU usage when the freeze happens. This seems like a buffer problem on the vMix input.

With further investigation, we did notice that when we tried this before with the same camera, we never saw a problem like this but were running version 17. We've since upgraded to version 19.

Has there been any work on this version that could have caused the problem?

Just in case, what's the process for moving back to version 17?

Thanks.
SportsNetUSA.net  
#4 Posted : Saturday, April 8, 2017 7:26:25 PM(UTC)
SportsNetUSA.net

Rank: Advanced Member

Groups: Registered
Joined: 10/7/2015(UTC)
Posts: 635
Location: California

Thanks: 122 times
Was thanked: 123 time(s) in 115 post(s)
You can revert to 17 or any other previous version. The previous .exe files should be in Documents by default. Did you ever use vMix 18?
randys  
#5 Posted : Saturday, April 8, 2017 8:36:45 PM(UTC)
randys

Rank: Member

Groups: Registered
Joined: 4/26/2015(UTC)
Posts: 13
Location: Oregon

Thanks: 2 times
We never used version 18, but did just try version 17 with no difference. We're still completely in the dark on why the stream freezes for the short time before resuming and have verified that the stream is still very smooth coming into the system using VLC.

This is sounding more and more like a bug in vMix.

kjones9999  
#6 Posted : Monday, April 10, 2017 1:36:19 PM(UTC)
kjones9999

Rank: Advanced Member

Groups: Registered
Joined: 8/20/2014(UTC)
Posts: 388

Thanks: 29 times
Was thanked: 78 time(s) in 50 post(s)
You are using UDP correct?
sinc747  
#7 Posted : Monday, April 10, 2017 2:26:17 PM(UTC)
sinc747

Rank: Advanced Member

Groups: Registered
Joined: 8/2/2013(UTC)
Posts: 1,027
Man
United States
Location: Fairhope, Alabama USA

Thanks: 541 times
Was thanked: 194 time(s) in 160 post(s)
Are you using Low Latency Capture? What is your buffer setting?

Sounds like it could be a buffering issue on vMix's end. Try higher buffer numbers. Try not using LLC.

Also, what's your network traffic/usage?

- Tom
kjones9999  
#8 Posted : Monday, April 10, 2017 2:38:43 PM(UTC)
kjones9999

Rank: Advanced Member

Groups: Registered
Joined: 8/20/2014(UTC)
Posts: 388

Thanks: 29 times
Was thanked: 78 time(s) in 50 post(s)
Another bit of information --

when unfreezing, does the stream pick up where it froze, or skip ahead to current position?
randys  
#9 Posted : Monday, April 10, 2017 4:33:31 PM(UTC)
randys

Rank: Member

Groups: Registered
Joined: 4/26/2015(UTC)
Posts: 13
Location: Oregon

Thanks: 2 times
In answer to recent questions:

We are not using LLC, even though we tried it as an option to see if it would improve (it didn't). We've tried all kinds of buffer sizes, from 0 to 3000. The only difference is that a bigger buffer makes the jumps less frequent, but more severe. With very big buffers, a person can appear to teleport across a stage. In addition, with larger buffers, the sound (from a different source) is un-synchronized right after a big jump and slowly gets back to synchronization, usually just before another jump.

What this looks like with a short buffer is a fairly frequent "skip" of the image to a new position. Sometimes this happens along with a frozen image lasting from .5 sec to perhaps 1 sec.

Yes, we're using UDP and have also tried TCP and any other variant we could think of. (We could not figure out how to import MJPEG, though). Network traffic is very low: about 9Mbps with two cameras and a stream operating. We're on a dedicated, private network with just these three devices so we have been able to rule out network issues.

This has all the earmarks of a buffer bug. It almost seems like the software is using dual buffers (one filling while one processes, then switching), but that it's under-running the buffer, and then switching to the other buffer after some delay. Clearly something is wrong in the timing.

I've noticed that others have seen this with a variety of cameras. While it's true that this does not happen with all IP cameras (we have a couple of other less capable ones), vMix is the common denominator. The feature claim is that it will take a stream input, but it's not at sufficient quality right now and it should support all cameras like VLC and ONVIF utilities which do NOT show this problem.

How do we report a bug? Is this forum monitored by anyone at vMix that could do this? I've noted that this is a lingering problem, but I would anticipate it getting a lot more attention given the rapid increase in capabilities of inexpensive IP cameras.

SportsNetUSA.net  
#10 Posted : Monday, April 10, 2017 7:15:12 PM(UTC)
SportsNetUSA.net

Rank: Advanced Member

Groups: Registered
Joined: 10/7/2015(UTC)
Posts: 635
Location: California

Thanks: 122 times
Was thanked: 123 time(s) in 115 post(s)
One thing you haven't mention is the brand and model of your IP cameras. Perhaps there's another vMix user that has had the same problem but found a solution or is well versed on that make/model.

Also, vMix support would have to know what the cameras are to help figure out this problem.
sinc747  
#11 Posted : Monday, April 10, 2017 9:49:59 PM(UTC)
sinc747

Rank: Advanced Member

Groups: Registered
Joined: 8/2/2013(UTC)
Posts: 1,027
Man
United States
Location: Fairhope, Alabama USA

Thanks: 541 times
Was thanked: 194 time(s) in 160 post(s)
SportsNetUSA.net wrote:
One thing you haven't mention is the brand and model of your IP cameras. Perhaps there's another vMix user that has had the same problem but found a solution or is well versed on that make/model.


I think he said it was a PTZ Optics PT12x.

- Tom
sinc747  
#12 Posted : Monday, April 10, 2017 9:52:01 PM(UTC)
sinc747

Rank: Advanced Member

Groups: Registered
Joined: 8/2/2013(UTC)
Posts: 1,027
Man
United States
Location: Fairhope, Alabama USA

Thanks: 541 times
Was thanked: 194 time(s) in 160 post(s)
Other questions...

Windows 10? Anniversary Edition? Creators Update? All video drivers up to date?

- Tom
SportsNetUSA.net  
#13 Posted : Tuesday, April 11, 2017 1:02:12 AM(UTC)
SportsNetUSA.net

Rank: Advanced Member

Groups: Registered
Joined: 10/7/2015(UTC)
Posts: 635
Location: California

Thanks: 122 times
Was thanked: 123 time(s) in 115 post(s)
Tom, my eyesight isn't what it was even with reading glasses, but the only place I see PTZ Optics is in your post:)
sinc747  
#14 Posted : Tuesday, April 11, 2017 2:03:34 AM(UTC)
sinc747

Rank: Advanced Member

Groups: Registered
Joined: 8/2/2013(UTC)
Posts: 1,027
Man
United States
Location: Fairhope, Alabama USA

Thanks: 541 times
Was thanked: 194 time(s) in 160 post(s)
SportsNetUSA.net wrote:
Tom, my eyesight isn't what it was even with reading glasses, but the only place I see PTZ Optics is in your post:)


Whoops, sorry, wrong thread.

- Tom
randys  
#15 Posted : Tuesday, April 11, 2017 3:51:37 AM(UTC)
randys

Rank: Member

Groups: Registered
Joined: 4/26/2015(UTC)
Posts: 13
Location: Oregon

Thanks: 2 times
Sorry for the delayed response; just got back from the first use of these systems with an HDMI feed as primary due to the stuttering problem on the IP cams.

The unit we're using is a Dahua SD42212T-HN. The same thing seems to have been reported using a Foscam FI9826W.

Checked video drivers as suggested and they are all up to date. But, I don't think it's a configuration problem as we have now seen this same behavior on 3 different systems running vMix independently and on different networks. Systems are all running Win 10 with latest updates (KB3150513).

I'd be ecstatic to find someone who had found a solution to this problem.
kjones9999  
#16 Posted : Tuesday, April 11, 2017 10:40:32 AM(UTC)
kjones9999

Rank: Advanced Member

Groups: Registered
Joined: 8/20/2014(UTC)
Posts: 388

Thanks: 29 times
Was thanked: 78 time(s) in 50 post(s)
Is there a way to change the MTU in the camera?
randys  
#17 Posted : Tuesday, April 11, 2017 1:21:20 PM(UTC)
randys

Rank: Member

Groups: Registered
Joined: 4/26/2015(UTC)
Posts: 13
Location: Oregon

Thanks: 2 times
There's no option in the controls to change the MTU. Are you thinking that this might be caused by the computer not being able to handle the size of the data block from the camera, or that in an attempt to minimize network traffic that the camera is holding on to data for too long?

That is also an interesting theory, although I'm not sure how it explains the behavior we've seen with various size buffers. Plus, it doesn't explain why other software like VLC doesn't show this same problem.

Man, I really hate shooting in the dark on these things. Does anyone know the mechanism to report a bug to vMix to help figure this out? I'd even lend them the camera.
kjones9999  
#18 Posted : Tuesday, April 11, 2017 5:52:23 PM(UTC)
kjones9999

Rank: Advanced Member

Groups: Registered
Joined: 8/20/2014(UTC)
Posts: 388

Thanks: 29 times
Was thanked: 78 time(s) in 50 post(s)
The reason that VLC is not helpful in this instance is because it is very flexible when it comes to decoding a stream...

As far as the packets go, I had a similar issue with a hardware encoder and a large MTU was the issue. Basically the smaller packets resulted in more reliably compliant stream...
randys  
#19 Posted : Tuesday, April 11, 2017 7:15:27 PM(UTC)
randys

Rank: Member

Groups: Registered
Joined: 4/26/2015(UTC)
Posts: 13
Location: Oregon

Thanks: 2 times
Very good to know and we'll definitely look at this. Thanks much.
kjones9999  
#20 Posted : Tuesday, April 11, 2017 9:59:57 PM(UTC)
kjones9999

Rank: Advanced Member

Groups: Registered
Joined: 8/20/2014(UTC)
Posts: 388

Thanks: 29 times
Was thanked: 78 time(s) in 50 post(s)
Also, take a look at adjusting your I key frame interval.

You are using CBR?
Users browsing this topic
Guest
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.