ОсновноеRadiotalkПользовательское
Общие вопросы по интернет радио вещанию
8   •   Посмотреть все темы

liquidsoap crossfade

 

131
Enzo @enzO
Привет всем.Помагите прикрутит crossfade некак неполучаитса.Нужно штоб песни перхадили плавна.


radio = crossfade(start_next=5.,fade_out=3.,fade_in=3.,radio)

nerabotait:((

п.с. извенаюс пишу използуя транслит.ру

мои liquid config


  1. #!/usr/local/bin/liquidsoap
  2. set("log.file.path","/home/soap/log/soap.log")
  3. set("tag.encodings",["UTF-8"])
  4. # Live Settings
  5. set("harbor.bind_addr","0.0.0.0")
  6. #Rewrite tags
  7. def live_tag(j)
  8. rewrite_metadata([("title","xxxxx")], update=false, strip=true, j)
  9. end
  10. def live_rep_tag(j)
  11. rewrite_metadata([("title","xxxx")], update=false, strip=true, j)
  12. end
  13. def my_rec_tag(j)
  14. rewrite_metadata([("title","xxxx")], update=false, strip=true, j)
  15. end
  16. def morning_tag(j)
  17. rewrite_metadata([("title","xxxx")], update=false, strip=true, j)
  18. end
  19. def day_tag(j)
  20. rewrite_metadata([("title","xxxx")], update=false, strip=true, j)
  21. end
  22. def evening_tag(j)
  23. rewrite_metadata([("title","xxxx")], update=false, strip=true, j)
  24. end
  25. def night_tag(j)
  26. rewrite_metadata([("title","xxxx)], update=false, strip=true, j)
  27. end
  28. def jin_tag(j)
  29. rewrite_metadata([("title","xxxx")], update=false, strip=true, j)
  30. end
  31. #Live input
  32. live = audio_to_stereo(live_tag(input.harbor(id="LIVE", port=8010, password="mystationpassword", "live")))
  33. liveover = audio_to_stereo(input.harbor(port=8010, password="mystationpassword2", "liveover"))
  34. #Talking clock
  35. clock00 = audio_to_stereo(playlist("/home/soap/audio/clock/00/"))
  36. clock12 = audio_to_stereo(playlist("/home/soap/audio/clock/12/"))
  37. #Records play
  38. live_rep = audio_to_stereo(live_rep_tag(request.queue(id="LIVE_REP", timeout=120.)))
  39. my_rec_program = audio_to_stereo(my_rec_tag(request.queue(id="MY_REC_PROGRAM", timeout=120.)))
  40. #Music playlists
  41. morning = audio_to_stereo(morning_tag(playlist("/home/soap/playlists/morning/")))
  42. day = audio_to_stereo(day_tag(playlist("/home/soap/playlists/day/")))
  43. evening = audio_to_stereo(evening_tag(playlist("/home/soap/playlists/evening/")))
  44. night = audio_to_stereo(night_tag(playlist("/home/soap/playlists/night/")))
  45. #Jingle playlist
  46. jin = audio_to_stereo(jin_tag(playlist("/home/soap/audio/jingle/")))
  47. morning = random(weights=[1,3],[jin,morning])
  48. day = random(weights=[1,3],[jin,day])
  49. evening = random(weights=[1,3],[jin,evening])
  50. night = random(weights=[1,5],[jin,night])
  51. clocksay = switch([({00h00m00s},clock00),({12h00m00s},clock12)])
  52. music = switch(track_sensitive = true, [({6h00m00s-11h59m59s},morning),({12h00m00s-17h59m59s},day),({18h00m00s-23h59m59s},evening),({00h00m00s-5h59m59s},night)])
  53. record = fallback(id="REC", track_sensitive = false, ([my_rec_program,live_rep]))
  54. ready_air = fallback(id="STREAM", track_sensitive = false, ([
  55. fallback.skip(input=live, nrj(fallback.skip(input=record,music))),
  56. blank()
  57. ]))
  58. ready_air = add([ready_air, amplify(1.,clocksay)])
  59. ready_air = add([ready_air, amplify(1.,liveover)])
  60. radio = smart_crossfade(ready_air)
  61. radio = crossfade(start_next=5.,fade_out=3.,fade_in=3.,radio)
  62. clock.assign_new(id="My Radio",[radio])
  63. output.icecast(%mp3 (stereo=true, id3v2=true, samplerate=44100, bitrate=128),
  64. mount="/play",
  65. host="localhost",
  66. password="xxxxxxxx",
  67. genre="xxx",
  68. url="http://xxxxxx.xx",
  69. description="xxxxx",
  70. name="xxxxx",
  71. encoding = "UTF-8",
  72. icy_metadata = "true",
  73. radio)

0
382
Grigorij @gyurgin_1
Извиняюсь спросить - это Ваш скрипт или сборник рецептов?

Отредактировано gyurgin_1 - 08.10.2014
0





Согласие на обработку данных на нашем сайте

Продолжая просматривать страницу, вы соглашаетесь с использованием файлов «Cookie» и с Политикой конфиденциальности «Privacy».
Наверху или внизу страницы вы можете изменить валюту и язык по умолчанию. Английская версия сайта ещё находится в доработке и доступна не полностью.