jamesmccosh wrote: 
>  could point me at the information for the technique of streaming from
> VLC to LMS, and/or how to use the repositories in LMS Plugins.

OK a solution for using VLC instead of ffmpeg using the PlayHLS plugin
which is less dangerous than the other plugin I have.

1. change custom-convert.conf file 

Code:
--------------------
    
  # PlayHLS rules to start VLC application for Linux
  
  hls flc * *
        # RB:{BITRATE=-B %B}T:{START=-ss %s}
        [playhls.sh] $FILE$ -I dummy -q --no-sout-video --sout 
'#transcode{acodec=flac,channels=2,ab=128,samplerate=44100}:standard{access=file,mux=dummy,dst=-}}'
 vlc://quit -
  
--------------------


2. The playhls.sh file in the plugin Bin direcotry shoul;d be executable
and have the following

Code:
--------------------
    
  #!/bin/sh
  scriptpid=$$
  apppid=/tmp/.playvlc-app.$$.pid
  app=cvlc
  
  echo Streaming: Launching $app "$@" >&2
  (
        sleep 0.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
  
--------------------


The value for sleep in the playhls.sh file will depend on the speed of
the processor and number of cores as timing delays between vlc and lms
getting their pipes connected can cause this to fail.


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

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to