Hi,
I've got a problem with vlc. I'd like to stream a tv broadcast per multicast to severalt clients.
The command line is:
vlc -vvv v4l:/dev/video:norm=pal:frequency=154250:size=640x480:channel=0:adev=/dev/audio:audio=mono --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=768,ab=128,vt=800000,keyint=80,deinterlace}:std{access=udp,mux=ts,url=239.255.210.81}' --ttl 7
I have a IBM Netvista PC as Streaming Server. The sound doesn't come over the net, it comes from the internal speaker. What goes wrong? How can I redirect the sound to the net? I tried aumix for changing the source but there is the same error.
Another problem is the multicast performance. The Vlc Client crashes after about 20 sec. I have increased the udp caching value to 5000 but the client loses pictures. How can I increase the stability ob the client? Is there anything i can do with the network parameters for better performance?
Thank you very much
Magz
-------------------------------------------
Here's the whole log of a session ...
VideoLAN Client 0.6.2 Trevelyan
[00000000] main root debug: VLC media player - version 0.6.2 Trevelyan - (c) 1996-2003 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure --enable-v4l --disable-dvd --disable-mad --with-ffmpeg-tree=/etc/ffmpeg-20030813/ --disable-libmpeg2 --with-v4l=/lib/modules/2.4.21-99-default/v4l2/
[00000001] main vlc debug: translation test: code is "C"
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000000] main root debug: checking builtin modules
[00000000] main root debug: checking plugin modules
[00000000] main root debug: recursively browsing `modules'
[00000000] main root debug: recursively browsing `/usr/local/lib/vlc'
[00000000] main root debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 126 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE FPU
[00000001] main vlc debug: looking for memcpy module
[00000001] main vlc debug: probing 3 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000140] main playlist debug: waiting for thread completion
[00000140] main playlist debug: thread 16386 (playlist) created at priority 0 (src/playlist/playlist.c:80)
[00000140] main playlist debug: adding playlist item « v4l:/dev/video:norm=pal:frequency=154250:size=640x480:channel=0:adev=/dev/audio:audio=mono » ( v4l:/dev/video:norm=pal:frequency=154250:size=640x480:channel=0:adev=/dev/audio:audio=mono )
[00000140] main playlist debug: creating new input thread
[00000141] main input: playlist item `v4l:/dev/video:norm=pal:frequency=154250:size=640x480:channel=0:adev=/dev/audio:audio=mono'
[00000141] main input debug: waiting for thread completion
[00000141] main input debug: access `v4l', demux `', name `/dev/video:norm=pal:frequency=154250:size=640x480:channel=0:adev=/dev/audio:audio=mono'
[00000141] main input debug: looking for access module
[00000141] main input debug: probing 6 candidates
[00000141] v4l input debug: WxH 640x480
[00000141] v4l input debug: video device=`/dev/video'
[00000141] v4l input debug: audio device=`/dev/audio'
[00000141] main input debug: thread 32771 (input) created at priority 0 (src/input/input.c:180)
[00000141] main input debug: playing at normal rate
[00000142] main interface debug: looking for interface module
[00000142] main interface debug: probing 1 candidate
remote control interface initialized, `h' for help
[00000036] main module debug: using interface module "rc"
[00000142] main interface debug: interface initialized
[00000141] v4l input debug: V4L device BT848A(MIRO PCTV) 4 channels 1 audios 48 < w < 924 32 < h < 576
[00000141] v4l input debug: setting channel Television(0) 1 tuners flags=0x3 type=0x1 norm=0x0
[00000141] v4l input debug: frequency 154250 (2468)
[00000141] v4l input debug: adev=`/dev/audio' stereo 44100Hz
[00000141] v4l input debug: v4l device uses frame size: 460800
[00000141] v4l input debug: v4l device uses chroma: I420
[00000141] v4l input: v4l grabbing started
[00000077] main module debug: using access module "v4l"
[00000142] main interface debug: thread 49156 (manager) created at priority 0 (src/interface/interface.c:118)
[00000141] main input debug: looking for demux module
[00000141] main input debug: probing 16 candidates
[00000141] mp4 input warning: MP4 plugin discarded (unseekable)
[00000141] avi input warning: avi module discarded (invalid header)
[00000141] asf input warning: ASF v1.0 plugin discarded (not a valid file)
[00000141] v4l input debug: added new video es I420 640x480
[00000141] main input debug: selecting ES 0x1
[00000143] main decoder debug: looking for packetizer module
[00000143] main decoder debug: probing 6 candidates
[00000135] main module debug: using packetizer module "packetizer_copy"
[00000143] packetizer_copy decoder debug: Running copy packetizer (fcc=I420)
[00000143] main decoder debug: thread 65541 (decoder) created at priority 0 (src/input/input_dec.c:112)
[00000141] v4l input debug: added new audio es 2 channels 44100Hz
[00000141] main input debug: selecting ES 0x2
[00000144] main decoder debug: looking for packetizer module
[00000144] main decoder debug: probing 6 candidates
[00000135] main module debug: using packetizer module "packetizer_copy"
[00000144] packetizer_copy decoder debug: Running copy packetizer (fcc=araw)
[00000144] main decoder debug: thread 81926 (decoder) created at priority 0 (src/input/input_dec.c:112)
[00000078] main module debug: using demux module "v4l"
[00000145] main stream output debug: stream=`transcode'
[00000146] main private debug: looking for sout stream module
[00000146] main private debug: probing 1 candidate
[00000145] main stream output debug: stream=`std'
[00000147] main private debug: looking for sout stream module
[00000147] main private debug: probing 1 candidate
[00000147] stream_out_standard private debug: creating `udp/ts://239.255.210.81'
[00000148] main private debug: looking for sout access module
[00000148] main private debug: probing 1 candidate
[00000149] main private debug: looking for network module
[00000149] main private debug: probing 2 candidates
[00000149] ipv4 private debug: socket buffer size is 0x1fffe instead of 0x80000
[00000021] main module debug: using network module "ipv4"
[00000021] main module debug: unlocking module "ipv4"
[00000149] main private debug: thread 98311 (sout write thread) created at priority 0 (udp.c:215)
[00000148] access_output_udp private: Open: addr:`239.255.210.81' port:`1234'
[00000039] main module debug: using sout access module "access_output_udp"
[00000147] stream_out_standard private debug: access opened
[00000150] main private debug: looking for sout mux module
[00000150] main private debug: probing 2 candidates
[00000150] mux_ts_dvbpsi private debug: Open
[00000150] mux_ts_dvbpsi private debug: pcr_delay=100000 pcr_soft_delay=0
[00000019] main module debug: using sout mux module "mux_ts_dvbpsi"
[00000145] main stream output debug: muxer support adding stream at any time
[00000147] stream_out_standard private debug: mux opened
[00000104] main module debug: using sout stream module "stream_out_standard"
[00000146] stream_out_transcode private debug: codec audio=mpga 0Hz 0 channels 125Kb/s
[00000146] stream_out_transcode private debug: codec video=mp4v 0x0 750kb/s
[00000014] main module debug: using sout stream module "stream_out_transcode"
[00000143] main decoder debug: waiting for sout
[00000145] main stream output debug: adding a new input
[00000146] stream_out_transcode private debug: creating video transcoding from fcc=`I420' to fcc=`mp4v'
[00000144] main decoder debug: waiting for sout
[00000145] main stream output debug: adding a new input
[00000146] stream_out_transcode private debug: creating audio transcoding from fcc=`s16l' to fcc=`mpga'
[00000150] main private debug: adding a new input
[00000150] mux_ts_dvbpsi private debug: adding input codec=mpga
[00000150] main private debug: adding a new input
[00000150] mux_ts_dvbpsi private debug: adding input codec=mp4v
[00000149] access_output_udp private debug: mmh, paquets in the past -> drop
[00000150] mux_ts_dvbpsi private debug: dropping buffer size=418 dts=1070286248857804 pcr_dts=1070286248858538 diff=40735
[00000150] mux_ts_dvbpsi private debug: dropping buffer size=418 dts=1070286249694653 pcr_dts=1070286249698542 diff=43890
[00000150] mux_ts_dvbpsi private debug: dropping buffer size=418 dts=1070286250296078 pcr_dts=1070286250298545 diff=42467
[00000150] mux_ts_dvbpsi private debug: dropping buffer size=417 dts=1070286250897565 pcr_dts=1070286250898548 diff=40985
[00000150] mux_ts_dvbpsi private debug: dropping buffer size=418 dts=1070286251734450 pcr_dts=1070286251738553 diff=44101
signal 2 received, terminating vlc - do it again in case it gets stuck
[00000001] main vlc debug: removing all interfaces
[00000142] main interface debug: thread 49156 joined (src/interface/interface.c:158)
[00000036] main module debug: unlocking module "rc"
[00000001] main vlc debug: removing all playlists
[00000141] main input debug: 602 loops consuming user: 45, system: 4
[00000141] main input debug: dumping stream ID 0x0 [OK:0/D:0]
[00000141] main input debug: pace un-controlled
[00000141] main input debug: dumping program 0x0, version 0 (complete)
[00000141] main input debug: ES 0x1, stream 0x1, fourcc `I420', selected [OK:0/ERR:0]
[00000141] main input debug: ES 0x2, stream 0x2, fourcc `araw', selected [OK:0/ERR:0]
[00000141] main input debug: unselecting ES 0x1
[00000145] main stream output debug: removing an input
[00000150] mux_ts_dvbpsi private debug: removing input
[00000143] main decoder debug: thread 65541 joined (src/input/input_dec.c:151)
[00000143] main decoder debug: killing decoder for 0x1, fourcc `I420', 10 PES in FIFO
[00000135] main module debug: unlocking module "packetizer_copy"
[00000141] main input debug: unselecting ES 0x2
[00000145] main stream output debug: removing an input
[00000150] mux_ts_dvbpsi private debug: removing input
[00000150] main private warning: no more input stream for this mux
[00000144] main decoder debug: thread 81926 joined (src/input/input_dec.c:151)
[00000144] main decoder debug: killing decoder for 0x2, fourcc `araw', 10 PES in FIFO
[00000135] main module debug: unlocking module "packetizer_copy"
[00000141] main input debug: no more selected ES
[00000146] main private debug: destroying chain... (name=transcode)
[00000147] main private debug: destroying chain... (name=std)
[00000150] mux_ts_dvbpsi private debug: Close
[00000019] main module debug: unlocking module "mux_ts_dvbpsi"
[00000149] main private debug: thread 98311 joined (udp.c:257)
[00000148] access_output_udp private: Close
[00000039] main module debug: unlocking module "access_output_udp"
[00000104] main module debug: unlocking module "stream_out_standard"
[00000147] main private debug: destroying chain done
[00000014] main module debug: unlocking module "stream_out_transcode"
[00000146] main private debug: destroying chain done
[00000078] main module debug: unlocking module "v4l"
[00000141] v4l input: v4l grabbing stoped
[00000077] main module debug: unlocking module "v4l"
[00000141] main input debug: pes: 12 packets
[00000141] main input debug: data: 98 packets
[00000141] main input debug: buffers: 21 packets
[00000141] main input debug: freeing info structures...
[00000141] main input debug: thread 32771 joined (src/input/input.c:214)
[00000140] main playlist debug: thread 16386 joined (src/playlist/playlist.c:102)
[00000001] main vlc debug: removing all video outputs
[00000001] main vlc debug: removing all audio outputs
[00000010] main module debug: unlocking module "memcpymmxext"