Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (10366)

  • avformat/rtpdec_rfc4175 : cosmetic changes

    4 décembre 2021, par Limin Wang
    avformat/rtpdec_rfc4175 : cosmetic changes
    

    Signed-off-by : Limin Wang <lance.lmwang@gmail.com>

    • [DH] libavformat/rtpdec_rfc4175.c
  • Anomalie #3014 : Chaines de langue de "Forums" utilisées dans la "dist"

    24 décembre 2017, par b b

    Pour info, voici les occurrences de chaînes de langue de forum dans la dist à ce jour :

    grep -nHIirF —exclude=*.svn-base — :forum : .
    ./404.html:36 :            [(#ENVfond_erreur|==forum|oui)

    <:forum:aucun_message_forum :>

    ]
    ./article.html:56 : [

    <:forum:form_pet_message_commentaire :>

    ./inclure/forum.html:17 :

    <:accueil_site :> &gt ; ... &gt ; <:forum:forum :> #ID_FORUM

    ./forum.html:28 : [

    (#TITRE|sinon<:forum:forum :> #ID_FORUM)

    ]
    ./forum.html:38 :

    <:forum:forum_avez_selectionne :> #TITRE

    ./forum.html:41 : [

    <:forum:form_pet_message_commentaire :>

    ./breve.html:43 : [

    <:forum:form_pet_message_commentaire :>

  • 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;