[vlc] vlc streaming errs
Janis Putrams
janis.putrams at delfi.lv
Tue Jul 19 19:13:12 CEST 2005
Hi!
When I looked for open source streamin sollutions i was very excited to find
that VLC is not only brilliant player but also that it has streaming
possibilities. So latest 3 days I have tried to setup something that would be
really cool if suceeded.
So the plan is to install one tv card on one of the office linux servers and
use vlc to stream all stations to everybody working in the office. It is
extremelly important that everybody can play it, so I used MediaPlayer format
for streaming.
- I have PixelView PlayTVpro TV tuner card
- drivers are ok so it is accessible via v4l device /dev/video
- i create link page something like:
<a href="mms://1.1.1.1:8080/cnn.asf">CNN</a><br />
<a href="mms://1.1.1.1:8080/eurosport.asf">EuroSport</a><br />
and so on
But I have not suceeded to get that far.
I am running FC3 so I had to build vlc/ffmpeg/lame/libmpeg from source to
include mp3.
Everything compiled ok, but here are the problems I encauntered:
1) when I run command:
vlc test.wmv --sout
'#transcode{vcodec=DIV3,vb=256,scale=1,acodec=mp3,ab=32,channels=2}:std{access=mmsh,mux=asfh,url=:8080/out.asf}'
it works both audio and video
2) when I run command:
vlc v4l:/dev/video:channel=0:frequency=791000:norm=pal:adev=/dev/dsp1 --sout
'#transcode{vcodec=DIV3,vb=256,scale=1,acodec=mp3,ab=32,channels=2}:std{access=mmsh,mux=asfh,url=:8080/out.asf}'
video works, but audio doesnt (/dev/dsp1 is wrong. correct is /dev/dsp)
3) finally when I run command:
vlc -vvv v4l:/dev/video:channel=0:frequency=791000:norm=pal:adev=/dev/dsp
--sout
'#transcode{vcodec=DIV3,vb=256,scale=1,acodec=mp3,ab=32,channels=2}:std{access=mmsh,mux=asfh,url=:8080/out.asf}'
nor audio nor video works. it can't connect.
I suspect that problem is something with audio and traced down to this:
------------
vlc -vvv v4l:/dev/video:channel=0:frequency=791000:norm=pal:adev=/dev/dsp
VLC media player 0.8.2 Janus
[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: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache
file /root/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 182 modules
[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: VLC media player - version 0.8.2 Janus - (c)
1996-2005 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure
--enable-release --disable-mad --enable-alsa --enable-ncurses
--with-ffmpeg-mp3lame --with-ffmpeg-tree=/usr/local/src/ffmpeg/ffmpeg/
--enable-sout --disable-wxwindows --disable-skins2 --enable-v4l
[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
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache
file /root/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 182 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 SSE2
FPU
[00000001] main vlc debug: looking for memcpy module: 3 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000226] main playlist debug: waiting for thread completion
[00000226] main playlist debug: thread 4141448112 (playlist) created at
priority 0 (src/playlist/playlist.c:152)
[00000227] main private debug: waiting for thread completion
[00000227] main private debug: thread 4130958256 (preparser) created at
priority 0 (src/playlist/playlist.c:174)
[00000228] main interface debug: looking for interface module: 1 candidate
[00000019] main module debug: using interface module "hotkeys"
[00000228] main interface debug: interface initialized
[00000228] main interface debug: thread 4120447920 (interface) created at
priority 0 (src/interface/interface.c:211)
[00000226] main playlist debug: adding playlist item
`v4l:/dev/video:channel=0:frequency=791000:norm=pal:adev=/dev/dsp' ( v4l:/dev/video:channel=0:frequency=791000:norm=pal:adev=/dev/dsp )
[00000230] main interface debug: looking for interface module: 2 candidates
Remote control interface initialized, `h' for help
[00000022] main module debug: using interface module "rc"
[00000230] main interface debug: interface initialized
[00000230] main interface debug: thread 4109917104 (manager) created at
priority 0 (src/interface/interface.c:196)
[00000226] main playlist debug: creating new input thread
[00000232] main input debug: waiting for thread completion
[00000232] main input debug:
`v4l:/dev/video:channel=0:frequency=791000:norm=pal:adev=/dev/dsp' gives
access `v4l' demux `' path
`/dev/video:channel=0:frequency=791000:norm=pal:adev=/dev/dsp'
[00000232] main input debug: creating demux: access='v4l' demux=''
path='/dev/video:channel=0:frequency=791000:norm=pal:adev=/dev/dsp'
[00000233] main demuxer debug: looking for access_demux module: 1 candidate
[00000232] main input debug: thread 4099427248 (input) created at priority 0
(src/input/input.c:230)
[00000233] v4l demuxer debug: main device=`/dev/video'
[00000233] v4l demuxer debug: V4L device BT878 video (Prolink PixelView 3
channels 1 audios 48 < w < 924 32 < h< 576
[00000233] v4l demuxer debug: invalid width 0
[00000233] v4l demuxer debug: invalid height 0
[00000233] v4l demuxer debug: setting channel Television(0) 1 tuners flags=0x3
type=0x1 norm=0x0
[00000233] v4l demuxer debug: frequency 791000 (12656)
[00000233] v4l demuxer debug: will use 384x288
[00000233] v4l demuxer debug: v4l device uses brightness: 32768
[00000233] v4l demuxer debug: v4l device uses colour: 32768
[00000233] v4l demuxer debug: v4l device uses hue: 32768
[00000233] v4l demuxer debug: v4l device uses contrast: 32768
[00000233] v4l demuxer debug: v4l device uses frame size: 221184
[00000233] v4l demuxer debug: v4l device uses chroma: I422
[00000233] v4l demuxer debug: openened adev=`/dev/dsp' stereo 44100Hz
[00000233] v4l demuxer debug: v4l grabbing started
[00000233] v4l demuxer debug: added new video es I422 384x288
[00000232] main input debug: selecting program id=0
[00000233] v4l demuxer debug: new audio es 2 channels 44100Hz
[00000150] main module debug: using access_demux module "v4l"
[00000235] main decoder debug: looking for decoder module: 18 candidates
[00000166] main module debug: using decoder module "rawvideo"
[00000235] main decoder debug: thread 4071582640 (decoder) created at priority
0 (src/input/decoder.c:159)
[00000255] main decoder debug: looking for decoder module: 18 candidates
[00000255] araw decoder debug: samplerate:44100Hz channels:2 bits/sample:16
[00000188] main module debug: using decoder module "araw"
[00000255] main decoder debug: thread 4061092784 (decoder) created at priority
0 (src/input/decoder.c:159)
[00000232] main input debug:
`v4l:/dev/video:channel=0:frequency=791000:norm=pal:adev=/dev/dsp'
successfully opened
[00000235] main decoder debug: no usable vout present, spawning one
[00000255] main decoder debug: no aout present, spawning one
[00000258] main audio output debug: looking for audio output module: 4
candidates
[00000258] alsa audio output debug: opening ALSA device `default'
[00000258] main audio output debug: thread 4048550832 (aout) created at
priority 0 (alsa.c:615)
[00000225] main module debug: using audio output module "alsa"
[00000258] main audio output debug: output 'fl32' 44100 Hz Stereo frame=1
samples/8 bytes
[00000258] main audio output debug: mixer 'fl32' 44100 Hz Stereo frame=1
samples/8 bytes
[00000258] main audio output debug: no need for any filter
[00000258] main audio output debug: looking for audio mixer module: 3
candidates
[00000256] main video output debug: looking for video output module: 6
candidates
[00000155] main module debug: using audio mixer module "trivial_mixer"
[00000258] main audio output debug: input 's16l' 44100 Hz Stereo frame=1
samples/4 bytes
[00000258] main audio output debug: filter(s) 's16l'->'fl32' 44100 Hz->44100
Hz Stereo->Stereo
[00000262] main private debug: looking for audio filter module: 20 candidates
[00000042] main module debug: using audio filter module "s16tofloat32"
[00000258] main audio output debug: found a filter for the whole conversion
[00000258] main audio output debug: filter(s) 'fl32'->'fl32' 48510 Hz->44100
Hz Stereo->Stereo
[00000276] main private debug: looking for audio filter module: 20 candidates
[00000051] main module debug: using audio filter module
"bandlimited_resampler"
[00000258] main audio output debug: found a filter for the whole conversion
[00000257] main private debug: Registering subpicture channel, ID: 2
[00000257] main private debug: Registering subpicture channel, ID: 3
[00000257] main private debug: Registering subpicture channel, ID: 4
[00000257] main private debug: Registering subpicture channel, ID: 5
[00000256] xvideo video output warning: no free XVideo port found for format
0x32323449 (I422)
[00000256] xvideo video output debug: adaptor 0, port 86, format 0x32595559
(YUY2) packed
[00000256] xvideo video output debug: Window manager supports NetWM
[00000256] xvideo video output debug: Window manager supports
_NET_WM_STATE_FULLSCREEN
[00000256] xvideo video output debug: Window manager supports
_NET_WM_STATE_ABOVE
[00000256] xvideo video output debug: Window manager supports
_NET_WM_STATE_BELOW
[00000256] xvideo video output debug: Window manager supports
_NET_WM_STATE_STAYS_ON_TOP
[00000035] main module debug: using video output module "xvideo"
[00000256] main video output debug: waiting for thread completion
[00000256] main video output debug: got 8 direct buffer(s)
[00000256] main video output debug: picture in 384x288 (0,0,384x288), chroma
I422, ar 4:3, sar 1:1
[00000256] main video output debug: picture user 384x288 (0,0,384x288), chroma
I422, ar 4:3, sar 1:1
[00000256] main video output debug: picture out 384x288, chroma YUY2, ar 4:3,
sar 1:1
[00000256] main video output debug: looking for chroma module: 9 candidates
[00000007] main module debug: using chroma module "i422_yuy2_mmx"
[00000256] main video output debug: indirect render, mapping render pictures
0-7 to system pictures 8-15
[00000256] main video output debug: thread 4026530736 (video output) created
at priority 0 (src/video_output/video_output.c:466)
[00000258] main audio output debug: audio output is too slow (57218), trashing
21315us
[00000258] main audio output warning: buffer is 102186 in advance, triggering
downsampling
[00000258] main audio output warning: resampling stopped after 1654 usec
(drift: 7537)
[00000258] main audio output warning: buffer is 40005 late, triggering
upsampling
[00000258] main audio output warning: resampling stopped after 814722 usec
(drift: -794)
[00000258] main audio output warning: buffer is 40003 late, triggering
upsampling
[00000258] main audio output warning: output date isn't PTS date, requesting
resampling (40010)
[00000258] main audio output warning: timing screwed, stopping resampling
[00000258] main audio output warning: buffer is 71166 late, triggering
upsampling
*** glibc detected *** malloc(): memory corruption: 0x0a1e27b0 ***
Aborted
this looks like a bug. It would be very great if somebody with knoweledge
could take a look and advise me on how to proceed.
tnx.
Janis
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the vlc
mailing list