wrong audio output and multicast performance

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Magz
New Cone
New Cone
Posts: 8
Joined: 28 Nov 2003 11:17
Location: Germany

wrong audio output and multicast performance

Postby Magz » 01 Dec 2003 14:47

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 8)


-------------------------------------------
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"

BigBen
Cone that earned his stripes
Cone that earned his stripes
Posts: 115
Joined: 25 Nov 2003 10:48

Postby BigBen » 01 Dec 2003 20:16

Well, about your audio issue... Are you sure recording is set to line out (not only playbck) and recoding level is high enough

About yout craching issue... Is the log you sent reulting from a crash ? I can only see VLC exiting cleanly...

Magz
New Cone
New Cone
Posts: 8
Joined: 28 Nov 2003 11:17
Location: Germany

Postby Magz » 03 Dec 2003 11:55

Hi,
intermediate the sound works. It was a mixer problem, but the sound is broken and not synchron.

The biggest problem is that the player crashes after about 10 seconds. The sound goes into a loop and dr.watson writes the following log:

There are many posts about crashes in the mailing list, but no solution. Are there any recommendations?

Thanks.
Magz


---drwatson.log-----------

Microsoft (R) Windows 2000 (TM) Version 5.00 DrWtsn32
Application exception occurred:
App: (pid=476)
When: 03.12.2003 @ 11:22:07.855
Exception number: c0000005 (access violation)

*----> System Information <----*
Computer Name: ********
User Name: ********
Number of Processors: 1
Processor Type: x86 Family 6 Model 8 Stepping 3
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: 2
Current Type: Uniprocessor Free
Registered Organization: **********
Registered Owner: CCM-Client: 2kadm

*----> Task List <----*
0 Idle.exe
8 System.exe
172 SMSS.exe
192 CSRSS.exe
184 WINLOGON.exe
240 SERVICES.exe
252 LSASS.exe
416 svchost.exe
444 SPOOLSV.exe
508 svchost.exe
572 suss.exe
628 WCONTROL.exe
708 WinMgmt.exe
396 ssonsvr.exe
336 SHSTART.exe
556 explorer.exe
792 fpdisp4.exe
784 ico.exe
612 igfxtray.exe
864 internat.exe
772 taskmgr.exe
764 sndvol32.exe
476 vlc.exe
1016 sndvol32.exe
916 DRWTSN32.exe
0 _Total.exe

(00400000 - 00945000)
(77F80000 - 77FFB000)
(77E80000 - 77F35000)
(78000000 - 78046000)
(77570000 - 775A0000)
(77E10000 - 77E74000)
(77F40000 - 77F7C000)
(77DB0000 - 77E0B000)
(77D30000 - 77D9E000)
(75030000 - 75043000)
(75020000 - 75028000)
(60400000 - 6040E000)
(63500000 - 63507000)
(61140000 - 61147000)
(61100000 - 61108000)
(6B640000 - 6B648000)
(6D140000 - 6D14B000)
(6A600000 - 6A60A000)
(6F100000 - 6F12B000)
(61200000 - 61221000)
(60680000 - 606AF000)
(65200000 - 65240000)
(6ADC0000 - 6ADD3000)
(6AE40000 - 6AE47000)
(63100000 - 6314A000)
(604C0000 - 604C8000)
(6C040000 - 6C05B000)
(69200000 - 69224000)
(657C0000 - 65858000)
(6F740000 - 6F75A000)
(63840000 - 6384D000)
(66F40000 - 66F47000)
(6A800000 - 6A81E000)
(6F540000 - 6F54C000)
(61A40000 - 61A52000)
(68E80000 - 68E8F000)
(62400000 - 6240F000)
(69EC0000 - 69EC8000)
(00F50000 - 00F58000)
(6F9C0000 - 6F9C7000)
(67800000 - 67808000)
(690C0000 - 690C8000)
(61040000 - 6104A000)
(64680000 - 646A4000)
(6F8C0000 - 6F967000)
(77A50000 - 77B3C000)
(782F0000 - 78532000)
(70BD0000 - 70C34000)
(71780000 - 7180A000)
(6EE00000 - 6EE0E000)
(65F00000 - 65F07000)
(600C0000 - 600C7000)
(68280000 - 6828A000)
(00F60000 - 0103F000)
(64780000 - 6478C000)
(6C740000 - 6C74A000)
(6D840000 - 6D864000)
(6A900000 - 6A913000)
(6F0C0000 - 6F0CB000)
(6E300000 - 6E308000)
(64940000 - 64AFD000)
(76B30000 - 76B6E000)
(779B0000 - 77A4B000)
(75050000 - 75058000)
(74FD0000 - 74FEF000)
(75010000 - 75017000)
(6E420000 - 6E426000)
(75E60000 - 75E7A000)
(51080000 - 510D4000)
(77820000 - 77827000)
(759B0000 - 759B6000)
(77560000 - 77569000)
(77400000 - 77408000)
(77410000 - 77423000)
(76B20000 - 76B25000)
(772B0000 - 7731C000)
(51000000 - 51044000)
(728A0000 - 728A6000)

State Dump for Thread Id 0x3c8

