Using HD Camera With WebRTC?

490 views
Skip to first unread message

Ray Jender

unread,
Jun 7, 2014, 9:16:37 PM6/7/14
to discuss...@googlegroups.com

Ok, here's the situation.  I have a Logitech low resolution camera that works fine with WebRTC.
But I have this HD Sony Handycam laying around doing nothing most of the time so I figured
let's try to use this baby as a webcam.

I am using Ubuntu 12.04.  I am connecting the composite out of the camera to a Video Capture/Grabber,
a Sabrent USB-AVCPT device.  So far so good.

I can see activity when I unplug the device from the computer such as /dev/video0 disappearing when
I unplug the device.  So I know the grabber is detected.  So what the heck.....Using Firefox 29.0 I browsed to
https://www.appear.in and created a room. it then prompted me to allow the camera and microphone.
My camera was actually listed...woohoo!!!   But that's when the fun stopped.  When I selected it, I get:

Failed to get camera and microphone access

You need a microphone or a camera in order to use appear.in

Just to be sure I plugged in my Logitech and it works fine. It plugs straight into a USB port.

Both cameras were listed in the appear.in drop down menu for camera selection.

So does anyone have any trouble shooting advice or tips they can offer on how to fix this?

Thanks,

Ray




Ray Jender

unread,
Jun 7, 2014, 9:18:20 PM6/7/14
to discuss...@googlegroups.com
I forgot to mention that Chrome 33.0.1750.117 did not list any camera or mic?

Ray Jender

unread,
Jun 8, 2014, 5:47:03 PM6/8/14
to discuss...@googlegroups.com

I should also mention the Sony does show up with video in the GStreamer and WebCanStudio..if that means something...

Thanks,

Ray



On Saturday, June 7, 2014 6:16:37 PM UTC-7, Ray Jender wrote:

Ray Jender

unread,
Jun 9, 2014, 10:52:31 PM6/9/14
to discuss...@googlegroups.com
So, using the configuration I posted in the first post,  I can activate the Sony in Camorama, GStreamer-properties and a few other tools.
I can see my video on Yahoo Messenger (setting the composite option) in the preferences.
The stk1160 shows up in the WebRTC menu in Firefox but will not use it? 

Seems to be a WebRTC issue to me?

Ray

Surely someone has an idea I can try?  Or at least  trouble shooting tips?


On Saturday, June 7, 2014 6:16:37 PM UTC-7, Ray Jender wrote:

Brave Yao

unread,
Jun 10, 2014, 2:35:33 AM6/10/14
to discuss...@googlegroups.com
@Ray, webrtc would only access webcam through v4l2 on Linux. You can try the v4l2-ctl tool to check if the capture card+handycam is v4l2 compliant and has webrtc supported formats(I420, YUYV, MJPG, JPEG).
  install v4l2-ctl (sudo apt-get install v4l-utils)
and run: sudo v4l2-ctl --list-formats

Ray Jender

unread,
Jun 10, 2014, 8:06:43 AM6/10/14
to discuss...@googlegroups.com
Thanks for the response Yao. Here is the output:

$ sudo v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
    Index       : 0
    Type        : Video Capture
    Pixel Format: 'UYVY'
    Name        : 16 bpp YUY2, 4:2:2, packed

So what does this mean?

Thanks,

Ray


On Saturday, June 7, 2014 6:16:37 PM UTC-7, Ray Jender wrote:

Vikas

unread,
Jun 10, 2014, 8:11:20 PM6/10/14
to discuss...@googlegroups.com
It seems like the format is not one of the webrtc supported formats.

/Vikas

Ray Jender

unread,
Jun 10, 2014, 8:21:14 PM6/10/14
to discuss...@googlegroups.com
So how do I find the WebRTC supported formats?

Thanks,

Ray

itay bia

unread,
Jun 11, 2014, 4:01:54 AM6/11/14
to discuss...@googlegroups.com
since webrtc uses libyuv i'm guessing it's this:
https://code.google.com/p/libyuv/wiki/Formats

Brave Yao

unread,
Jun 11, 2014, 5:00:05 AM6/11/14
to discuss...@googlegroups.com
You can find them in the capture source code for Linux:

BTW: The device supports VIDIOC_ENUM_FMT. So it should be enumerated in chrome. But the format is not supported, so it won't work eventually.

Ray Jender

unread,
Jun 11, 2014, 9:24:11 PM6/11/14
to discuss...@googlegroups.com
Couldn't an unsupported format be converted to one that is supported?  I'm confused.

Ray
Reply all
Reply to author
Forward
0 new messages