Recherche avancée

Médias (0)

Mot : - Tags -/flash

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (31)

  • 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 (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

Sur d’autres sites (5342)

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

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