Recherche avancée

Médias (91)

Autres articles (87)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (11492)

  • Anomalie #4668 (Nouveau) : Erreur 500 : failed to open dir : Permission denied

    15 février 2021, par Pierre KUHN

    Bonjour,

    Avec la dernière version de 4.3.0 on bloque à la fin :

    1. <span class="CodeRay"><span class="constant">Fatal</span> error: <span class="constant">Uncaught</span> <span class="constant">UnexpectedValueException</span>: <span class="constant">RecursiveDirectoryIterator</span>::__construct(./docker/database/mysql): failed to open dir: <span class="constant">Permission</span> denied in /<span class="keyword">var</span>/www/html/octoshow/spip_loader.php:<span class="integer">998</span> <span class="constant">Stack</span> trace: <span class="comment">#0 [internal function]: RecursiveDirectoryIterator->__construct('./docker/databa...', 12288) #1 [internal function]: RecursiveDirectoryIterator->getChildren() #2 [internal function]: FilterIterator->rewind() #3 /var/www/html/octoshow/spip_loader.php(998): FilterIterator->rewind() #4 /var/www/html/octoshow/spip_loader.php(928): SL_lister_contenus_superflus(Array, './', Array) #5 /var/www/html/octoshow/spip_loader.php(887): SL_comparer_contenus(Array, './') #6 /var/www/html/octoshow/spip_loader.php(1187): SL_nettoyer_superflus(Array, './') #7 /var/www/html/octoshow/spip_loader.php(1345): spip_deballe_paquet('spip/archives/s...', './spip-v3.2.9.z...', '', 0) #8 /var/www/html/octoshow/spip_loader.php(1462): spip_deballe('spip/archives/s...', 'fichier', '', 0) #9 {main} thrown in /var/www/html/octoshow/spip_loader.php on line 998</span>
    2. </span>

    Télécharger

    Je travail sur docker, les droits rw-rw--- 1 999 999
    Merci

  • Anomalie #3689 (Nouveau) : Des messages d’erreurs qui ne semblent pas avoir lieu d’être

    9 février 2016, par Franck Dalot

    Bonjour :-)
    SPIP 3.1.0 [22811]
    Php 5.6.15
    Table en MySQL
    Prefix des table : test12

    Quand je télécharge le squelette "scolaspip" en version 4 http://plugins.spip.net/scolaspip.html via SVP, j’ai systématiquement un message d’erreur qui ne me semble pas avoir lieu d’être (voir copie d’écran erreur 0)
    Si dans .../ecrire/ ?exec=admin_plugin&voir=actif je clique sur "Tout cocher", que je choisi "désinstaller", j’ai systématiquement un autre message (voir copie d’écran erreur 1)

    A savoir que cela fait pareil en SPIP 3.0.21 [22462]

    J’ai fait aussi un test en 3.0.21 avec le squelette "SPIPMine 2.0.1 - dev" http://plugins.spip.net/spipmine.html car il necessite également spipr, j’ai le même message que la copie d’écran 0, par contre, je ne peux pas dire pour l’autre message, car SVP semble avoir un problème quand il y a pas mal de necessite, je suis dans l’obligation de réactualiser la page, mais ce point demanderait confirmation par une autre personne
    Franck

  • Update Database After shell_exec() Using FFMPEG/Laravel

    25 avril 2020, par Mike

    I want to update a database record (MySQL) after the FFMPEG process is complete. Normally I would just call a function just after the FFMPEG command, but I needed to add > /dev/null 2>/dev/null &amp; so I didn't have to wait for the FFMPEG process to complete which would mean the REST call would hang for a LONG time and that would cause bad UX for the front-end.

    &#xA;&#xA;

    I'm not sure where to begin with it. My first thought is to make a REST request, but maybe calling the method in Laravel directly would be better.

    &#xA;&#xA;

    Can I do a curl call after the FFMPEG command ? Or can I call a PHP method ? Or is there a better way ?

    &#xA;&#xA;

    PHP FFMPEG Method

    &#xA;&#xA;

    private function transcode($movie)&#xA;{&#xA;    try {&#xA;        $name       = &#x27;master.&#x27; . $movie->extension;&#xA;        $this->path = storage_path(&#x27;app/public/movies/&#x27;) . $movie->id . &#x27;/&#x27;;&#xA;        $fps        = $this->getFrameRate($name);&#xA;        $width      = $this->getVideoWidth($name);&#xA;        $height     = $this->getVideoHeight($name);&#xA;&#xA;        // ffmpeg commands&#xA;        $c = $this->buildCommand($width, $height, $fps);&#xA;&#xA;        // ffmpeg -  added &#x27;> /dev/null 2>/dev/null &amp;&#x27; so it will not wait to finish&#xA;        $ffmpeg = shell_exec(&#x27;ffmpeg -i &#x27; . $this->path . $name . &#x27; -progress &#x27; . $this->path . &#x27;transcode.log&#x27; . $c . &#x27; > /dev/null 2>/dev/null &amp;&#x27;);&#xA;&#xA;        return response()->json([&#x27;message&#x27; => &#x27;transcode initiated&#x27;], 200); &#xA;&#xA;    }&#xA;    catch(\Exception $e)&#xA;    {&#xA;        return response()->json([&#x27;error&#x27; => $e->getMessage()], 500);&#xA;    }&#xA;}&#xA;

    &#xA;&#xA;

    Here is the bash curl post idea

    &#xA;&#xA;

    $curl = &#x27;curl --data "param1=value1&amp;param2=value2" http://hostname/transcode/complete&#x27;;&#xA;&#xA;$ffmpeg = shell_exec(&#x27;ffmpeg -i &#x27; . $this->path . $name . &#x27; -progress &#x27; . $this->path . &#x27;transcode.log&#x27; . $c . &#x27;; $curl > /dev/null 2>/dev/null &amp;&#x27;);&#xA;

    &#xA;&#xA;

    I could be going down the wrong path with the above, but I'm trying to move forward with something.

    &#xA;