Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (82)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (16633)

  • 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 & 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.

    



    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.

    



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

    



    PHP FFMPEG Method

    



    private function transcode($movie)
{
    try {
        $name       = 'master.' . $movie->extension;
        $this->path = storage_path('app/public/movies/') . $movie->id . '/';
        $fps        = $this->getFrameRate($name);
        $width      = $this->getVideoWidth($name);
        $height     = $this->getVideoHeight($name);

        // ffmpeg commands
        $c = $this->buildCommand($width, $height, $fps);

        // ffmpeg -  added '> /dev/null 2>/dev/null &' so it will not wait to finish
        $ffmpeg = shell_exec('ffmpeg -i ' . $this->path . $name . ' -progress ' . $this->path . 'transcode.log' . $c . ' > /dev/null 2>/dev/null &');

        return response()->json(['message' => 'transcode initiated'], 200); 

    }
    catch(\Exception $e)
    {
        return response()->json(['error' => $e->getMessage()], 500);
    }
}


    



    Here is the bash curl post idea

    



    $curl = 'curl --data "param1=value1&param2=value2" http://hostname/transcode/complete';

$ffmpeg = shell_exec('ffmpeg -i ' . $this->path . $name . ' -progress ' . $this->path . 'transcode.log' . $c . '; $curl > /dev/null 2>/dev/null &');


    



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

    


  • How to make a batch file wait for all processes of another call to finish before continuing

    1er juillet 2020, par Roman Stadler

    The idea of this script is to take a (lecture) video, split it into smaller pieces, remove the silence for each one, and merge them back together, for increased performance, since the silence-removing script does not scale that well for larger videos.

    


    The 3 batch scripts below work perfectly when started manually after eachother, but when trying to launch them from a single .bat file, I can't prevent them from starting at the same time, which creates errors at the merging stage.

    


    These are the 3 batch files :

    


      

    1. split.bat
    2. 


    3. startall.bat
    4. 


    5. merge.bat
    6. 


    


    Split.bat creates 10 minute long segments, afterwards, startall.bat starts one Video-Remove-Silence task for every segment. At the end, merge.bat creates one single mp4 file with all the segments.

    


    split.bat does the following :

    


    ffmpeg -i in.mp4 -c copy -map 0 -segment_time 00:10:00 -f segment out%%03d.mp4
exit


    


    startall.bat :

    


    start start000.bat
start start001.bat
start start002.bat
start start003.bat
...


    


    The start000.bat call looks like this :

    


    python video-remove-silence out000.mp4 --linear 0.0005
exit


    


    And merge.bat :

    


    :: Create File List
for %%i in (*_result.mp4) do echo file '%%i'>> mylist.txt
:: Concatenate Files
ffmpeg -f concat -safe 0 -i mylist.txt -c copy shortened.mp4

del "C:\Users\Roman\Desktop\download\mylist.txt"
del "C:\Users\Roman\Desktop\download\out*.mp4"
exit


    


    When trying either call, or start /wait, errors occur due to simultaneous execution :

    


    START /wait split.bat
START /wait startall2.bat
START /wait merge.bat


    


    So basically my question is, how can I call these 3 scripts and prevent merge.bat from starting, until all processes inside startall.bat have finished ?