eax=7074756f ebx=003f0000 ecx=64207475 edx=026b27e8 esi=026b0000 edi=026b27e8
eip=77fcb892 esp=0225d504 ebp=0225d510 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000206


function: RtlFreeHeap
FAULT ->77fcb892 8901 mov [ecx],eax ds:64207475=????????
77fcb894 894804 mov [eax+0x4],ecx ds:711d4b41=????????

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0225D510 77FCB733 003F0000 026B0000 0225D588 00000000 ntdll!RtlFreeHeap
0225D5B8 78001D92 003F0000 00000000 026B0008 00EE0210 ntdll!RtlFreeHeap
0225D600 004BAD00 026B0008 00EE02C0 000027C0 78033250 !free
026BD5A0 BDBE0E05 BDC463FD BDC31F7A BDCC7BE1 BDCB807F !<nosymbols>
BDBF49E4 00000000 00000000 00000000 00000000 00000000 <nosymbols>

*----> Raw Stack Dump <----*
0225d504 00 00 3f 00 00 00 6b 02 - 00 00 00 00 b8 d5 25 02 ..?...k.......%.
0225d514 33 b7 fc 77 00 00 3f 00 - 00 00 6b 02 88 d5 25 02 3..w..?...k...%.
0225d524 00 00 00 00 10 02 ee 00 - 08 00 6b 02 d0 e7 ef 00 ..........k.....
0225d534 92 29 f0 3d e8 37 e6 3d - 8a fa ee 3d 7a 93 df 3d .).=.7.=...=z..=
0225d544 b0 f4 e6 3d e4 1b d3 3d - ee 72 d8 3d 30 dc c1 3d ...=...=.r.=0..=
0225d554 77 5f c5 3d 78 01 3f 00 - 38 32 69 02 78 01 3f 00 w_.=x.?.82i.x.?.
0225d564 78 01 3f 00 30 32 69 02 - 7d 13 9c 3d a8 b5 98 3d x.?.02i.}..=...=
0225d574 8a e3 a0 3d 80 c9 a4 3d - 32 37 af 3d 00 00 3f 00 ...=...=27.=..?.
0225d584 00 00 3f 00 fd 04 00 00 - 01 a0 6b 02 34 2e d7 3d ..?.......k.4..=
0225d594 00 b0 6a 02 01 08 00 00 - e9 e1 e1 3d 28 d5 25 02 ..j........=(.%.
0225d5a4 50 d1 25 02 f0 d5 25 02 - a7 9d fb 77 90 26 f8 77 P.%...%....w.&.w
0225d5b4 01 00 00 00 00 d6 25 02 - 92 1d 00 78 00 00 3f 00 ......%....x..?.
0225d5c4 00 00 00 00 08 00 6b 02 - 10 02 ee 00 38 00 6b 02 ......k.....8.k.
0225d5d4 d0 e7 ef 00 ff ff ff ff - 1c d6 25 02 26 14 00 78 ..........%.&..x
0225d5e4 00 00 3f 00 00 00 00 00 - 50 d1 25 02 a4 ff 25 02 ..?.....P.%...%.
0225d5f4 11 db 00 78 a0 32 03 78 - ff ff ff ff a0 d5 6b 02 ...x.2.x......k.
0225d604 00 ad 4b 00 08 00 6b 02 - c0 02 ee 00 c0 27 00 00 ..K...k......'..
0225d614 50 32 03 78 98 0a 00 00 - 02 00 00 00 00 00 00 00 P2.x............
0225d624 08 a0 6b 02 d0 e7 ef 00 - 0e 00 00 00 f0 d6 25 02 ..k...........%.
0225d634 e0 89 44 00 d0 e7 ef 00 - 08 a0 6b 02 40 42 0f 00 ..D.......k.@B..

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 05 Dec 2003 12:50

I fixed a nasty bug in the audio transcoding yesterday so could you try to compile a CVS version and check it is working fine for you ?

Ah and for the win32 client, can you give a try to:
http://www.videolan.org/pub/testing/vlc ... -win32.exe
Or even more recent:
http://vthr.via.ecp.fr/~videolan/build/win32/

Magz
New Cone
New Cone
Posts: 8
Joined: 28 Nov 2003 11:17
Location: Germany

Postby Magz » 05 Dec 2003 13:56

Hi,
I've just tested last client compilation from yesterday 12/4.
The client doesn't start. It crashes with drwatson at once. With latest vlc server I can't see a picture.
Meanwhile I have localized the crash problem. When I start old client with --noaudio there is no drwatson. New Client 0.7 from 12/2 also runs fine but without audio.
No idea what I can change in the settings or in the server commandline ...

salut
Magz

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 05 Dec 2003 14:18

Try "-A waveout" to select the waveOut audio output plugin.

And you can also try to update your soundcard drivers.

Magz
New Cone
New Cone
Posts: 8
Joined: 28 Nov 2003 11:17
Location: Germany

Postby Magz » 05 Dec 2003 16:25

Great, with -A waveout the client works. It sounds that the sound is a little bit too fast. Sound is not continously. It sounds "choppy", can't describe it exactly :).

Do you have any new idea how I can make the sound better ... more continously ??

so long
Magz


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 67 guests