Dummy camera source, Dummy audio source - to test ICE, VPN, STUN, NAT firewall breaking.

472 views
Skip to first unread message

SProgrammer

unread,
Nov 29, 2013, 10:02:49 AM11/29/13
to discuss...@googlegroups.com
I am behind enterprise networks where they have Firewall, NAt complex network everything that requires for mess NAT issues. Now i have only a remote access to that network where i can only have desktop access. Those are virtual windows server instances, so i do not have any kind of sound card or camera device.

I got there network access for testing the NAT issues, before going live. Now, how can i tell webRTC to simulate for me dummy video source and dummy audio src for example:


a) SMPTE color bars for video source (so that visually evaluate latency + jitter + sync), such as:

A standard SMPTE test pattern
Random noise
A black image
A white image
A red image
A green image
A blue image
Checkers pattern (1px)
Checkers pattern (2px)
Checkers pattern (4px)
Checkers pattern (8px)
Circular pattern
Alternate between black and white
SMPTE test pattern (75% color bars)
Zone plate
Gamut checking pattern
Chroma zone plate
Moving ball
SMPTE test pattern (100% color bars)
Bar with foreground color
Pinwheel
Spokes

b) Oscillator waveform  (so that i can test the latency + jitter + sync) such as:

a sine wave
a square wave
a saw wave
a tringle wave
silence
white uniform noise
pink noise
sine wave using a table
periodic ticks
red (brownian) noise
spectraly inverted pink noise
spectraly inverted red (brownian) noise


Please any idea?

Lorenzo Miniero

unread,
Nov 29, 2013, 10:18:21 AM11/29/13
to discuss...@googlegroups.com
For what concerns video, on my Fedora I managed to have Chrome use a dummy webcam created with v4l2loopback. This dummy webcam can take as its source what you pipe through using a v4l2sink in gstreamer, meaning you can simulate pretty much whatever you want. I think you can probably simulate an audio card in a similar way but I never tried.

Lorenzo

SProgrammer

unread,
Nov 29, 2013, 10:23:31 AM11/29/13
to discuss...@googlegroups.com
Lorenzo:

> the remote server is via SSL VPN > ID card USB pincode > RDP remote access to restricted network
> After login from my CentOS 6.4 64-bit laptop to there Windows VPN Server instances i get a windows PC desktop 

Under windows you must know what mess we have. How can i just tell webRTC simulate the SMPTE color bars and audio src? without depending with v4l2sink/vlc/mplayer/ffmpeg etc.

Lorenzo Miniero

unread,
Nov 29, 2013, 11:31:37 AM11/29/13
to discuss...@googlegroups.com
Il giorno venerdì 29 novembre 2013 16:23:31 UTC+1, SProgrammer ha scritto:
Lorenzo:

> the remote server is via SSL VPN > ID card USB pincode > RDP remote access to restricted network
> After login from my CentOS 6.4 64-bit laptop to there Windows VPN Server instances i get a windows PC desktop 

Under windows you must know what mess we have. How can i just tell webRTC simulate the SMPTE color bars and audio src? without depending with v4l2sink/vlc/mplayer/ffmpeg etc.



Sorry, I missed the Windows requirement. I'm not familiar with any potential solution there, sorry: for video you may check DV Driver, which isn't free though.

L.

Eric Davies

unread,
Nov 29, 2013, 12:58:26 PM11/29/13
to discuss...@googlegroups.com
What you are looking for is a virtual camera and/or a virtual microphone.

On windows, for the virtual camera, there is a program called manycam; it will let you turn a screen or a window into a video source that is edible by webrtc. I used a few nights ago. Be warned, if you aren't careful with your clicking during the install, it's installer will try to install browser bars and otherwise hijack stuff. That said, the program itself works well.

Warren McDonald

unread,
Nov 29, 2013, 5:04:16 PM11/29/13
to discuss...@googlegroups.com
There are also 2 products VCam and VSC (Virtual Sound card).from a company called e2eSoft,  I have used these to emulate remote video and sound sources in virtual env.

They are quite flexible and available in demo versions (with watermarks). Like v4l you can specify files or streams as source, or you can attach to an application output or screen region. 

I was able to use these to create a virtual loop back point by fixing a webrtc client in side by side video layout mode and capturing the incoming video window region then piping it to the virtual camera for WebRTC.

We first used these to stream educational video content to remote sites using desktop video software that did not have content streaming features. Just change camera to the virtual one and play your video file to all the remote site. This very useful for WebRTC whilst it still has limited media source capabilities.

Warren   

Mark Banner

unread,
Nov 29, 2013, 2:01:47 PM11/29/13
to discuss...@googlegroups.com
On 29/11/2013 15:02, SProgrammer wrote:
> I am behind enterprise networks where they have Firewall, NAt complex
> network everything that requires for mess NAT issues. Now i have only
> a remote access to that network where i can only have desktop access.
> Those are virtual windows server instances, so i do not have any kind
> of sound card or camera device.
>
> I got there network access for testing the NAT issues, before going
> live. Now, how can i tell webRTC to simulate for me dummy video source
> and dummy audio src for example:
...
> Please any idea?
On Firefox, you can specify fake: true in the constraints passed to
getUserMedia and that gives you a video stream with changing colours and
audio. It is a fixed pattern though, so it might not be enough for what
you need.

Mark


Reply all
Reply to author
Forward
0 new messages