Page 1 of 1

Problem with VLC webcam streaming.

Posted: 28 Jan 2010 12:00
by d3v1ous
Hello im trying to stream my webcam over the network. I use v4l2 driver.

The command line i use is:

cvlc -vvv v4l2:// :v4l2-vdev=/dev/video0 :v4l2-adev=/dev/dsp :v4l2-standard=0 :sout="#transcode{vcodec=mp1v,vb=900,scale=1,acodec=mpga,ab=129,channels=2}:duplicate{dst=std{access=http,mux=asf,dst=0.0.0.0:1234}}"

I ran debian lenny server (without X). I have compiled vlc with v4l2 support. So the errors is:

[0x9978410] stream_out_transcode stream out error: cannot find video decoder
[0x9978410] stream_out_transcode stream out error: cannot create video chain
[0x997cd60] main packetizer error: cannot create packetizer output (MJPG)

What i should do to prevent this?

Maybe this will be usefull information:

[0x98fb8a8] main libvlc debug: VLC media player - version 1.0.4 Goldeneye - (c) 1996-2009 the VideoLAN team
[0x98fb8a8] main libvlc debug: libvlc was configured with ./configure '--enable-v4l' '--enable-v4l2' '--disable-nls' '--disable-mozilla' '--disable-dbus' '--disable-dbus-control' '--disable-telepathy' '--disable-lua' '--disable-cdda' '--disable-vcd' '--disable-dvb' '-disable-libcddb' '-disable-x11' '--disable-glx' '--disable-opengl' '--disable-xvideo' '--disable-xvmc' '--disable-freetype' '--disable-fontconfig' '--disable-fb' '--disable-qt4' '--disable-skins2' '--disable-sdl' '--disable-sdl-image' '--disable-notify' '--disable-libgcrypt' '--disable-mad' '--disable-avcodec' '--disable-avformat' '--disable-swscale' '--disable-postproc' '--disable-a52' '--disable-remoteosd'

Thanks.

Re: Problem with VLC webcam streaming.

Posted: 28 Jan 2010 16:14
by Rémi Denis-Courmont
You did not include any MJPEG decoder in your VLC build.

Re: Problem with VLC webcam streaming.

Posted: 28 Jan 2010 17:03
by d3v1ous
Can you tell me how to do this.. sorry for stupid question.

Re: Problem with VLC webcam streaming.

Posted: 30 Jan 2010 23:35
by d3v1ous
Ok, can somebody tell me what arguments to use to configure VLC-nox from source with v4l2 support??? Thanks

Re: Problem with VLC webcam streaming.

Posted: 31 Jan 2010 11:09
by Rémi Denis-Courmont
--enable-avcodec

Re: Problem with VLC webcam streaming.

Posted: 14 Jul 2012 11:34
by hackeron
I'm using a vlm config, like this:

Code: Select all

new cam1 broadcast enabled setup cam1 input rtsp://admin:admin@192.168.0.164/0 setup cam1 output #rtp{mux="ts",sdp="rtsp://localhost:1234/cam1"} control cam1 play
The MJPG gets streamed just fine, but "mux=ts" cannot mux g726 audio so I get:

Code: Select all

[0x10303f6f0] [Media: cam1] main decoder error: cannot create packetizer output (g726)
If I remove the "mux=ts" from the above, the audio gets streamed just fine but there's no video and I get:

Code: Select all

[0x102a00800] stream_out_rtp stream out error: cannot add this stream (unsupported codec: MJPG) [0x10382faf0] [Media: cam1] main decoder error: cannot create packetizer output (MJPG)
So I have all the codecs and everything required but still getting that error.

Any ideas?

Re: Problem with VLC webcam streaming.

Posted: 14 Jul 2012 17:49
by Rémi Denis-Courmont
JPEG over RTP output is not implemented yet.