All below are quick hacks and am sure there is unnecessary code/rubbish
there.  With these files and the Xplay plugin the 3 stream played OK on
LMS for 10 secs - they may break down on longer playing.

For command line/batch file use cvlc and not vlc - this avoids some
console/video  actions.

For windows you could try to use cvlc direect instead of an intermediate
shell script/batch file xplay.sh . VLC doesn't like to die so the
xplay.sh was necessary in linux to kill it once LMS has stopped the
stream.  Also for Windows you'll probably be using "dst=#PIPE#" 

The command line below will transcode the audio stream into flac - it
does not resample or change other aspects of the audio even though the
params seems to indicate it will.



Code:
--------------------
    
  # Xplay - unix version
  #
  #
  xplay flc * *
        # F:{PATH=%f}R:{PATH=%F}
        [xplay.sh] $PATH$ -I dummy -q --no-sout-video --sout 
'#transcode{acodec=flac,channels=2,ab=128,samplerate=44100}:standard{access=file,mux=dummy,dst=-}}'
 vlc://quit -
  
  
--------------------

For Linxu the xplay.sh looks like

Code:
--------------------
    
  #!/bin/sh
  scriptpid=$$
  apppid=/tmp/.playxplay-app.$$.pid
  app=cvlc
  
  if [ -e "${11}" ] ; then
  echo Local File: Launching $app "$@" >&2
  "$app" "$@" 
  exit
  fi
  
  echo Streaming: Launching $app "$@" >&2
  (
  "$app" "$@"  &
  
  echo $! > $apppid
  wait
  rm -f $apppid
  kill $scriptpid 2> /dev/null
  ) < /dev/null &
  
  cat > /dev/null
  if [ -s $apppid ] ; then
  kill `cat $apppid` 2> /dev/null
  fi
  
--------------------


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97542

_______________________________________________
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to