completo-2cam.ini 4.8 KB

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