Recherche avancée

Médias (1)

Mot : - Tags -/embed

Autres articles (58)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (9050)

  • ffprobe failed to execute command

    31 août 2020, par Ted Bed

    I'm trying to get a frame from a video in a temp location but I get an error like this :

    


    Uncaught Alchemy\BinaryDriver\Exception\ExecutionFailureException: ffprobe failed to execute command '/usr/bin/ffprobe' '/tmp/phpfwEh9u' 


    


    Which is weird because I have another script that does the exact same thing but there is no error. Are there any reasons for why this could be happening ? Could there be any factors causing this in my script :

    


    $sec = 1;
$movie =  $filentmpname;
$thumbnail = 'thumbnail_uploads/' . $imfileid;

$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open($movie);
$frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds($sec));
$frame->save($thumbnail);


    


  • Calling ffmpeg from subprocess.run and refering to specific directory

    27 décembre 2018, par Akalyn

    I’m trying to compile images contained in a given directory D into an mp4 video from a python script. I decided to use ffmpeg and hence called it through
    subprocess.run().

    When I issue the following command from another directory than D :

    ffmpeg -framerate 30 -pattern_type glob -i 'path/to/D/*.jpg' -vcodec libx264 -y movie.mp4

    it works fine.

    The same thing happens when I issue the command from the python script with the shell=True option :

    subprocess.run(" ".join(["ffmpeg", "-framerate", "30", "-pattern_type", "glob", "-i", "'path/to/D/*.jpg'", "-vcodec", "libx264", "-y", "movie.mp4"]), shell=True)

    However I know that relying on shell=True is not recommended. I tried using subprocess.run without that option :

    subprocess.run(["ffmpeg", "-framerate", "30", "-pattern_type", "glob", "-i", "'path/to/D/*.jpg'", "-vcodec", "libx264", "-y", "movie.mp4"])

    but it resulted in the following error :

    'path/to/D/*.jpg': No such file or directory.


    Why does the call to ffmpeg fail when calling it through subprocess.run with shell=False option ?

  • FTP Video Upload and Thumbnail Rotation Issue

    25 juin 2018, par Bits Please

    I am uploading video using ffmpeg command. I am then creating then thumbnail. I want to rotate video, how can I achieve this ?

    Here is my Code :

       $thumbnail_name =  preg_replace('"\.(mp4|avi|flv|vob|oggg)$"', '.jpg', $newfilename);

    $movie = "/home/foldername/public_html/master/assets/user_videos/".$newfilename;

    $thumbnail = "/home/foldername/public_html/master/assets/user_videos/".$thumbnail_name;

    $command = '/usr/bin/ffmpeg -y -ss 00:00:01 -i '.$movie.' -f image2 -vframes 1 '.$thumbnail.' 2>&1';