Guest User

Untitled

a guest
Oct 20th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. # Stream data from mplayer
  2. # @category Source / Input
  3. # @param s data URI.
  4. # @param ~restart restart on exit.
  5. # @param ~restart_on_error restart on exit with error.
  6. # @param ~buffer Duration of the pre-buffered data.
  7. # @param ~max Maximum duration of the buffered data.
  8. def input.ogg123(~id="input.ogg123",~channels=2,~samplerate=48000,
  9. ~restart=true,~restart_on_error=true,
  10. ~buffer=0.2,~max=10.,s) =
  11. input.external(id=id,restart=restart,
  12. restart_on_error=restart_on_error,
  13. buffer=buffer,max=max,
  14. "ogg123 -q -d raw -f/dev/stdout -@/home/ncd209/Downloads/bla.m3u 2>/dev/null ")
  15. end
  16. set("log.file.path","/home/ncd209/main.log")
  17.  
  18. s=input.ogg123("sf");
  19. #s=playlist(/home/ncd209/download/bla.m3u");
  20. s=mksafe(s)
Add Comment
Please, Sign In to add comment