Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (14984)

  • Python - saving movie with ffmpeg - alternative syntax

    12 octobre 2016, par Honigdachs

    I want to save a real time plot using ffmpeg using a common python syntax below :

    with writer.saving(fig, "anim.mp4", 100):
       ...
       ...
       writer.grab_frame()

    Question : Is there an alternative way like possible for saving file in python ?

    Instead of using the code above, similar to :

    with open('Failed.py', 'w') as file:
       file.write('whatever')

    I would like to use for saving the movie something similar to :

    file = open('Failed.py', 'w')
    file.write('whatever')
    file.close()
  • ffmpeg dont work in php shell_exec("ffmpeg -i $movie $pic &")

    26 septembre 2016, par josef

    I’m running the following script without any problems :

    <?php
    echo $video  = dirname(__FILE__)."\\MOVIES\\1.mp4";
    echo "<br />";
    echo $pic  = dirname(__FILE__)."\\PICTURES\\1.jpg";
    echo shell_exec("ffmpeg -i  $video  $pic &amp;");

    But when I run this one i get nothing :

    echo shell_exec("ffmpeg -i  C:\xampp\htdocs\Video-share-script\MOVIES\1.mp4  C:\xampp\htdocs\Video-share-script\PICTURES\1.jpg &amp;");

    the value of $video is C :\xampp\htdocs\Video-share-script\MOVIES\1.mp4
    and $pic is C :\xampp\htdocs\Video-share-script\PICTURES\1.jpg
    thank you

  • create multiple movie thumbnails using ffmpeg (one at a time) failing

    2 septembre 2013, par Christopher Johnson

    I'm using this small bit of code to create thumbnails of videos being uploaded to my site :

    public static void GetThumbnail(string video, string thumbnail)
    {
       var cmd = "ffmpeg  -itsoffset -1  -i " + &#39;"&#39; + video + &#39;"&#39; + " -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 " + &#39;"&#39; + thumbnail + &#39;"&#39;;
       var startInfo = new ProcessStartInfo
       {
           WindowStyle = ProcessWindowStyle.Hidden,
           FileName = "cmd.exe",
           Arguments = "/C " + cmd
       };

       var process = new Process
       {
           StartInfo = startInfo
       };

       process.Start();
    }

    I'm uploading the videos one at a time asynchronously. The first video thumbnail gets created just fine, but each subsequent one does not get created. I've noticed that if I try to delete subsequent videos from the file system, it says it can not delete them because they are in use by ffmpeg. I can delete the first one that finished processing just fine. I have to kill the ffmpeg process from task manager for all of the others that it's holding open. Why is ffmpeg only working the first time through and then holding the video's open in an open process afterwards ?

    I also tried creating multiple thumbnails one at a time from the command prompt and that worked fine (the process does not stay open either).

    What am I missing in my c# code to make sure the process finishes, and then terminates ?