PJSIP video call from Rpi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All

I have the following setup:
Caller:
- Raspberry pi running raspbian with wifi and a USB 2.0 web cam. SDL 2.0.
V4L2. ffmpeg 1.2. Null audio device

Callee
- Android phone -> CSipSimple video version.

I want to make a one way video call (ie. from RPi to Android). I set
SDL_VIDEODRIVER=dummy for my application on Rpi. It shows me the following:
>>> vid dev list
08:38:17.555    pjsua_app.c  Video device list:
08:38:17.556    pjsua_app.c  3 device(s) detected:
08:38:17.557    pjsua_app.c   -2 SDL renderer [SDL][render] (default
renderer device)
08:38:17.558    pjsua_app.c      Supported capabilities: format, window,
resize, wndflags
08:38:17.559    pjsua_app.c      Supported formats: RGBA, RGB24, BGRA, DIB
, YUY2, UYVY, YVYU, I420, YV12, I420JPG, I422JPG
08:38:17.560    pjsua_app.c   -1 USB2.0 PC CAMERA [v4l2][capture] (default
capture device)
08:38:17.561    pjsua_app.c      Supported capabilities: format
08:38:17.561    pjsua_app.c      Supported formats: YUY2, RGB24
08:38:17.563    pjsua_app.c    0 USB2.0 PC CAMERA [v4l2][capture]
08:38:17.563    pjsua_app.c      Supported capabilities: format
08:38:17.565    pjsua_app.c      Supported formats: YUY2, RGB24
08:38:17.566    pjsua_app.c    1 Colorbar generator [Colorbar][capture]
08:38:17.567    pjsua_app.c      Supported capabilities: format
08:38:17.568    pjsua_app.c      Supported formats: YUY2, UYVY, YVYU, RGBA,
RGB24, BGRA, YV12, I420, I422, I420JPG, I422JPG
08:38:17.569    pjsua_app.c    2 SDL renderer [SDL][render]
08:38:17.570    pjsua_app.c      Supported capabilities: format, window,
resize, wndflags
08:38:17.570    pjsua_app.c      Supported formats: RGBA, RGB24, BGRA, DIB
, YUY2, UYVY, YVYU, I420, YV12, I420JPG, I422JPG

So, I believe it is correctly able to detect my webcam. On initiating a
video call, I can see the following in traces:
08:32:49.945            APP  .....Call 0 state=CONNECTING
08:32:49.949  pjsua_media.c  .....Call 0: updating media..
08:32:49.951    pjsua_aud.c  ......Audio channel update..
08:32:49.954   strm0x73670c  .......VAD temporarily disabled
08:32:49.957   strm0x73670c  .......Encoder stream started
08:32:49.958   strm0x73670c  .......Decoder stream started
08:32:49.960  pjsua_media.c  ......Audio updated, stream #0: G722 (sendrecv)
08:32:49.961    pjsua_vid.c  ......Video channel update..
08:32:49.984 vstenc0x73b10c  .......Encoder stream started
08:32:49.984 vstdec0x73b10c  .......Decoder stream started
08:32:49.986    pjsua_vid.c  .......Setting up RX..
08:32:49.988    pjsua_vid.c  ........Creating video window: type=stream,
cap_id=-1, rend_id=2
08:32:49.989     vid_port.c  .........Opening device SDL renderer [SDL] for
render: format=I420, size=352x288 @45000:1001 fps
08:32:49.992     vid_port.c  .........Device SDL renderer [SDL] opened:
format=I420, size=352x288 @45000:1001 fps
08:32:49.993    pjsua_vid.c  .........stream window id 0 created for
cap_dev=-1 rend_dev=2
08:32:49.995    pjsua_vid.c  .........Window 0 created
08:32:49.997      sdl_dev.c  ........Starting sdl video stream
08:32:49.998    pjsua_vid.c  .......Setting up TX..
08:32:49.999    pjsua_vid.c  ........Creating video window: type=preview,
cap_id=0, rend_id=2
08:32:50.000     vid_port.c  .........Opening device USB2.0 PC CAMERA
[v4l2] for capture: format=YUY2, size=352x288 @30000:2002 fps
08:32:50.006     vid_port.c  .........Device USB2.0 PC CAMERA [v4l2]
opened: format=YUY2, size=352x288 @30000:2002 fps
08:32:50.008     vid_port.c  .........Opening device SDL renderer [SDL] for
render: format=I420, size=352x288 @30000:2002 fps
08:32:50.011     vid_port.c  .........Device SDL renderer [SDL] opened:
format=I420, size=352x288 @30000:2002 fps
08:32:50.011    pjsua_vid.c  .........preview window id 1 created for
cap_dev=0 rend_dev=2
08:32:50.012    pjsua_vid.c  .........Window 1 created
08:32:50.013     v4l2_dev.c  ........Starting v4l2 video stream USB2.0 PC
CAMERA
08:32:50.049 vstenc0x73b10c  .......Encoder stream paused
08:32:50.050  pjsua_media.c  ......Video updated, stream #1: H263-1998
(sendrecv)
08:32:50.051            APP  .....Call 0 media 0 [type=audio], status is
Active

But unfortunately, I see a greyed screen on my android phone. I took
wireshark traces and could not see any video stream going out from Rpi on
H263.

Could anyone point out, if I am missing something basic?

Br,
Sandeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130511/dde48cb6/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux