Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (75)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (10568)

  • lavfi : store and propagate number of channels information in audio buffer properties

    30 juillet 2012, par Stefano Sabatini

    lavfi : store and propagate number of channels information in audio buffer properties

  • Revision 17039 : no-store interdit aux navigateurs de conserver le contenu de la saisie dans un fo...

    29 janvier 2011, par cedric -
  • Kill a process started by exec() after some duration and store frames in an array

    19 février 2013, par asprin

    Let me start off by saying that I'm completely new to Java. I'm from PHP background, but it so happens that one of my PHP tasks need to be converted into Java.

    The task is splitting a video into frames using ffmpeg and then working with those frames. I've completed this process in PHP. And now I can to convert it into Java.

    I went over some tutorials and have got the bases covered (Using IDE, Running a java program etc). I'm using Eclipse for this purpose.

    I've so far managed to start ffmpeg from withing a java program by using

    public static void main(String[] args) throws IOException {

       String livestream = "D:/video.mpg";
       String folderpth = "D:/frames";
       String cmd="D:/ffmpeg/bin/ffmpeg.exe -i "+ livestream +" -r 10 "+folderpth+"/image%d.jpg";

       //System.out.println(cmd);
       Runtime r = Runtime.getRuntime();
       Process p = r.exec(cmd); // this starts creating frames
      // and stores them on local disk
      // any way to store that frame name in array?
      // something like String[] frames = {"image%d.jpg"}
      // so that frames array contains image1.jpg, image2.jpg..and so on?

    }

    This is working fine, I'm getting the frames in the folder. Now what I want to do is kill the process after some, say 5 minutes, as the video is over 2 hours long and I don't want to have to go to the taskbar and kill the process manually. I also would like to know if there is a way to store the frame names created by ffmpeg into an array for future use.

    I tried using p.destroy() but that didn't stop the process at all. How would I go about using something similar like setTimeout() which is used in jQuery ?

    Some Metadata

    OS : Windows 7

    IDE : Eclipse