[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] no image while local video capturing.
From: |
Simon Morlat |
Subject: |
Re: [Linphone-developers] no image while local video capturing. |
Date: |
Thu, 9 Aug 2007 12:15:32 +0200 |
User-agent: |
KMail/1.9.7 |
Did you tested your camera under linux with another camera software, for
example xawtv ?
This error:
> ortp-error-VIDIOC_STREAMON failed: Invalid argument
shows that the driver refuses to start video capture for an unknown reason.
Maybe it's a bug in the driver, maybe it's a bug in linphone but linphone
works well with other cameras.
The VIDEOC_STREAMON command is part of the Video4Linux 2 interface.
Maybe your driver has also a version 1 interface that works better.
To force linphone to use the version 1 interface of video4linux, you can
modify the code in mediastreamer2/src/msv4l.c as follows:
at top of this file, just after "#include "mediastreamer-config.h"", add:
#undef HAVE_LINUX_VIDEODEV2_H
and rebuild.
Simon
Le Tuesday 07 August 2007 09:19:12 address@hidden, vous avez écrit :
> I cross compiled linphone-1.6.0 to i.MX31 successfully,Now I can run
> linphone well in graphic mode.
>
> But I can not receive local image.The vedio window is black.
> I got the following messages with command line : linphonec -V -d 6
>
> INFO: no logfile, logging to stdout
> ortp-message-oRTP-0.13.0 initialized.
> ortp-message-Registering all filters...
> ortp-message-Registering all soundcard handlers
> ortp-message-Card ALSA: default device added
> ortp-message-Card ALSA: PMIC-audio added
> ortp-message-Card OSS: /dev/dsp added
> ortp-message-Card OSS: /dev/dsp added
> ortp-message-Loading plugins
> ortp-message-Cannot open directory /usr/lib/mediastreamer/plugins: No such
> file or directory ortp-message-ms_init() done
>
> | ERROR | <eXutils.c: 131> Error in connect: Network is unreachable
> |WARNING| <eXutils.c: 139> Could not find interface to reach 15.128.128.93
>
> Ready
>
> | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up!
>
> linphonec> ortp-message-v4l_start: open, fd=8
> ortp-message-v4lv2: YUV420P choosen
> ortp-message-Device is a video4linux V2 one.
> ortp-message-ms_filter_link: MSV4l:0x262a0,0-->MSPixConv:0x26478,0
> ortp-message-ms_filter_link: MSPixConv:0x26478,0-->MSVideoOut:0x263f0,0
> ortp-message-v4l_thread starting
> ortp-error-VIDIOC_STREAMON failed: Invalid argument
> ortp-message-Using yuv overlay.
>
> | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up!
>
> so I tried to fix this, I uncomment these lines in file
> mediastream2/src/msv4l.c
>
> /* for (i = 0; i < s->frame_max; ++i) {
> struct v4l2_buffer buf;
> memset(&buf,0,sizeof(buf));
> buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
> buf.memory = V4L2_MEMORY_MMAP;
> buf.index = i;
> if (-1==ioctl (s->fd, VIDIOC_QBUF, &buf)){
> ms_error("VIDIOC_QBUF failed: %s",strerror(errno));
> }
> }
> */
>
> But there is no local image neither in the video window but filled with
> color green.
>
> this time I got these messages:
> INFO: no logfile, logging to stdout
> ortp-message-oRTP-0.13.0 initialized.
> ortp-message-Registering all filters...
> ortp-message-Registering all soundcard handlers
> ortp-message-Card ALSA: default device added
> ortp-message-Card ALSA: PMIC-audio added
> ortp-message-Card OSS: /dev/dsp added
> ortp-message-Card OSS: /dev/dsp added
> ortp-message-Loading plugins
> ortp-message-Cannot open directory /usr/lib/mediastreamer/plugins: No such
> file or directory ortp-message-ms_init() done
>
> | ERROR | <eXutils.c: 131> Error in connect: Network is unreachable
> |WARNING| <eXutils.c: 139> Could not find interface to reach 15.128.128.93
>
> Ready
>
> | INFO1 | <eXosip.c: 333> eXosip: Reseting timer to 15s before waking up!
>
> linphonec> ortp-message-v4l_start: open, fd=8
> ortp-message-v4lv2: YUV420P choosen
> ortp-message-Device is a video4linux V2 one.
> ortp-message-ms_filter_link: MSV4l:0x262a0,0-->MSPixConv:0x26478,0
> ortp-message-ms_filter_link: MSPixConv:0x26478,0-->MSVideoOut:0x263f0,0
> ortp-message-v4l_thread starting
> ortp-message-videoout
> ortp-message-Using yuv overlay.
> ortp-warning-We are late of 593 miliseconds.
> ortp-warning-We are late of 546 miliseconds.
> ortp-warning-We are late of 960 miliseconds.
> ...
>
> I tested my video camera with the factory's testing program , the cam is OK
> .
>
> Please help me.
> Thanks in advance.
>
>
>
>
>
>
>
> 你 玩 过 大 富 翁 吗?与 朋 友 网 络 对 战,还 能 一 起 挑 战 GM >>