| View previous topic :: View next topic |
| Author |
Message |
doublehp Guru


Joined: 11 Apr 2005 Posts: 398 Location: FRANCE
|
Posted: Wed Jun 08, 2005 3:28 pm Post subject: how to set up a sound streaming server ? |
|
|
I have tried last year to set up a video streaming server, could not do it.
today, I would need just an audio streaming server ...to put the microphone on network.
| Code: | root@mercure:~# vlc -vvv v4l:/dev/video:norm=secam:frequency=543250:size=640x480:channel=0:adev=/dev/dsp:audio=0 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,vt=800000,keyint=80,deinterlace}:std{access=http,mux=avi,url=pluton.doublehp.org:8081}' --ttl 12
VLC media player 0.8.1 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/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 160 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.1 Janus - (c) 1996-2004 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu --disable-altivec --enable-utf8 --disable-sout --disable-httpd --disable-vlm --enable-gnutls --enable-v4l --disable-cdda --enable-vcd --enable-dvb --enable-pvr --enable-ogg --enable-mkv --enable-flac --enable-vorbis --enable-theora --enable-x11 --enable-xvideo --enable-glx --enable-opengl --disable-freetype --disable-fribidi --enable-dvdread --enable-dvdplay --enable-dvdnav --enable-fb --enable-svgalib --disable-glide --enable-aa --enable-caca --enable-oss --enable-esd --enable-arts --enable-alsa --disable-wxwindows --enable-ncurses --disable-xosd --enable-lirc --disable-joystick --enable-livedotcom --with-livedotcom-tree=/usr/lib/live --enable-mad --enable-ffmpeg --enable-faad --enable-a52 --enable-dts --enable-libmpeg2 --disable-ggi --disable-glide --enable-sdl --enable-gnutls --disable-pth --disable-portaudio --disable-skins2 --disable-cddax --disable-mozilla
[00000001] main vlc debug: translation test: code is "en_GB"
[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/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 160 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 3DNow! MMXEXT SSE FPU
[00000001] main vlc debug: looking for memcpy module
[00000001] main vlc debug: probing 4 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000207] main playlist debug: creating group Normal with id 1 at position 0
[00000207] main playlist debug: waiting for thread completion
[00000207] main playlist debug: thread 1092185008 (playlist) created at priority 0 (src/playlist/playlist.c:107)
[00000208] main interface debug: looking for interface module
[00000208] main interface debug: probing 1 candidate
[00000114] main module debug: using interface module "hotkeys"
[00000208] main interface debug: interface initialized
[00000208] main interface debug: thread 1100598192 (interface) created at priority 0 (src/interface/interface.c:209)
[00000207] main playlist debug: adding playlist item `v4l:/dev/video:norm=secam:frequency=543250:size=640x480:channel=0:adev=/dev/dsp:audio=0' ( v4l:/dev/video:norm=secam:frequency=543250:size=640x480:channel=0:adev=/dev/dsp:audio=0 )
[00000210] main interface debug: looking for interface module
[00000210] main interface debug: probing 2 candidates
Remote control interface initialised, `h' for help
[00000111] main module debug: using interface module "rc"
[00000210] main interface debug: interface initialized
[00000207] main playlist debug: creating new input thread
[00000212] main input debug: waiting for thread completion
[00000213] main stream output debug: stream=`transcode'
[00000214] main private debug: looking for sout stream module
[00000214] main private debug: probing 0 candidates
[00000214] main private error: no sout stream module matched "transcode"
[00000214] main private debug: destroying chain... (name=transcode)
[00000214] main private debug: destroying chain done
[00000213] main stream output error: stream chained failed for `transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,vt=800000,keyint=80,deinterlace}:std{access=http,mux=avi,url=pluton.doublehp.org:8081}'
[00000212] main input error: cannot start stream output instance, aborting
[00000212] main input debug: thread 1109015472 (input) created at priority 0 (src/input/input.c:228)
[00000210] main interface debug: thread 1117408176 (manager) created at priority 0 (src/interface/interface.c:194)
[00000212] main input debug: thread 1109015472 joined (src/input/input.c:290)
signal 2 received, terminating vlc - do it again in case it gets stuck
[00000001] main vlc debug: removing all interfaces
[00000210] main interface debug: thread 1117408176 joined (src/interface/interface.c:236)
[00000111] main module debug: unlocking module "rc"
[00000208] main interface debug: thread 1100598192 joined (src/interface/interface.c:236)
[00000114] main module debug: unlocking module "hotkeys"
[00000001] main vlc debug: removing all playlists
[00000207] main playlist debug: thread 1092185008 joined (src/playlist/playlist.c:130)
[00000207] main playlist debug: deleting playlist item `v4l:/dev/video:norm=secam:frequency=543250:size=640x480:channel=0:adev=/dev/dsp:audio=0'
[00000001] main vlc debug: removing all video outputs
[00000001] main vlc debug: removing all audio outputs
[00000001] main vlc debug: removing announce handler
[00000010] main module debug: unlocking module "memcpymmxext"
[00000001] main vlc debug: saving plugins cache file /root/.vlc/cache/plugins-04041e.dat
|
| Code: | root@mercure:~# ffserver -f ffserver.conf
ffserver started.
127.0.0.1 - - [Wed Jun 8 16:23:08 2005] "GET /feed1.ffm HTTP/1.0" 200 4165
127.0.0.1 - - [Wed Jun 8 16:23:08 2005] "GET /feed1.ffm HTTP/1.0" 200 4165
127.0.0.1 - - [Wed Jun 8 16:23:12 2005] "POST /feed1.ffm HTTP/1.0" 200 0
127.0.0.1 - - [Wed Jun 8 16:24:08 2005] "GET /feed1.ffm HTTP/1.0" 200 4165
127.0.0.1 - - [Wed Jun 8 16:24:08 2005] "GET /feed1.ffm HTTP/1.0" 200 4165
127.0.0.1 - - [Wed Jun 8 16:24:11 2005] "POST /feed1.ffm HTTP/1.0" 200 0
root@mercure:~# ffmpeg -vcodec msmpeg4 -acodec mp3 -vn http://localhost:8090/feed1.ffm
ffmpeg version 0.4.9-pre1, build 4743, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu --enable-shared-pp --enable-shared --disable-static --enable-mmx --disable-altivec --disable-debug --enable-mp3lame --enable-a52 --disable-a52bin --enable-audio-oss --enable-v4l --disable-dv1394 --disable-dc1394 --enable-pthreads --enable-xvid --enable-ogg --enable-vorbis --enable-dts --enable-network --enable-zlib --enable-ffplay --disable-faad --disable-faac --disable-faadbin --enable-gpl --enable-pp --disable-opts
built on May 15 2005 21:26:47, gcc: 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110-r2, ssp-3.4.3.20050110-0, pie-8.7.7)
Input #0, video4linux, from '':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: rawvideo, yuv420p, 352x240, 15.00 fps
Input #1, audio_device, from '':
Duration: N/A, bitrate: N/A
Stream #1.0: Audio: pcm_s16le, 44100 Hz, mono, 705 kb/s
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
Stream #0.0: Audio: mp2, 44100 Hz, mono, 32 kb/s
Stream #0.1: Video: mpeg1video, 160x128, 3.00 fps, q=3-31, 64 kb/s
Stream #0.2: Audio: mp3, 22050 Hz, mono, 64 kb/s
Stream #0.3: Video: msmpeg4, 352x240, 15.00 fps, q=3-31, 256 kb/s
Stream mapping:
Stream #1.0 -> #0.0
Stream #0.0 -> #0.1
Stream #1.0 -> #0.2
Stream #0.0 -> #0.3
[mpeg1video @ 0x40286cf4]removing common factors from framerate
[mpeg1video @ 0x40286cf4]MPEG1/2 doesnt support 3/1 fps
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
|
so: using examples from intenet: noway to get it work ...
any one can tell me how to set up a server ? video, or just audio ?
and any one can explain this: ?
| Code: | root@mercure:~# ffmpeg -vn -acodec mp3 -vn http://localhost:8090/feed1.ffm
ffmpeg version 0.4.9-pre1, build 4743, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu --enable-shared-pp --enable-shared --disable-static --enable-mmx --disable-altivec --disable-debug --enable-mp3lame --enable-a52 --disable-a52bin --enable-audio-oss --enable-v4l --disable-dv1394 --disable-dc1394 --enable-pthreads --enable-xvid --enable-ogg --enable-vorbis --enable-dts --enable-network --enable-zlib --enable-ffplay --disable-faad --disable-faac --disable-faadbin --enable-gpl --enable-pp --disable-opts
built on May 15 2005 21:26:47, gcc: 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110-r2, ssp-3.4.3.20050110-0, pie-8.7.7)
Input #0, video4linux, from '':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: rawvideo, yuv420p, 352x240, 15.00 fps
Input #1, audio_device, from '':
Duration: N/A, bitrate: N/A
Stream #1.0: Audio: pcm_s16le, 44100 Hz, mono, 705 kb/s
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
Stream #0.0: Audio: mp2, 44100 Hz, mono, 32 kb/s
Stream #0.1: Video: mpeg1video, 160x128, 3.00 fps, q=3-31, 64 kb/s
Stream #0.2: Audio: mp3, 22050 Hz, mono, 64 kb/s
Stream #0.3: Video: msmpeg4, 352x240, 15.00 fps, q=3-31, 256 kb/s
Stream mapping:
Stream #1.0 -> #0.0
Stream #0.0 -> #0.1
Stream #1.0 -> #0.2
Stream #0.0 -> #0.3
[mpeg1video @ 0x40286cf4]removing common factors from framerate
[mpeg1video @ 0x40286cf4]MPEG1/2 doesnt support 3/1 fps
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
|
why does it still create video stream ???? _________________ DEMAINE Benoît-Pierre (aka DoubleHP ) http://www.demaine.info/
>o_/ Coin coin coin \_o<
to contact me (MSN,ICQ, JABBER, Skype ... ) http://benoit.demaine.info/contact.png |
|
| Back to top |
|
 |
m4mush n00b

Joined: 02 May 2005 Posts: 4 Location: quebec
|
Posted: Wed Jun 08, 2005 4:40 pm Post subject: |
|
|
I suggest you use any sort of shoutcast (like icecast) server for streaming audio. It requires a stream to be sent to it. You can use xmms to do this. And considering you need line-in capacity, there is another xmms-plugin which will do this. I cannot give you extra details since I havent done it on gentoo yet but give it a try
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|