Code: Select all
./vlc -vvv --color /path/to/file.ogg --sout '#transcore{ab=24,samplerate=11025}:standard{access=shout{mp3},mux=raw,dst=source:pass@your.server.com:8000/mountpoint}' --loop
I promed , thanks for your answer , can you say to me the version of vlc that are you using , 0.90 or 0.8.6.xx and if it's a tarball source ecc , and can you wite your compile option and your source?Try to use a command like this:
The --loop part is optional. It will keep repeating the file.Code: Select all
./vlc -vvv --color /path/to/file.ogg --sout '#transcore{ab=24,samplerate=11025}:standard{access=shout{mp3},mux=raw,dst=source:pass@your.server.com:8000/mountpoint}' --loop
This command worked for me.
You must have VLC recompiled with the libshout module!
Smits
Code: Select all
sudo apt-get install libshout-dev
Code: Select all
sudo apt-get build-dep vlc
Code: Select all
./configure --prefix=/opt/vlc-0.8.6x/ --exec-prefix=/opt/vlc-0.8.6x/ --enable-theora --enable-shout --enable-v4l --enable-dvb
Code: Select all
make
make install
Code: Select all
cd /opt/vlc-0.8.6x/bin
./vlc -l | grep shout
Code: Select all
VLC media player 0.8.6a Janus
access_output_shout IceCAST output
playlist New winamp 5.2 shoutcast import
shout Shoutcast radio lijsten
shout Shoutcast TV listings
I'm using 0.8.6x (should work for all 0.8.6 versions...)
First enable the universe repository's!
You will need to install libshout:Download the tarball package form http://download.videolan.org/pub/videol ... .6x.tar.gzCode: Select all
sudo apt-get install libshout-dev
After extracting download the build dep:Then configure the installation from the vlc tarball directory:Code: Select all
sudo apt-get build-dep vlc
You can add some extra options here...Code: Select all
./configure --prefix=/opt/vlc-0.8.6x/ --exec-prefix=/opt/vlc-0.8.6x/ --enable-theora --enable-shout --enable-v4l --enable-dvb
Finally compile...Do a final check:Code: Select all
make make install
Output should be something like:Code: Select all
cd /opt/vlc-0.8.6x/bin ./vlc -l | grep shout
Will this do the trick for you?Code: Select all
VLC media player 0.8.6a Janus access_output_shout IceCAST output playlist New winamp 5.2 shoutcast import shout Shoutcast radio lijsten shout Shoutcast TV listings
By the way, i'm on Ubuntu.
So this should atleast work for Debian, Xubuntu, Kubuntu, Edubuntu and Ubuntu.
Code: Select all
daslicht@Debian-70-wheezy-64-minimal:/home/ls$ vlc -vvv playlist.cue --sout=#std{access=shout,mux=mp3,url=supersecret:supersecret@localhost:8000/stream.mp3
VLC media player 2.1.2 Rincewind (revision 2.1.2-0-ga4c4876)
[0x1b8c118] main libvlc debug: VLC media player - 2.1.2 Rincewind
[0x1b8c118] main libvlc debug: Copyright © 1996-2013 the VideoLAN team
[0x1b8c118] main libvlc debug: revision 2.1.2-0-ga4c4876
[0x1b8c118] main libvlc debug: configured with ./configure '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--localstatedir=/var' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-dependency-tracking' '--build=x86_64-linux-gnu' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--libdir=/usr/lib' '--sysconfdir=/etc' '--with-binary-version=2~bpo70+2' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-chromaprint' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libfreerdp' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-oss' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shout' '--enable-skins2' '--enable-smbclient' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-decklink' '--disable-dxva2' '--disable-fdkaac' '--disable-gnomevfs' '--disable-goom' '--disable-libvnc' '--disable-opencv' '--disable-projectm' '--disable-quicksync' '--disable-sndio' '--disable-telx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv1394' '--enable-linsys' '--enable-omxil' '--enable-udev' '--enable-libva' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu'
le-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--libdir=/usr/lib' '--sysconfdir=/etc' '--with-binary-version=2~bpo70+2' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-chromaprint' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libfreerdp' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-oss' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shout' '--enable-skins2' '--enable-smbclient' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-decklink' '--disable-dxva2' '--disable-fdkaac' '--disable-gnomevfs' '--disable-goom' '--disable-libvnc' '--disable-opencv' '--disable-projectm' '--disable-quicksync' '--disable-sndio' '--disable-telx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv1394' '--enable-linsys' '--enable-omxil' '--enable-udev' '--enable-libva' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu'
enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libfreerdp' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-oss' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shout' '--enable-skins2' '--enable-smbclient' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-decklink' '--disable-dxva2' '--disable-fdkaac' '--disable-gnomevfs' '--disable-goom' '--disable-libvnc' '--disable-opencv' '--disable-projectm' '--disable-quicksync' '--disable-sndio' '--disable-telx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv1394' '--enable-linsys' '--enable-omxil' '--enable-udev' '--enable-libva' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu'
nable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shout' '--enable-skins2' '--enable-smbclient' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-decklink' '--disable-dxva2' '--disable-fdkaac' '--disable-gnomevfs' '--disable-goom' '--disable-libvnc' '--disable-opencv' '--disable-projectm' '--disable-quicksync' '--disable-sndio' '--disable-telx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv1394' '--enable-linsys' '--enable-omxil' '--enable-udev' '--enable-libva' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu'
ble-fdkaac' '--disable-gnomevfs' '--disable-goom' '--disable-libvnc' '--disable-opencv' '--disable-projectm' '--disable-quicksync' '--disable-sndio' '--disable-telx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv1394' '--enable-linsys' '--enable-omxil' '--enable-udev' '--enable-libva' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu'
ltivec' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu'
[0x1b8c118] main libvlc debug: searching plug-in modules
[0x1b8c118] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x1b8c118] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x1b8c118] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0x1b8c118] main libvlc debug: plug-ins loaded: 426 modules
[0x1b8c118] main libvlc debug: opening config file (/home/daslicht/.config/vlc/vlcrc)
[0x1b8c118] main libvlc debug: translation test: code is "C"
[0x1b8c118] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 FPU
[0x1ba0408] main input debug: Creating an input for 'Media Library'
[0x1ba0408] main input debug: Input is a meta file: disabling unneeded options
[0x1ba0408] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x1ba0408] main input debug: `file/xspf-open:///home/daslicht/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/daslicht/.local/share/vlc/ml.xspf'
[0x1ba0408] main input debug: creating demux: access='file' demux='xspf-open' location='/home/daslicht/.local/share/vlc/ml.xspf' file='/home/daslicht/.local/share/vlc/ml.xspf'
[0x1ba5ab8] main demux debug: looking for access_demux module matching "file": 20 candidates
[0x1ba5ab8] main demux debug: no access_demux modules matched
[0x1ba0408] main input debug: creating access 'file' location='/home/daslicht/.local/share/vlc/ml.xspf', path='/home/daslicht/.local/share/vlc/ml.xspf'
[0x1ba8048] main access debug: looking for access module matching "file": 25 candidates
[0x1ba8048] filesystem access debug: opening file `/home/daslicht/.local/share/vlc/ml.xspf'
[0x1ba8048] main access debug: using access module "filesystem"
[0x1ba8df8] main stream debug: Using stream method for AStream*
[0x1ba8df8] main stream debug: starting pre-buffering
[0x1ba8df8] main stream debug: received first data after 0 ms
[0x1ba8df8] main stream debug: pre-buffering done 296 bytes in 0s - 6423 KiB/s
[0x1ba9cb8] main stream debug: looking for stream_filter module matching "any": 9 candidates
[0x1ba9cb8] main stream debug: no stream_filter modules matched
[0x1ba9cb8] main stream debug: looking for stream_filter module matching "record": 9 candidates
[0x1ba9cb8] main stream debug: using stream_filter module "record"
[0x1ba0408] main input debug: creating demux: access='file' demux='xspf-open' location='/home/daslicht/.local/share/vlc/ml.xspf' file='/home/daslicht/.local/share/vlc/ml.xspf'
[0x1c54a48] main demux debug: looking for demux module matching "xspf-open": 63 candidates
[0x1c54a48] playlist demux debug: using XSPF playlist reader
[0x1c54a48] main demux debug: using demux module "playlist"
[0x1c54cb8] main demux meta debug: looking for meta reader module matching "any": 2 candidates
[0x1c54cb8] lua demux meta debug: Trying Lua scripts in /home/daslicht/.local/share/vlc/lua/meta/reader
[0x1c54cb8] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x1c54cb8] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x1c54cb8] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x1c54cb8] main demux meta debug: no meta reader modules matched
[0x1ba0408] main input debug: `file/xspf-open:///home/daslicht/.local/share/vlc/ml.xspf' successfully opened
[0x1c648d8] main xml reader debug: looking for xml reader module matching "any": 1 candidates
[0x1c648d8] main xml reader debug: using xml reader module "xml"
[0x1c54a48] playlist demux debug: parsed 0 tracks successfully
[0x1ba0408] main input debug: EOF reached
[0x1c54a48] main demux debug: removing module "playlist"
[0x1ba9cb8] main stream debug: removing module "record"
[0x1ba8048] main access debug: removing module "filesystem"
[0x1d81978] main playlist debug: creating audio output
[0x1c61eb8] main audio output debug: looking for audio output module matching "any": 6 candidates
[0x1c61eb8] pulse audio output debug: using library version 2.0.0
[0x1c61eb8] pulse audio output debug: (compiled with version 2.0.0, protocol 26)
[0x1c61eb8] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x1c61eb8] alsa audio output debug: Available ALSA PCM devices:
[0x1c61eb8] alsa audio output debug: Discard all samples (playback) or generate zero samples (capture) (null)
[0x1c61eb8] main audio output debug: using audio output module "alsa"
[0x1d81978] main playlist debug: keeping audio output
[0x1d81978] main playlist debug: adding item `playlist.cue' ( file:///home/ls/playlist.cue )
[0x1bbd2a8] main interface debug: looking for interface module matching "hotkeys,none": 19 candidates
[0x1bbd2a8] main interface debug: using interface module "hotkeys"
[0x1bb7e78] main interface debug: looking for interface module matching "globalhotkeys,none": 19 candidates
[0x1bb7e78] main interface debug: no interface modules matched
[0x1bb7e78] main interface error: no suitable interface module
[0x1b8c118] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x1bb7e78] main interface debug: looking for interface module matching "dbus,none": 19 candidates
[0x1bb7e78] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x1bb7e78] main interface debug: no interface modules matched
[0x1bb7e78] main interface error: no suitable interface module
[0x1b8c118] main libvlc error: interface "dbus,none" initialization failed
[0x1b8c118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x1bb7e78] main interface debug: looking for interface module matching "any": 19 candidates
[0x1bb7e78] qt4 interface error: Could not connect to X server
[0x1bc7ea8] main input debug: Creating an input for 'playlist.cue'
[0x1bb7e78] skins2 interface debug: Cannot open X display
[0x1bb7e78] skins2 interface error: cannot initialize OSFactory
[0x1bb7e78] [cli] lua interface debug: Found lua interface script: /usr/lib/vlc/lua/intf/cli.luac
[0x1bb7e78] [cli] main interface debug: using interface module "lua"
[0x1d81978] main playlist debug: processing request item: null, node: Playlist, skip: 0
[0x1d81978] main playlist debug: rebuilding array of current - root Playlist
[0x1d81978] main playlist debug: rebuild done - 1 items, index -1
[0x1d81978] main playlist debug: starting playback of the new playlist item
[0x1d81978] main playlist debug: resyncing on playlist.cue
[0x1d81978] main playlist debug: playlist.cue is at 0
[0x1d81978] main playlist debug: creating new input thread
[0x1bf1fa8] main input debug: Creating an input for 'playlist.cue'
[0x1bb7e78] [cli] lua interface: Listening on host "*console".
VLC media player 2.1.2 Rincewind
Command Line Interface initialized. Type `help' for help.
> [0x1c1f388] main stream output debug: using sout chain=`std{access=shout,mux=mp3,url=supersecret:supersecret@localhost:8000/stream.mp3'
[0x1c1f388] main stream output debug: stream=`std'
[0x1c1f7d8] main stream out debug: looking for sout stream module matching "std": 21 candidates
[0x1c1f7d8] main stream out debug: set config option: sout-standard-access to shout
[0x1c1f7d8] main stream out debug: set config option: sout-standard-mux to mp3
[0x1c1f7d8] main stream out debug: set config option: sout-standard-url to supersecret:supersecret@localhost:8000/stream.mp3
[0x1c20708] main access out debug: looking for sout access module matching "shout": 8 candidates
[0x1c20708] access_output_shout access out error: failed to initialize shout streaming to :8000/(null)
[0x1c20708] main access out debug: no sout access modules matched
[0x1c1f7d8] stream_out_standard stream out error: no suitable sout access module for `shout/mp3://(null)'
[0x1c1f7d8] main stream out debug: no sout stream modules matched
[0x1c1f7d8] main stream out debug: destroying chain... (name=(null))
[0x1c1f7d8] main stream out debug: destroying chain done
[0x1c1f388] main stream output error: stream chain failed for `std{access=shout,mux=mp3,url=supersecret:supersecret@localhost:8000/stream.mp3'
[0x1bf1fa8] main input error: cannot start stream output instance, aborting
[0x1d81978] main playlist debug: dead input
[0x1d81978] main playlist debug: changing item without a request (current 0/1)
[0x1d81978] main playlist debug: nothing to play
[0x1d81978] main playlist debug: no fetch required for (null) (art currently (null))
Code: Select all
apt-get install vlc
Code: Select all
Code: Select all
vlc -vvv file:///home/playlist.cue --sout-shout-mp3 --sout="#std{access=shout,mux=mp3,dst=hackme:hackme@localhost:8000/stream.mp3}"
Code: Select all
vlc -vvv file:///home/playlist.cue --sout="#transcode{acodec=vorbis ,ab=96,channels=2}:duplicate{dst=std{access=shout,mux=ogg,dst=hackme:hackme@localhost:8000/stream.ogg}}"
Return to “VLC stream-output (sout)”
Users browsing this forum: No registered users and 12 guests