Guest User

Untitled

a guest
Nov 18th, 2017
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.29 KB | None | 0 0
  1. # =========================================
  2. # SCRIPT CONSTANTS
  3. # =========================================
  4. # Load in the env variables including ICE_HOST, ICE_PASS, home dir, etc
  5. %include ".env"
  6.  
  7. # =========================================
  8. # RUNTIME SETTINGS
  9. # http://savonet.sourceforge.net/doc-svn/in_production.html
  10. # =========================================
  11. # Harbor settings
  12. set("harbor.verbose",true) # make sure Harbor shows EVERYTHING
  13. set("harbor.bind_addr", HARBOR_IP) # bind Harbor to nominated IP
  14. set("harbor.reverse_dns",false) # tweak to improve network slightly
  15.  
  16. # Setup logging - default is /var/log/liquidsoap/<script.log>
  17. set("log.file.path","/var/log/liquidsoap/<script>.log")
  18. set("log.file",true)
  19. set("log.file.append",true) # don't just overwrite
  20. set("log.level",LOG_LEVEL)
  21. set("log.stdout",true) # show in console, too
  22. set("log.unix_timestamps",false) # show UNIX timestamps instead
  23. set("init.daemon.pidfile.path","/var/run/liquidsoap")
  24.  
  25. # Setup decoder order
  26. set("decoder.file_decoders",["MP3","OGG","AAC","MP4","META","WAV","MIDI","FLAC"]) # set order according to likelihood
  27. set("decoder.stream_decoders",["MP3","OGG","AAC","WAV","PCM/BASIC","FLAC"])
  28. # set order according to likelihood
  29.  
  30. # =========================================
  31. # OUTPUT APPLICATIONS
  32. # =========================================
  33. # Build the output control
  34. out = output.icecast(%mp3.vbr(samplerate=44100,quality=6),
  35. host=ICE_HOST,
  36. port=ICE_PORT,
  37. password=ICE_PASS,
  38. fallible=true,
  39. icy_metadata="true")
  40.  
  41. # =========================================
  42. # INCLUDES
  43. # =========================================
  44. # Load all the custom mount point includes - these need to be loaded last
  45. %include "macmount.inc"
  46. %include "mounts.inc"
  47.  
  48. # Liquidsoap home directory
  49. # lshomedir = "/home/liquidsoap/liquidsoap"
  50.  
  51. # Icecast host settings
  52. ICE_HOST = "###############" # Icecast host DNS
  53. #ICE_USER = "source" # icecast default user is always "source" anyway
  54. ICE_PASS = "#########" # default Icecast password
  55. ICE_PORT = 7034 # Icecast listen port (not the streaming port)
  56.  
  57. # Basic script settings
  58. LOG_LEVEL = 5 # 4 = debug-level logs; 5 = extra
  59.  
  60. # Harbor config
  61. HARBOR_IP = "0.0.0.0" # Harbor to listen on all IPs
  62.  
  63. def macmount(num,mntname)
  64. rport = num * 2
  65. mport = rport + 7500
  66. vport = rport + 7800
  67. vname=mntname ^ "voice"
  68. harbom = audio_to_stereo(input.harbor(mntname, icy=true, port=mport, password=ICE_PASS, max=20.))
  69. harbov = strip_blank(max_blank=5., mksafe(audio_to_stereo(input.harbor(vname, icy=true, port=vport, password=ICE_PASS, max=20.))))
  70. output=out(mount=vname,harbov)
  71. radio = fallback(track_sensitive=false, [harbov, harbom, single("media/silence.m4a")])
  72. output=out(mount=mntname,radio)
  73. end
  74.  
  75. macmount(1,"2IdxhCR0SLF8ks")
  76. macmount(2,"osmQm9AHTPxHbs")
  77. # further 98 rows following the same pattern
  78.  
  79. 2017/11/17 10:28:33 [source:4] Source fallback_7507 gets up.
  80. 2017/11/17 10:28:33 [strip_blank_7504:4] Activations changed: static=[apr5eXRHAnjs49voice:apr5eXRHAnjs49voice, strip_blank_7504], dynamic=[fallback_7507:apr5eXRHAnjs49:apr5eXRHAnjs49].
  81. 2017/11/17 10:28:33 [source:4] Source audio_to_stereo_7499 gets up.
  82. 2017/11/17 10:28:33 [audio_to_stereo_7499:4] Content kind is {audio=2;video=0;midi=0}.
  83. 2017/11/17 10:28:33 [source:4] Source input.harbor_7498 gets up.
  84. 2017/11/17 10:28:33 [input.harbor_7498:4] Content kind is {audio=1+;video=0;midi=0}.
  85. 2017/11/17 10:28:33 [harbor:4] Opening port 7536 with icy = false
  86. 2017/11/17 10:28:33 [harbor:4] Opening port 7537 with icy = true
  87. 2017/11/17 10:28:33 [harbor:3] Adding mountpoint '/apr5eXRHAnjs49' on port 7536
  88. 2017/11/17 10:28:33 [input(dot)harbor_7498:4] Activations changed: static=[audio_to_stereo_7499:fallback_7507:apr5eXRHAnjs49:apr5eXRHAnjs49], dynamic=[].
  89. 2017/11/17 10:28:33 [audio_to_stereo_7499:4] Activations changed: static=[], dynamic=[fallback_7507:apr5eXRHAnjs49:apr5eXRHAnjs49].
  90. 2017/11/17 10:28:33 [source:4] Source single_7506 gets up.
  91. 2017/11/17 10:28:33 [single_7506:3] "media/silence.m4a" is static, resolving once for all...
  92. 2017/11/17 10:28:33 [single_7506:4] Content kind is {audio=2;video=0;midi=0}.
  93. 2017/11/17 10:28:33 [single_7506:4] Activations changed: static=[], dynamic=[fallback_7507:apr5eXRHAnjs49:apr5eXRHAnjs49].
  94. 2017/11/17 10:28:33 [fallback_7507:4] Activations changed: static=[apr5eXRHAnjs49:apr5eXRHAnjs49], dynamic=[].
  95. 2017/11/17 10:28:33 [apr5eXRHAnjs49:4] Activations changed: static=[apr5eXRHAnjs49], dynamic=[].
  96. 2017/11/17 10:28:33 [apr5eXRHAnjs49:4] Enabling caching mode: active source.
  97. 2017/11/17 10:28:33 [source:4] Source strip_blank_7493 gets up.
  98. 2017/11/17 10:28:33 [strip_blank_7493:4] Content kind is {audio=2;video=0;midi=0}.
  99. 2017/11/17 10:28:33 [source:4] Source mksafe gets up.
  100. 2017/11/17 10:28:33 [source:4] Source audio_to_stereo_7490 gets up.
  101. 2017/11/17 10:28:33 [audio_to_stereo_7490:4] Content kind is {audio=2;video=0;midi=0}.
  102. 2017/11/17 10:28:33 [source:4] Source input.harbor_7489 gets up.
  103. 2017/11/17 10:28:33 [input.harbor_7489:4] Content kind is {audio=1+;video=0;midi=0}.
  104. 2017/11/17 10:28:33 [harbor:4] Opening port 7834 with icy = false
  105. 2017/11/17 10:28:33 [harbor:4] Opening port 7835 with icy = true
  106. 2017/11/17 10:28:33 [harbor:3] Adding mountpoint '/nxYjWRxEteOgunvoice' on port 7834
  107. 2017/11/17 10:28:33 [input(dot)harbor_7489:4] Activations changed: static=[audio_to_stereo_7490:mksafe:strip_blank_7493:strip_blank_7493], dynamic=[].
  108. 2017/11/17 10:28:33 [audio_to_stereo_7490:4] Activations changed: static=[], dynamic=[mksafe:strip_blank_7493:strip_blank_7493].
  109. 2017/11/17 10:28:33 [source:4] Source safe_blank gets up.
  110. 2017/11/17 10:28:33 [safe_blank:4] Content kind is {audio=2;video=0;midi=0}.
  111. 2017/11/17 10:28:33 [safe_blank:4] Activations changed: static=[], dynamic=[mksafe:strip_blank_7493:strip_blank_7493].
  112. 2017/11/17 10:28:33 [mksafe:4] Activations changed: static=[strip_blank_7493:strip_blank_7493], dynamic=[].
  113. 2017/11/17 10:28:33 [strip_blank_7493:4] Activations changed: static=[strip_blank_7493], dynamic=[].
  114. 2017/11/17 10:28:33 [strip_blank_7493:4] Enabling caching mode: active source.
  115. 2017/11/17 10:28:33 [source:4] Source output.icecast_7494 gets up.
  116. 2017/11/17 10:28:33 [strip_blank_7493:4] Activations changed: static=[nxYjWRxEteOgunvoice:nxYjWRxEteOgunvoice, strip_blank_7493], dynamic=[].
  117. 2017/11/17 10:28:33 [nxYjWRxEteOgunvoice:4] Activations changed: static=[nxYjWRxEteOgunvoice], dynamic=[].
  118. 2017/11/17 10:28:33 [nxYjWRxEteOgunvoice:4] Enabling caching mode: active source.
  119. 2017/11/17 10:28:33 [source:4] Source output.icecast_7497 gets up.
  120. 2017/11/17 10:28:33 [source:4] Source fallback_7496 gets up.
  121. 2017/11/17 10:28:33 [strip_blank_7493:4] Activations changed: static=[nxYjWRxEteOgunvoice:nxYjWRxEteOgunvoice, strip_blank_7493], dynamic=[fallback_7496:nxYjWRxEteOgun:nxYjWRxEteOgun].
  122. 2017/11/17 10:28:33 [source:4] Source audio_to_stereo_7488 gets up.
  123. 2017/11/17 10:28:33 [audio_to_stereo_7488:4] Content kind is {audio=2;video=0;midi=0}.
  124. 2017/11/17 10:28:33 [source:4] Source input.harbor_7487 gets up.
  125. 2017/11/17 10:28:33 [input.harbor_7487:4] Content kind is {audio=1+;video=0;midi=0}.
  126. 2017/11/17 10:28:33 [harbor:4] Opening port 7534 with icy = false
  127. 2017/11/17 10:28:33 [harbor:4] Opening port 7535 with icy = true
  128. 2017/11/17 10:28:33 [harbor:3] Adding mountpoint '/nxYjWRxEteOgun' on port 7534
  129. 2017/11/17 10:28:33 [input(dot)harbor_7487:4] Activations changed: static=[audio_to_stereo_7488:fallback_7496:nxYjWRxEteOgun:nxYjWRxEteOgun], dynamic=[].
  130. 2017/11/17 10:28:33 [audio_to_stereo_7488:4] Activations changed: static=[], dynamic=[fallback_7496:nxYjWRxEteOgun:nxYjWRxEteOgun].
  131. 2017/11/17 10:28:33 [source:4] Source single_7495 gets up.
  132. 2017/11/17 10:28:33 [single_7495:3] "media/silence.m4a" is static, resolving once for all...
  133. 2017/11/17 10:28:33 [single_7495:4] Content kind is {audio=2;video=0;midi=0}.
  134. 2017/11/17 10:28:33 [single_7495:4] Activations changed: static=[], dynamic=[fallback_7496:nxYjWRxEteOgun:nxYjWRxEteOgun].
  135. 2017/11/17 10:28:33 [fallback_7496:4] Activations changed: static=[nxYjWRxEteOgun:nxYjWRxEteOgun], dynamic=[].
  136. 2017/11/17 10:28:33 [nxYjWRxEteOgun:4] Activations changed: static=[nxYjWRxEteOgun], dynamic=[].
  137. 2017/11/17 10:28:33 [nxYjWRxEteOgun:4] Enabling caching mode: active source.
  138. 2017/11/17 10:28:33 [source:4] Source strip_blank_7482 gets up.
  139. 2017/11/17 10:28:33 [strip_blank_7482:4] Content kind is {audio=2;video=0;midi=0}.
  140. 2017/11/17 10:28:33 [source:4] Source mksafe gets up.
  141. 2017/11/17 10:28:33 [source:4] Source audio_to_stereo_7479 gets up.
  142. 2017/11/17 10:28:33 [audio_to_stereo_7479:4] Content kind is {audio=2;video=0;midi=0}.
  143. 2017/11/17 10:28:33 [source:4] Source input.harbor_7478 gets up.
  144. 2017/11/17 10:28:33 [input.harbor_7478:4] Content kind is {audio=1+;video=0;midi=0}.
  145. 2017/11/17 10:28:33 [harbor:4] Opening port 7832 with icy = false
  146. 2017/11/17 10:28:33 [harbor:4] Opening port 7833 with icy = true
  147. 2017/11/17 10:28:33 [harbor:3] Adding mountpoint '/vqyXzbCzVjHLrcvoice' on port 7832
  148. 2017/11/17 10:28:33 [input(dot)harbor_7478:4] Activations changed: static=[audio_to_stereo_7479:mksafe:strip_blank_7482:strip_blank_7482], dynamic=[].
  149. 2017/11/17 10:28:33 [audio_to_stereo_7479:4] Activations changed: static=[], dynamic=[mksafe:strip_blank_7482:strip_blank_7482].
  150. 2017/11/17 10:28:33 [source:4] Source safe_blank gets up.
  151. 2017/11/17 10:28:33 [safe_blank:4] Content kind is {audio=2;video=0;midi=0}.
  152. 2017/11/17 10:28:33 [safe_blank:4] Activations changed: static=[], dynamic=[mksafe:strip_blank_7482:strip_blank_7482].
  153. 2017/11/17 10:28:33 [mksafe:4] Activations changed: static=[strip_blank_7482:strip_blank_7482], dynamic=[].
  154. 2017/11/17 10:28:33 [strip_blank_7482:4] Activations changed: static=[strip_blank_7482], dynamic=[].
  155. 2017/11/17 10:28:33 [strip_blank_7482:4] Enabling caching mode: active source.
  156. 2017/11/17 10:28:33 [source:4] Source output.icecast_7483 gets up.
  157. 2017/11/17 10:28:33 [strip_blank_7482:4] Activations changed: static=[vqyXzbCzVjHLrcvoice:vqyXzbCzVjHLrcvoice, strip_blank_7482], dynamic=[].
  158. 2017/11/17 10:28:33 [vqyXzbCzVjHLrcvoice:4] Activations changed: static=[vqyXzbCzVjHLrcvoice], dynamic=[].
  159. 2017/11/17 10:28:33 [vqyXzbCzVjHLrcvoice:4] Enabling caching mode: active source.
  160. 2017/11/17 10:28:33 [source:4] Source output.icecast_7486 gets up.
  161. 2017/11/17 10:28:33 [source:4] Source fallback_7485 gets up.
  162. 2017/11/17 10:28:33 [strip_blank_7482:4] Activations changed: static=[vqyXzbCzVjHLrcvoice:vqyXzbCzVjHLrcvoice, strip_blank_7482], dynamic=[fallback_7485:vqyXzbCzVjHLrc:vqyXzbCzVjHLrc].
  163. 2017/11/17 10:28:33 [source:4] Source audio_to_stereo_7477 gets up.
  164. 2017/11/17 10:28:33 [audio_to_stereo_7477:4] Content kind is {audio=2;video=0;midi=0}.
  165. 2017/11/17 10:28:33 [source:4] Source input.harbor_7476 gets up.
  166. 2017/11/17 10:28:33 [input.harbor_7476:4] Content kind is {audio=1+;video=0;midi=0}.
  167. 2017/11/17 10:28:33 [harbor:4] Opening port 7532 with icy = false
  168. 2017/11/17 10:28:33 [harbor:4] Opening port 7533 with icy = true
  169. 2017/11/17 10:28:33 [harbor:3] Adding mountpoint '/vqyXzbCzVjHLrc' on port 7532
  170. 2017/11/17 10:28:33 [threads:2] Queue generic queue #1 crashed with exception Invalid argument in select()
  171. Raised by primitive operation at file "duppy.ml", line 181, characters 20-51
  172. Re-raised at file "duppy.ml", line 199, characters 11-18
  173. Called from file "duppy.ml", line 201, characters 4-8
  174. Called from file "duppy.ml", line 295, characters 12-25
  175. Called from file "tools/tutils.ml", line 213, characters 19-55
  176.  
  177. 2017/11/17 10:28:33 [threads:1] PANIC: Liquidsoap has crashed, exiting.,
  178. Please report at: savonet-users@lists.sf.net
Add Comment
Please, Sign In to add comment