[vlc] Re: Help with VLM and webcam

Jim Duda jim at duda.tzo.com
Tue Sep 6 14:10:06 CEST 2005


My server setting from "show"

Welcome, Master
> show test

> show webcam
show
    webcam
        type : vod
        enabled : yes
        loop : no
        inputs
            v4l:/dev/video2
        output : #transcode{vcodec=mp4v}:rtp{sdp=rtsp://0.0.0.0:554/test.sdp}
        options
        instances
>

I assume the problem has to do with the unsupported codec messages.

Thanks for the help.

Server startup ...

lroom# vlc -vv --intf telnet --vlm-conf
/usr/local/etc/videolan/vlc/vlc.cfg > log
VLC media player 0.8.2 Janus
[00000001] main vlc debug: opening config file /home/lroom/.vlc/vlcrc
[00000001] main vlc warning: config file /home/lroom/.vlc/vlcrc does not
exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file
/home/lroom/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 191 modules
[00000001] main vlc debug: opening config file /home/lroom/.vlc/vlcrc
[00000001] main vlc warning: config file /home/lroom/.vlc/vlcrc does not
exist yet
[00000000] main root debug: VLC media player - version 0.8.2 Janus - (c)
1996-2005 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure
--with-ffmpeg-tree=/usr/src/ffmpeg-20041113 --with-ffmpeg-mp3lame
--with-ffmpeg-faac --enable-ffmpeg --enable-pvr --enable-livedotcom
--with-livedotcom-tree=/usr/src/live --enable-dvb --enable-v4l
[00000001] main vlc debug: translation test: code is "C"
[00000001] main vlc debug: opening config file /home/lroom/.vlc/vlcrc
[00000001] main vlc warning: config file /home/lroom/.vlc/vlcrc does not
exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file
/home/lroom/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 191 modules
[00000001] main vlc debug: opening config file /home/lroom/.vlc/vlcrc
[00000001] main vlc warning: config file /home/lroom/.vlc/vlcrc does not
exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE
SSE2 FPU
[00000001] main vlc debug: looking for memcpy module: 3 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000239] main playlist debug: waiting for thread completion
[00000239] main playlist debug: thread 16386 (playlist) created at
priority 0 (src/playlist/playlist.c:152)
[00000240] main private debug: waiting for thread completion
[00000240] main private debug: thread 32771 (preparser) created at
priority 0 (src/playlist/playlist.c:174)
[00000241] main interface debug: looking for interface module: 1 candidate
[00000111] main module debug: using interface module "hotkeys"
[00000241] main interface debug: interface initialized
[00000241] main interface debug: thread 49156 (interface) created at
priority 0 (src/interface/interface.c:211)
[00000243] main interface debug: looking for interface module: 3 candidates
[00000243] main interface: creating vlm
[00000245] main vlm debug: thread 65541 (vlm thread) created at priority 0
(src/misc/vlm.c:105)
[00000243] main interface debug: loading vlm conf ...
[00000243] main interface debug: load /usr/local/etc/videolan/vlc/vlc.cfg
[00000246] main private debug: looking for vod server module: 1 candidate
[00000246] main private: creating httpd
[00000249] main private debug: thread 81926 (httpd host thread) created at
priority 0 (src/misc/httpd.c:1163)
[00000173] main module debug: using vod server module "vod_rtsp"
[00000250] main input debug: set input option: sout to #description
[00000250] main input debug: waiting for thread completion
[00000250] main input debug: thread 98311 (input) created at priority 0
(src/input/input.c:230)
[00000251] main stream output debug: stream=`description'
[00000252] main private debug: looking for sout stream module: 1 candidate
[00000196] main module debug: using sout stream module
"stream_out_description"
[00000250] main input debug: `v4l:/dev/video2' gives access `v4l' demux `'
path `/dev/video2'
[00000250] main input debug: creating demux: access='v4l' demux=''
path='/dev/video2'
[00000254] main demuxer debug: looking for access_demux module: 1 candidate
[00000254] v4l demuxer debug: main device=`/dev/video2'
[00000254] v4l demuxer debug: V4L device Flexcam 100 Camera
 1 channels 0 audios 160 < w < 352 120 < h < 288
[00000254] v4l demuxer debug: invalid width 0
[00000254] v4l demuxer debug: invalid height 0
[00000254] v4l demuxer debug: setting channel SPCA561
(0) 0 tuners flags=0x0 type=0x2 norm=0x808
[00000254] v4l demuxer debug: will use 160x120
[00000254] v4l demuxer debug: v4l device uses brightness: 1920
[00000254] v4l demuxer debug: v4l device uses colour: 0
[00000254] v4l demuxer debug: v4l device uses hue: 0
[00000254] v4l demuxer debug: v4l device uses contrast: 38464
[00000254] v4l demuxer debug: v4l device uses frame size: 28800
[00000254] v4l demuxer debug: v4l device uses chroma: I420
[00000254] v4l demuxer debug: openened adev=`/dev/dsp' stereo 44100Hz
[00000254] v4l demuxer debug: v4l grabbing started
[00000254] v4l demuxer debug: added new video es I420 160x120
[00000250] main input debug: selecting program id=0
[00000254] v4l demuxer debug: new audio es 2 channels 44100Hz
[00000033] main module debug: using access_demux module "v4l"
[00000256] main packetizer debug: looking for packetizer module: 15
candidates
[00000092] main module debug: using packetizer module "rawvideo"
[00000256] main packetizer debug: thread 114696 (decoder) created at
priority 0 (src/input/decoder.c:159)
[00000261] main packetizer debug: looking for packetizer module: 15
candidates
[00000187] main module debug: using packetizer module "packetizer_copy"
[00000261] main packetizer debug: thread 131081 (decoder) created at
priority 0 (src/input/decoder.c:159)
[00000250] main input debug: starting in asynch mode
[00000250] main input debug: `v4l:/dev/video2' successfully opened
[00000251] main stream output debug: adding a new input
[00000251] main stream output debug: adding a new input
[00000250] main input debug: control type=0
[00000250] main input debug: control: stopping input
[00000250] main input debug: closing input
[00000033] main module debug: unlocking module "v4l"
[00000092] main module debug: unlocking module "rawvideo"
[00000256] main packetizer debug: thread 114696 joined
(src/input/decoder.c:191)
[00000256] main packetizer debug: killing decoder fourcc `I420', 0 PES in
FIFO
[00000251] main stream output debug: removing an input
[00000187] main module debug: unlocking module "packetizer_copy"
[00000261] main packetizer debug: thread 131081 joined
(src/input/decoder.c:191)
[00000261] main packetizer debug: killing decoder fourcc `araw', 0 PES in
FIFO
[00000251] main stream output debug: removing an input
[00000250] main input warning: destroying sout
[00000252] main private debug: destroying chain... (name=description)
[00000196] main module debug: unlocking module "stream_out_description"
[00000252] main private debug: destroying chain done
[00000250] main input debug: thread 98311 joined (src/input/input.c:386)
[00000246] vod_rtsp private debug: created rtsp url: /webcam
[00000246] vod_rtsp private debug: media has 2 declared ES
[00000246] vod_rtsp private debug:   - ES I420 (/webcam/trackid=0)
[00000246] vod_rtsp private error: cannot add this stream (unsupported
codec: I420)
[00000246] vod_rtsp private debug:   - ES s16l (/webcam/trackid=0)
[00000246] vod_rtsp private error: cannot add this stream (unsupported
codec: s16l)
[00000243] telnet interface: Using the VLM interface plugin...
[00000243] main interface debug: net: listening to ':4212'
[00000243] main interface debug: looking for network module: 2 candidates
[00000166] main module debug: using network module "ipv4"
[00000166] main module debug: unlocking module "ipv4"
[00000243] telnet interface: Telnet interface started on port: 4212
[00000113] main module debug: using interface module "telnet"
[00000243] main interface debug: interface initialized
[00000243] main interface debug: thread 147463 (manager) created at
priority 0 (src/interface/interface.c:196)
signal 2 received, terminating vlc - do it again in case it gets stuck
[00000001] main vlc debug: removing all interfaces
[00000243] main interface debug: thread 147463 joined
(src/interface/interface.c:238)
[00000245] main vlm debug: thread 65541 joined (src/misc/vlm.c:156)
[00000246] vod_rtsp private debug: deleting media: /webcam
[00000249] main private debug: httpd_HostDelete
[00000249] main private debug: httpd_HostDelete: host removed from http
[00000249] main private debug: thread 81926 joined (src/misc/httpd.c:1221)
[00000249] main private debug: httpd_HostDelete: host thread joined
[00000248] main http daemon: httpd doesn't reference any host, deleting
[00000173] main module debug: unlocking module "vod_rtsp"
[00000113] main module debug: unlocking module "telnet"
[00000241] main interface debug: thread 49156 joined
(src/interface/interface.c:238)


> On Mon, Sep 05, 2005, Jim Duda wrote :
>> I'm struggling to figure out how to get vlc (vlm) to stream from a
>> webcam on
>> /dev/videol.  I realize that
>> I need to transcode, but I cannot seem to figure out how to get it to
>> work.
>>
>> This is what I do:
>>
>> new Test vod enable
>> setup Test input v4l:/dev/video2
>> setup Test output
>> #transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:rtp{sdp=rtsp://0.0.0.0:554/test.sdp}
>>
>> When I attempt to use the client:
>>
>> vlc rtsp://<host>/test.sdp
>>
>> I get:
>>
>> [00000262] livedotcom demuxer error: describeURL failed (cannot handle
>> DESCRIBE response: RTSP/1.0 404 Not found)
>>
>> I can see that <host> is listening on port 554.
>>
>> When I attempt to use an mpg file as input, all seems to work, so I'm
>> close.
>>
>
> Could you please start the server with the -vv option and give us the
> log ?
>
> --
> BigBen
>
> --
> This is the vlc mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://www.videolan.org/support/lists.html
>

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list