Problem with VLC webcam streaming.

*nix specific usage questions
d3v1ous
Blank Cone
Blank Cone
Posts: 12
Joined: 28 Jan 2010 11:54

Problem with VLC webcam streaming.

Postby d3v1ous » 28 Jan 2010 12:00

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem with VLC webcam streaming.

Postby Rémi Denis-Courmont » 28 Jan 2010 16:14

You did not include any MJPEG decoder in your VLC build.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

d3v1ous
Blank Cone
Blank Cone
Posts: 12
Joined: 28 Jan 2010 11:54

Re: Problem with VLC webcam streaming.

Postby d3v1ous » 28 Jan 2010 17:03

Can you tell me how to do this.. sorry for stupid question.

d3v1ous
Blank Cone
Blank Cone
Posts: 12
Joined: 28 Jan 2010 11:54

Re: Problem with VLC webcam streaming.

Postby d3v1ous » 30 Jan 2010 23:35

Ok, can somebody tell me what arguments to use to configure VLC-nox from source with v4l2 support??? Thanks

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem with VLC webcam streaming.

Postby Rémi Denis-Courmont » 31 Jan 2010 11:09

--enable-avcodec
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

hackeron
Blank Cone
Blank Cone
Posts: 24
Joined: 18 Jul 2008 13:30

Re: Problem with VLC webcam streaming.

Postby hackeron » 14 Jul 2012 11:34

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem with VLC webcam streaming.

Postby Rémi Denis-Courmont » 14 Jul 2012 17:49

JPEG over RTP output is not implemented yet.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 3 guests