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.
255 lines
6.4 KiB
255 lines
6.4 KiB
<?php
|
|
require_once('../ajax_asm.php');
|
|
|
|
if( $CUser->Data['id'] > 1 ){
|
|
$Data['status'] = 'error';
|
|
if( $CUser->Data['access'] > 5 ){
|
|
$QS = "SELECT * FROM `system_props` WHERE `id`=1";
|
|
$Result = $DATABASE->Query( $QS );
|
|
$CS = $Result[0];
|
|
$SKEL=<<<DATABOUNDARY
|
|
{
|
|
xtype: 'panel',
|
|
border: false,
|
|
frame: false,
|
|
items:[{
|
|
xtype: 'form',
|
|
labelAlign: 'right',
|
|
labelWidth: 180,
|
|
//height: PanelH - 30,
|
|
items:[{
|
|
xtype:'panel',
|
|
border: false,
|
|
frame: false,
|
|
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/>'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'combo',
|
|
id: 'menc_cont',
|
|
fieldLabel: '{$Labels->GetLabel('_ENC_CONTAINER_')}',
|
|
editable: false,
|
|
typeAhead: true,
|
|
triggerAction: 'all',
|
|
width: '100%',
|
|
lazyRender:true,
|
|
mode: 'local',
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['cid', 'cnam'],
|
|
data: [['mp4',"MP4"], ['avi',"AVI"], ['mov',"MOV"]]
|
|
}),
|
|
valueField: 'cid',
|
|
displayField: 'cnam',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'encoder_op_small', 312 );
|
|
},
|
|
select: function( t, r, i ){
|
|
//alert('buba');
|
|
//doApplicationOperation( 1, i );
|
|
}
|
|
},
|
|
value: 'mp4'//'{$CS['menc_container']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'combo',
|
|
id: 'menc_cdc',
|
|
fieldLabel: '{$Labels->GetLabel('_ENC_CODEC_')}',
|
|
editable: false,
|
|
typeAhead: true,
|
|
triggerAction: 'all',
|
|
width: '100%',
|
|
lazyRender:true,
|
|
mode: 'local',
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['cid', 'cnam'],
|
|
data: [[0,"H264"], [1,"H265"]]
|
|
}),
|
|
valueField: 'cid',
|
|
displayField: 'cnam',
|
|
listeners:{
|
|
select: function( t, r, i ){
|
|
doApplicationOperation( 1, i );
|
|
}
|
|
},
|
|
value: '0'//'{$CS['menc_thread_mode']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'combo',
|
|
id: 'menc_thm',
|
|
fieldLabel: '{$Labels->GetLabel('_ENC_THREAD_M_')}',
|
|
editable: false,
|
|
typeAhead: true,
|
|
triggerAction: 'all',
|
|
width: '100%',
|
|
lazyRender:true,
|
|
mode: 'local',
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['sid', 'snam'],
|
|
data: [[1,"{$Labels->GetLabel('__DISABLED__')}"], [2,"{$Labels->GetLabel('_ENC_TH_PERF_')}"], [3,"{$Labels->GetLabel('_ENC_TH_PERS_')}"]]
|
|
}),
|
|
valueField: 'sid',
|
|
displayField: 'snam',
|
|
listeners:{
|
|
select: function( t, r, i ){
|
|
doApplicationOperation( 1, i );
|
|
}
|
|
},
|
|
value: 2//'{$CS['menc_thread_mode']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'combo',
|
|
id: 'menc_preset',
|
|
fieldLabel: '{$Labels->GetLabel('_ENC_PRESET_')}',
|
|
editable: false,
|
|
typeAhead: true,
|
|
triggerAction: 'all',
|
|
width: '100%',
|
|
lazyRender:true,
|
|
mode: 'local',
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['sid', 'snam'],
|
|
data: [[0,"placebo"],[1,"ultrafast"], [2,"superfast"], [3,"veryfast"], [4,"faster"], [5,"fast"], [6,"medium"], [7,"slow"], [8,"slower"], [9,"veryslow"]]
|
|
}),
|
|
valueField: 'sid',
|
|
displayField: 'snam',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'encoder_op_small', 122 );
|
|
},
|
|
select: function( t, r, i ){
|
|
//alert('buba');
|
|
//doApplicationOperation( 1, i );
|
|
}
|
|
},
|
|
value: 4//'{$CS['menc_thread_mode']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'combo',
|
|
id: 'menc_tune',
|
|
fieldLabel: '{$Labels->GetLabel('_ENC_TUNE_')}',
|
|
editable: false,
|
|
typeAhead: true,
|
|
triggerAction: 'all',
|
|
width: '100%',
|
|
lazyRender:true,
|
|
mode: 'local',
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['sid', 'snam'],
|
|
data: [[0,"not set"],[1,"film"], [2,"animation"], [3,"grain"], [4,"stillimage"], [5,"fastdecode"], [6,"zerolatency"],[7,"psnr"], [8,"ssim"]]
|
|
}),
|
|
valueField: 'sid',
|
|
displayField: 'snam',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'encoder_op_small', 122 );
|
|
},
|
|
select: function( t, r, i ){
|
|
//alert('buba');
|
|
//doApplicationOperation( 1, i );
|
|
}
|
|
},
|
|
value: 4//'{$CS['menc_thread_mode']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'combo',
|
|
id: 'menc_profile',
|
|
fieldLabel: '{$Labels->GetLabel('_ENC_PROFILE_')}',
|
|
editable: false,
|
|
typeAhead: true,
|
|
triggerAction: 'all',
|
|
width: '100%',
|
|
lazyRender:true,
|
|
mode: 'local',
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['sid', 'snam'],
|
|
data: [[0,"baseline"], [1,"main"], [2,"high"], [3,"high10"], [4,"high422"], [5,"high444"]]
|
|
}),
|
|
valueField: 'sid',
|
|
displayField: 'snam',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'encoder_op_small', 122 );
|
|
},
|
|
select: function( t, r, i ){
|
|
//alert('buba');
|
|
//doApplicationOperation( 1, i );
|
|
}
|
|
},
|
|
value: 4//'{$CS['menc_thread_mode']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'combo',
|
|
id: 'menc_bitrate',
|
|
fieldLabel: '{$Labels->GetLabel('_ENC_BITRATE_')}',
|
|
editable: false,
|
|
typeAhead: true,
|
|
triggerAction: 'all',
|
|
width: '100%',
|
|
lazyRender:true,
|
|
mode: 'local',
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['sid', 'snam'],
|
|
data: [[1,"1500K"], [2,"2000K"], [3,"3000K"], [4,"4000K"], [5,"5000K"], [6,"6000K"]]
|
|
}),
|
|
valueField: 'sid',
|
|
displayField: 'snam',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'encoder_op_small', 122 );
|
|
},
|
|
select: function( t, r, i ){
|
|
//alert('buba');
|
|
//doApplicationOperation( 1, i );
|
|
}
|
|
},
|
|
value: 4//'{$CS['menc_thread_mode']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'slider',
|
|
id: 'menc_crm',
|
|
fieldLabel: '{$Labels->GetLabel('_ENC_QUAL_')}',
|
|
//triggerAction: 'all',
|
|
width: '70%',
|
|
listeners:{
|
|
click: function( t ){
|
|
alert('JUJACLIK');
|
|
},
|
|
focus: function( t ){
|
|
alert('JUJA');
|
|
},
|
|
change: function( t, r, i ){
|
|
//alert('buba');
|
|
//doApplicationOperation( 1, i );
|
|
}
|
|
},
|
|
value: 20//'{$CS['menc_thread_mode']}'
|
|
}]
|
|
}]
|
|
}
|
|
DATABOUNDARY;
|
|
$Data['status'] = 'ok';
|
|
$Data['content'] = $SKEL;
|
|
} else {
|
|
$Data['msg']='Access Denied!';
|
|
};
|
|
echo json_encode( $Data );
|
|
} else {
|
|
header('location: /');
|
|
};
|
|
?>
|