ffmpeg -i input.mp4 -b 1000000 output.mp4
ffmpeg -i input.m2ts -vcodec libx264 -crf 20 -acodec ac3 -vf "yadif" output.mp4
$fields = array( | |
$db->quoteName('name').' = '.($db->quote($_POST["name"])), | |
$db->quoteName('content').' = '.($db->quote($_POST["content"])), | |
$db->quoteName('subtitle').' = '.(($_POST["subtitle"] != "")?($db->quote($_POST["subtitle"])):("NULL")), | |
$db->quoteName('content').' = '.(($_POST["content"] != "")?($db->quote($_POST["content"])):("NULL")) | |
); | |
$db->setQuery($db->getQuery(true)->update($db->quoteName('#__js_table'))->set($fields)->where($db->quoteName('ID').' = '.$db->quote($_GET["ID"])))->execute(); |
$user_id = JFactory::getUser()->id; | |
if( !$user_id ) { die('error'); } |
$db->setQuery($db->getQuery(true)->insert($db->quoteName('#__js_table')) | |
->columns($db->quoteName(array('created','name','subtitle','pos','content','parent_id'))) | |
->values(implode(',', array( | |
$db->quote(date('Y-m-d H:i:s',strtotime('now'))), | |
$db->quote($name), | |
"NULL", | |
$pos, | |
"NULL", | |
(($parent_id != "")?($parent_id):("NULL")) | |
))))->execute(); |
$db->setQuery($db->getQuery(true)->delete($db->quoteName('#__js_table'))->where($db->quoteName('ID').' = '.$id))->execute(); |
<span class="counter">150</span> | |
<textarea data-maxlength="150"></textarea> |
overflow:hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; |
function custom_login() { | |
echo '<style type="text/css">'. | |
'#login h1, #login #nav, #login #backtoblog { display:none; }'. | |
'</style>'; | |
} | |
add_action( 'login_enqueue_scripts', 'custom_login' ); |
See github |
$.when( | |
$('.box').animate({ opacity: 0 }, 1000, 'linear'), | |
$.post( $(this).closest('form').attr('action'), $(this).closest('form').serialize() ) | |
).then(function () { | |
alert('both finished'); | |
}); |