You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

254 lines
6.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. if( $CUser->Data['id'] > 1 ){
  4. $Data['status'] = 'error';
  5. if( $CUser->Data['access'] > 5 ){
  6. $QS = "SELECT * FROM `system_props` WHERE `id`=1";
  7. $Result = $DATABASE->Query( $QS );
  8. $CS = $Result[0];
  9. $SKEL=<<<DATABOUNDARY
  10. {
  11. xtype: 'panel',
  12. border: false,
  13. frame: false,
  14. items:[{
  15. xtype: 'form',
  16. labelAlign: 'right',
  17. labelWidth: 180,
  18. //height: PanelH - 30,
  19. items:[{
  20. xtype:'panel',
  21. border: false,
  22. frame: false,
  23. html: '<table width="100%" border=0 class="setEd_infoPanel" id="LIBAV_LOGO"><tr><td width="200px"><div class="libav_logo_img"></div></td><td valign="middle">Encoder Settings</td></tr><tr><td colspan=2></td></tr></table><br/>'
  24. },{
  25. xtype: 'spacer',
  26. height: 10
  27. },{
  28. xtype: 'combo',
  29. id: 'menc_cont',
  30. fieldLabel: '{$Labels->GetLabel('_ENC_CONTAINER_')}',
  31. editable: false,
  32. typeAhead: true,
  33. triggerAction: 'all',
  34. width: '100%',
  35. lazyRender:true,
  36. mode: 'local',
  37. store: new Ext.data.ArrayStore({
  38. fields: ['cid', 'cnam'],
  39. data: [['mp4',"MP4"], ['avi',"AVI"], ['mov',"MOV"]]
  40. }),
  41. valueField: 'cid',
  42. displayField: 'cnam',
  43. listeners:{
  44. focus: function( t ){
  45. loadHelpTopic( 'encoder_op_small', 312 );
  46. },
  47. select: function( t, r, i ){
  48. //alert('buba');
  49. //doApplicationOperation( 1, i );
  50. }
  51. },
  52. value: 'mp4'//'{$CS['menc_container']}'
  53. },{
  54. xtype: 'spacer',
  55. height: 10
  56. },{
  57. xtype: 'combo',
  58. id: 'menc_cdc',
  59. fieldLabel: '{$Labels->GetLabel('_ENC_CODEC_')}',
  60. editable: false,
  61. typeAhead: true,
  62. triggerAction: 'all',
  63. width: '100%',
  64. lazyRender:true,
  65. mode: 'local',
  66. store: new Ext.data.ArrayStore({
  67. fields: ['cid', 'cnam'],
  68. data: [[0,"H264"], [1,"H265"]]
  69. }),
  70. valueField: 'cid',
  71. displayField: 'cnam',
  72. listeners:{
  73. select: function( t, r, i ){
  74. doApplicationOperation( 1, i );
  75. }
  76. },
  77. value: '0'//'{$CS['menc_thread_mode']}'
  78. },{
  79. xtype: 'spacer',
  80. height: 10
  81. },{
  82. xtype: 'combo',
  83. id: 'menc_thm',
  84. fieldLabel: '{$Labels->GetLabel('_ENC_THREAD_M_')}',
  85. editable: false,
  86. typeAhead: true,
  87. triggerAction: 'all',
  88. width: '100%',
  89. lazyRender:true,
  90. mode: 'local',
  91. store: new Ext.data.ArrayStore({
  92. fields: ['sid', 'snam'],
  93. data: [[1,"{$Labels->GetLabel('__DISABLED__')}"], [2,"{$Labels->GetLabel('_ENC_TH_PERF_')}"], [3,"{$Labels->GetLabel('_ENC_TH_PERS_')}"]]
  94. }),
  95. valueField: 'sid',
  96. displayField: 'snam',
  97. listeners:{
  98. select: function( t, r, i ){
  99. doApplicationOperation( 1, i );
  100. }
  101. },
  102. value: 2//'{$CS['menc_thread_mode']}'
  103. },{
  104. xtype: 'spacer',
  105. height: 10
  106. },{
  107. xtype: 'combo',
  108. id: 'menc_preset',
  109. fieldLabel: '{$Labels->GetLabel('_ENC_PRESET_')}',
  110. editable: false,
  111. typeAhead: true,
  112. triggerAction: 'all',
  113. width: '100%',
  114. lazyRender:true,
  115. mode: 'local',
  116. store: new Ext.data.ArrayStore({
  117. fields: ['sid', 'snam'],
  118. data: [[0,"placebo"],[1,"ultrafast"], [2,"superfast"], [3,"veryfast"], [4,"faster"], [5,"fast"], [6,"medium"], [7,"slow"], [8,"slower"], [9,"veryslow"]]
  119. }),
  120. valueField: 'sid',
  121. displayField: 'snam',
  122. listeners:{
  123. focus: function( t ){
  124. loadHelpTopic( 'encoder_op_small', 122 );
  125. },
  126. select: function( t, r, i ){
  127. //alert('buba');
  128. //doApplicationOperation( 1, i );
  129. }
  130. },
  131. value: 4//'{$CS['menc_thread_mode']}'
  132. },{
  133. xtype: 'spacer',
  134. height: 10
  135. },{
  136. xtype: 'combo',
  137. id: 'menc_tune',
  138. fieldLabel: '{$Labels->GetLabel('_ENC_TUNE_')}',
  139. editable: false,
  140. typeAhead: true,
  141. triggerAction: 'all',
  142. width: '100%',
  143. lazyRender:true,
  144. mode: 'local',
  145. store: new Ext.data.ArrayStore({
  146. fields: ['sid', 'snam'],
  147. data: [[0,"not set"],[1,"film"], [2,"animation"], [3,"grain"], [4,"stillimage"], [5,"fastdecode"], [6,"zerolatency"],[7,"psnr"], [8,"ssim"]]
  148. }),
  149. valueField: 'sid',
  150. displayField: 'snam',
  151. listeners:{
  152. focus: function( t ){
  153. loadHelpTopic( 'encoder_op_small', 122 );
  154. },
  155. select: function( t, r, i ){
  156. //alert('buba');
  157. //doApplicationOperation( 1, i );
  158. }
  159. },
  160. value: 4//'{$CS['menc_thread_mode']}'
  161. },{
  162. xtype: 'spacer',
  163. height: 10
  164. },{
  165. xtype: 'combo',
  166. id: 'menc_profile',
  167. fieldLabel: '{$Labels->GetLabel('_ENC_PROFILE_')}',
  168. editable: false,
  169. typeAhead: true,
  170. triggerAction: 'all',
  171. width: '100%',
  172. lazyRender:true,
  173. mode: 'local',
  174. store: new Ext.data.ArrayStore({
  175. fields: ['sid', 'snam'],
  176. data: [[0,"baseline"], [1,"main"], [2,"high"], [3,"high10"], [4,"high422"], [5,"high444"]]
  177. }),
  178. valueField: 'sid',
  179. displayField: 'snam',
  180. listeners:{
  181. focus: function( t ){
  182. loadHelpTopic( 'encoder_op_small', 122 );
  183. },
  184. select: function( t, r, i ){
  185. //alert('buba');
  186. //doApplicationOperation( 1, i );
  187. }
  188. },
  189. value: 4//'{$CS['menc_thread_mode']}'
  190. },{
  191. xtype: 'spacer',
  192. height: 10
  193. },{
  194. xtype: 'combo',
  195. id: 'menc_bitrate',
  196. fieldLabel: '{$Labels->GetLabel('_ENC_BITRATE_')}',
  197. editable: false,
  198. typeAhead: true,
  199. triggerAction: 'all',
  200. width: '100%',
  201. lazyRender:true,
  202. mode: 'local',
  203. store: new Ext.data.ArrayStore({
  204. fields: ['sid', 'snam'],
  205. data: [[1,"1500K"], [2,"2000K"], [3,"3000K"], [4,"4000K"], [5,"5000K"], [6,"6000K"]]
  206. }),
  207. valueField: 'sid',
  208. displayField: 'snam',
  209. listeners:{
  210. focus: function( t ){
  211. loadHelpTopic( 'encoder_op_small', 122 );
  212. },
  213. select: function( t, r, i ){
  214. //alert('buba');
  215. //doApplicationOperation( 1, i );
  216. }
  217. },
  218. value: 4//'{$CS['menc_thread_mode']}'
  219. },{
  220. xtype: 'spacer',
  221. height: 10
  222. },{
  223. xtype: 'slider',
  224. id: 'menc_crm',
  225. fieldLabel: '{$Labels->GetLabel('_ENC_QUAL_')}',
  226. //triggerAction: 'all',
  227. width: '70%',
  228. listeners:{
  229. click: function( t ){
  230. alert('JUJACLIK');
  231. },
  232. focus: function( t ){
  233. alert('JUJA');
  234. },
  235. change: function( t, r, i ){
  236. //alert('buba');
  237. //doApplicationOperation( 1, i );
  238. }
  239. },
  240. value: 20//'{$CS['menc_thread_mode']}'
  241. }]
  242. }]
  243. }
  244. DATABOUNDARY;
  245. $Data['status'] = 'ok';
  246. $Data['content'] = $SKEL;
  247. } else {
  248. $Data['msg']='Access Denied!';
  249. };
  250. echo json_encode( $Data );
  251. } else {
  252. header('location: /');
  253. };
  254. ?>