completo.ini 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. require version 0.5.1
  2. ################################################################################
  3. # Basic Feeds Settings
  4. # Copyright by Peter Maersk-Moller 2012 - All rights reserved
  5. # Listen on port 9999 for command control connections
  6. system control port 9999
  7. system geometry 800 600 BGRA
  8. system frame rate 24
  9. # Set output control socket
  10. system socket /tmp/mixer1
  11. # Set feed idle time - feed 0 will always be idle. If no file is given,
  12. # idle image will be all black.
  13. #feed idle 0 1 dead-1024x576.bgra
  14. feed idle 0 1
  15. # Define feed #1, set geometry to 704x576, define as live, set idle time
  16. # to 100 frames and set idle image, scale to 1/2 and specify control socket.
  17. # Furthermore the feed is defined as live meaning Snowmix will drop frames if
  18. # it is late.
  19. feed add 1 Feed #1
  20. feed geometry 1 800 600
  21. feed live 1
  22. feed idle 1 10 frames/dead-800x600.bgra
  23. feed socket 1 /tmp/feed1-control-pipe
  24. # Define feed #2, set geometry to 704x576, define as live, set idle time
  25. # to 100 frames and set idle image, scale to 320/768 and specify control socket
  26. # Furthermore the feed is defined as live meaning Snowmix will drop frames if
  27. # it is late.
  28. feed add 2 Feed #2
  29. feed geometry 2 800 600
  30. #576
  31. feed live 2
  32. #feed idle 2 100 frames/dead-704x576.bgra
  33. feed scale 2 1 1
  34. feed socket 2 /tmp/feed2-control-pipe
  35. # Load a transparent image and place it at 4,4
  36. #image load 0 images/tv2-news-logo.png
  37. image load 0 /home/nginx/logoeba.png
  38. #place id, image id, x y
  39. image place 0 0 40 520
  40. image alpha 0 0.4
  41. ################################################################################
  42. audio feed verbose 0
  43. audio mixer verbose 0
  44. audio sink verbose 0
  45. audio feed add 1 Audio feed #1
  46. audio feed channels 1 2
  47. audio feed rate 1 44100
  48. audio feed format 1 16 signed
  49. audio feed mute off 1
  50. #audio feed volume 1 1
  51. #audio feed delay 1 150
  52. audio feed add 2 Audio feed #2
  53. audio feed channels 2 2
  54. audio feed rate 2 44100
  55. audio feed format 2 16 signed
  56. audio feed mute off 2
  57. #audio feed volume 2 1
  58. audio feed delay 2 50
  59. audio mixer add 1 Main Live Mixer
  60. audio mixer channels 1 2
  61. audio mixer rate 1 44100
  62. audio mixer mute off 1
  63. #audio mixer volume 1 1
  64. audio mixer source feed 1 1
  65. audio mixer source feed 1 2
  66. #audio mixer source volume 1 1 1.0
  67. #audio mixer source volume 1 2 1.0
  68. audio mixer source mute off 1 1
  69. audio mixer source mute off 1 2
  70. audio mixer source mindelay 1 1 170
  71. audio mixer source maxdelay 1 1 250
  72. # Dummy sink
  73. audio sink add 0 Dummy Audio
  74. audio sink channels 0 2
  75. audio sink rate 0 44100
  76. audio sink format 0 16 signed
  77. audio sink mute on 0
  78. audio sink source mixer 0 1
  79. # Sink for 'ctr isaudio'
  80. audio sink add 1 Main Live Sink
  81. audio sink channels 1 2
  82. audio sink rate 1 44100
  83. audio sink format 1 16 signed
  84. audio sink mute off 1
  85. audio sink source mixer 1 1
  86. audio sink verbose 1
  87. audio sink start 0
  88. audio mixer start 1
  89. audio feed verbose 1
  90. audio mixer verbose 1
  91. #FIXME channels
  92. ################################################################################
  93. stack 0
  94. command create create_virtual_feeds
  95. vfeed add 1 Feed #1
  96. vfeed source feed 1 1
  97. vfeed add 2 Feed #2
  98. vfeed source feed 2 2
  99. command end
  100. # vfeed place rect [<vir id> [<x> <y> <clip w> <clip h> <clip x> <clip y> [<rotation> <scale_x> <scale_y> <alpha>]]]
  101. # vfeed place rect id x y c_w c_h c_x cy rot s_x s_y alp
  102. #800x600 * 0.4 => 320x240
  103. #800x600 - 320x240 = 480x360
  104. command create place_virtual_feed_pip
  105. vfeed place rect 1 000 000 800 600 000 00 0.0 1.0 1.0 1.0
  106. vfeed place rect 2 480 360 320 240 000 00 0.0 0.4 0.4 1.0
  107. loop
  108. command end
  109. #800x600 * 0.6 => 320x240
  110. #1024x768 - 320x240 = 704x528
  111. command create place_virtual_feed_video
  112. vfeed place rect 1 000 000 640 480 000 00 0.0 0.800 0.800 1.0
  113. vfeed place rect 2 400 300 400 300 000 00 0.0 0.600 0.500 1.0
  114. loop
  115. command end
  116. command create place_virtual_feed_main
  117. vfeed place rect 1 000 000 800 600 000 00 0.0 1.0 1.0 1.0
  118. vfeed place rect 2 000 000 800 600 000 00 0.0 1.0 1.0 0.0
  119. loop
  120. command end
  121. command create place_virtual_feed_secondary
  122. vfeed place rect 1 000 000 800 600 000 00 0.0 1.0 1.0 0.0
  123. vfeed place rect 2 000 000 800 600 000 00 0.0 1.0 1.0 1.0
  124. loop
  125. command end
  126. create_virtual_feeds
  127. place_virtual_feed_pip
  128. # The 'loop' command is essential and tells Snowmix to loop the command,
  129. # to point at the start of the command before next frame..
  130. command create Show
  131. vfeed overlay 1
  132. vfeed overlay 2
  133. image overlay 0
  134. loop
  135. command end
  136. # >>>>>>>>>>>>>>>>>> I M P O R T A N T <<<<<<<<<<<<<<<<<<<<<<<
  137. # This command tells Snowmix to run the command 'Show' for each frame after
  138. # feeds have been stacked as defined by the 'stack command'
  139. overlay finish Show
  140. # >>>>>>>>>>>>>>>>>> I M P O R T A N T <<<<<<<<<<<<<<<<<<<<<<<