This is what I found to work on my system.....Fedora Core 4, all applications install via yum...
vlc -vv v4l:/dev/video0:norm=ntsc:size=320x240:adev=/dev/dsp:audio=0 --ttl 12 --sout '#transcode{vcodec=mp4v,acodec=mp3,vb=1000,ab=64}:std{access=http,mux=ts}'
Notice the acodec=mp3 part...If I use any other codec in there I get this error:
main encoder debug: looking for encoder module: 7 candidates
[00000279] stream_out_transcode private error: cannot find encoder
[00000151] main module debug: unlocking module "araw"
[00000279] stream_out_transcode private error: cannot create audio chain
which results in a picture with no sound...
Now...with the command line start text listed above, I get a really nice picture with sound when I open the stream from a windows machine (running vlc) but when I try to open the stream from a linux box vlc just crashes with this message....:
[00000286] ts demuxer debug: * es pid=69 type=3 fcc=mpga
[00000346] main decoder debug: looking for decoder module: 24 candidates
[00000110] main module debug: using decoder module "mpeg_audio"
[00000346] main decoder debug: thread 149711776 (decoder) created at priority 0 (src/input/decoder.c:159)
[00000286] ts demuxer warning: first packet for pid=68 cc=0xd
[00000286] ts demuxer warning: first packet for pid=69 cc=0x8
[00000339] packetizer_mpeg4video packetizer warning: waiting for VOL
[00000339] packetizer_mpeg4video packetizer warning: waiting for VOL
[00000346] mpeg_audio decoder debug: MPGA channels:2 samplerate:44100 bitrate:64
[00000346] main decoder debug: no aout present, spawning one
[00000347] main audio output debug: looking for audio output module: 6 candidates
[00000347] alsa audio output debug: opening ALSA device `default'
vlc: pcm_plug.c:384: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed.
Aborted
Anyone have a clue?? I tried switching the audio mode to OSS but I get the same thing...