[Asterisk-video] chan_oss video problems

Klaus Darilion klaus.mailinglists at pernau.at
Wed Jul 2 06:53:41 CDT 2008


>> Maybe I am doing something wrong - I still do not understand how this
>> all
>> should work. From the description there should be a GUI to configure the
>> video stream. But I do not understand where this GUI is coming from.
>> Asterisk is a console-based application - new GUI. Does chan_oss open an
>> X
>> window? For this - do I have to start Asterisk in foreground or will it
>> also work when running as daemon?
>
> MEanwhile I figured out that the video relevant part in oss.conf was not
> activated. (btw: what does the exclamation mark in [video](!) mean?)
>
> Now, on an incoming call, the GUI windows gets created. But if click
> somewhere in the GUI, Asterisk segfaults.
> (gdb) bt
> #0  0xb789cdf8 in ?? () from /usr/lib/asterisk/modules/chan_oss.so
> #1  0xb789e835 in ?? () from /usr/lib/asterisk/modules/chan_oss.so
> #2  0x0813e5cb in dummy_start (data=0x8224bb0) at utils.c:1024
> #3  0xb7d984fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #4  0xb7e86e5e in clone () from /lib/tls/i686/cmov/libc.so.6
> Current language:  auto; currently asm
> (gdb)

Ok. Meanwhile Asterisk does not crash anymore. Lookls like chan_oss does
not like invalid keypad maps. But still I do net see video of the camera
in the GUI window. v4l-info reports my webcam's size to 320x240. xawtv
reports that it is using 160x120. I tried by resolutions. With these
resolutions the error during opening of the video device are gone,
nevertheless I still have no video.

Any hints?
thanks
klaus

PS: console log:

    -- Executing [s at from-nic.at43.at:3] Dial("SIP/nic.at43.at-08236838",
"console/dsp,20") in new stack
[Jul  2 13:49:48] WARNING[10721]: chan_oss.c:845 oss_request: oss_request
ty <console> data 0x0xb661fcc4 <dsp>
  == Console is full duplex
[Jul  2 13:49:48] WARNING[10721]: console_video.c:1061
console_video_start: env 0x82017f0 chan 0x8261a18
[Jul  2 13:49:48] WARNING[10721]: console_video.c:411
map_config_video_format: Using codec 'h263'
[Jul  2 13:49:48] WARNING[10721]: console_video.c:1070
console_video_start: start video out h263 352x288
 << Call to device 'dsp' dnid '(null)' rdnis '(null)' on console from ''
<klaus.darilion> >>
 << Auto-answered >>
    -- Called dsp
    -- Console/dsp answered SIP/nic.at43.at-08236838
[Jul  2 13:49:49] WARNING[10721]: console_gui.c:1082 gui_init: Loaded font
/home/darilion/asterisk/images/font.png
[Jul  2 13:49:49] WARNING[10721]: chan_oss.c:464 soundcard_writeframe:
write: used 13 blocks (1)
[Jul  2 13:49:49] WARNING[10721]: vgrabbers.c:250 grab_v4l1_open: contrast
32768 bright 32768 colour 32768 hue 32768 white 32768 palette 4
[Jul  2 13:49:49] WARNING[10721]: vgrabbers.c:271 grab_v4l1_open: videodev
/dev/video0 opened, size 160x120 28800
[Jul  2 13:49:49] WARNING[10721]: vgrabbers.c:279 grab_v4l1_open: success
opening camera
[Jul  2 13:49:58] WARNING[10721]: chan_oss.c:464 soundcard_writeframe:
write: used 12 blocks (1)
[Jul  2 13:50:00] WARNING[10721]: chan_oss.c:464 soundcard_writeframe:
write: used 12 blocks (1)





More information about the asterisk-video mailing list