
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (98)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (13917)
-
How to install ffmpeg
8 octobre 2017, par user5913892I want to make a "mini" editor video. My goal is, cut some part of the video and then save it and also create an undo button. Now , I was looking for the best solution (This operation have to be done in a website) and I found that I have to use ffmpeg. I didn’t know if ffmpeg was already installed on my server and I use this php script to discover it :
<?php
/**
* Test script for FFmpeg
*
* @author Andycoder /wdevblog.net.ru/>
*/
ini_set('display_errors',1);
error_reporting(E_ALL);
$is_windows = strpos( php_uname(), "Windows" ) !== false;
$ffmpeg_path = !empty( $_POST['ffmpeg_path'] ) && strpos( $_POST['ffmpeg_path'], 'ffmpeg' ) !== false ? trim( $_POST['ffmpeg_path'] ) : '';
if( !$ffmpeg_path && !$is_windows ){
$ffmpeg_path = trim( shell_exec( 'which ffmpeg' ) );
}
function getCodecs( $ffmpeg_path = '' ) {
$lines = array();
$encoders = array();
exec( "{$ffmpeg_path} -codecs", $lines);
foreach ($lines as $line) {
if (preg_match('/^\s+([A-Z .]+)\s+(\w{2,})\s+(.*)$/', $line, $m)) {
$type = trim($m[1]);
if (strpos($type, 'E') !== false) {
$encoder = trim($m[2]);
if (strpos($encoder, ',') !== false) {
foreach (split(',', $encoder) as $e) {
$encoders[] = $e;
}
} else {
$encoders[] = $encoder;
}
}
}
}
sort($encoders);
return $encoders;
}
function getPHPPath(){
$is_windows = strpos( strtolower(php_uname()), 'windows' ) !== false;
if( $is_windows ){
$output = dirname(ini_get('extension_dir')) . "/php.exe";
}else{
$output = trim(shell_exec("which php"));
}
return $output;
}
$info = array();
$info['php_version'] = array( 'name' => 'PHP version', 'value' => phpversion() );
$info['php_path'] = array( 'name' => 'PHP path', 'value' => getPHPPath() );
$info['web_server'] = array( 'name' => 'Web server', 'value' => $_SERVER['SERVER_SOFTWARE'] );
$info['ffmpeg_path'] = array( 'name' => 'FFMPEG path', 'value' => $ffmpeg_path );
$info['ffmpeg_version'] = array( 'name' => 'FFMPEG version', 'value' => '' );
if( $ffmpeg_path ){
$ffmpeg_ver = shell_exec( "{$ffmpeg_path} -version" );
preg_match( '/.+version.+/', $ffmpeg_ver, $matches );
if( !empty( $matches ) ){
$info['ffmpeg_version']['value'] = $matches[0];
}
}
$info['yamdi_path'] = array( 'name' => 'Yamdi path', 'value' => !$is_windows ? trim(shell_exec('which yamdi')) : '' );
$info['mp4box_path'] = array( 'name' => 'MP4Box (GPAC) path', 'value' => !$is_windows ? trim(shell_exec('which MP4Box')) : '' );
$info['qtfaststart_path'] = array( 'name' => 'qt-faststart path', 'value' => !$is_windows ? trim(shell_exec('which qt-faststart')) : '' );
$info['flvtool2_path'] = array( 'name' => 'flvtool2 path', 'value' => !$is_windows ? trim(shell_exec('which flvtool2')) : '' );
$info['ffmpeg_codecs'] = array( 'name' => 'FFMPEG codecs', 'value' => array() );
if( $ffmpeg_path ) {
$info['ffmpeg_codecs']['value'] = getCodecs( $ffmpeg_path );
}
if( empty( $info['ffmpeg_codecs']['value'] ) ){
$info['ffmpeg_path']['value'] = '';
}
ksort($info);
?>
<code class="echappe-js"><script type="text/javascript"><br />
function expandCollapse( id ){<br />
if( document.getElementById(id).style.display == 'none' ){<br />
document.getElementById(id).style.display = 'block';<br />
}else{<br />
document.getElementById(id).style.display = 'none';<br />
}<br />
}<br />
</script>Property Value < ?php foreach( $info as $key => $opt ) : ?>
< ?php echo $opt[’name’] ; ?> : < ?php if( !empty( $opt[’value’] ) ) : ?>
< ?php
if( !is_array( $opt[’value’] ) ) :
echo $opt[’value’] ;
else : ?>< ?php endif ; ?>
< ?php else : ?>
[Not found]
< ?php endif ; ?>< ?php endforeach ; ?>
that return me this :
So, I have not ffmpeg installed on that server. The server should be Linux, I say this because I use one of the many website in Internet to discover it.
I know that the website say that the Webserver is Engine-x, but my company has told that is Apache (as the php script already told me). Now , I found this link http://www.mysql-apache-php.com/ffmpeg-install.htm (in Stackoverflow and many other parts) that say how to install ffmpeg in Linux, but Where should I execute these commands ? Should I use Putty ? or What ?
-
Anomalie #4525 (Nouveau) : Fatal error en php 8.0
15 juillet 2020, par Franck DHello, :)
Windows 10 (1909)
Firefox 78.0.2
Easyphp
Apache 2.4.43 x64
PHP 8.0.0 alpha1 x64
MySQL 8.0.20 x64
PhpMyAdmin 5.0.2memory_limit 512M
post_max_size 130M
upload_max_filesize 64M
max_execution_time 300
max_input_time -1Si je lance spip_loader, j’ai une page page de suite avec dedans :
Fatal error : Uncaught Error : Call to undefined function each() in C :\Program Files (x86)\EasyPHP-Devserver-17\eds-www\test11\spip_loader.php:320 Stack trace : #0 C :\Program Files (x86)\EasyPHP-Devserver-17\eds-www\test11\spip_loader.php(1139) : _TT(’ce_repertoire’) #1 C :\Program Files (x86)\EasyPHP-Devserver-17\eds-www\test11\spip_loader.php(1254) : spip_presente_deballe(’./spip-3.2.zip’, ’spip/stable/spi...’, ’’, 0) #2 C :\Program Files (x86)\EasyPHP-Devserver-17\eds-www\test11\spip_loader.php(1360) : spip_deballe(’spip/stable/spi...’, ’’, ’’, 0) #3 main thrown in C :\Program Files (x86)\EasyPHP-Devserver-17\eds-www\test11\spip_loader.php on line 320
-
Anomalie #3535 : liste des rédacteurs connectés
16 août 2017, par Julien -Sur un SPIP 3.2b, (migré depuis un 2.1 > 3.1 > 3.2b), j’ai en effet 4 types de valeur pour
imessage
: "oui", "non", vide, NULL.
(Et une condition SQLimessage != 'non'
retourne le vide mais pas leNULL
).Au niveau MySQL, la colonne
imessage
n’a pas deNOT NULL
.
Au niveau du code SPIP, on trouve :
https://core.spip.net/projects/spip/repository/entry/spip/ecrire/maj/v012.php#L35 : création initial enNOT NULL
Il semble que sur une installation neuve :
https://core.spip.net/projects/spip/repository/entry/spip/ecrire/base/objets.php#L225 : le "field" est absent (bien que référencé dans "champs_editables" L223)C’est l’organiseur qui semble gérer la création de
imessage
etmessagerie
:
https://core.spip.net/projects/organiseur/repository/entry/base/organiseur.php#L27
=> Il crée ces champs sans préciser deNOT NULL
contrairement àv012.php
A noter que sur une base en SPIP 2.1, je vois que j’ai tout de même "OUI" à la propriété
NOT NULL
!!Au niveau du code SPIP, il semble que les conditions portent toujours sur
!= 'non'
.
Ne faudrait-il pas plutôt corriger la définition de la colonne en mettant unNOT NULL DEFAULT ''
?