Recherche avancée

Médias (91)

Autres articles (87)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (7586)

  • Anomalie #4343 (Fermé) : L’installation d’un plugin réussi alors que la table n’est pas créée

    8 mars 2021, par cedric -

    cf #4504 on ferme ici (duplicate)

  • Evolution #3969 (Nouveau) : _PROXY_HTTPS_VIA_CONNECT par défaut ?

    29 juin 2017, par guytarr °

    https://core.spip.net/projects/spip/repository/revisions/21363
    Par soucis de compatibilité il ne sera pris en charge qu’en cas de
    ```define(’_PROXY_HTTPS_VIA_CONNECT’,true) ;```
    dans le fichier mes_options.php. A voir si il faut rendre cette fonctionnalité activable par l’interface et/ou si elle doit être celle active par défaut.

    cf. le mail de Willy Destrez | Académie d’Amiens sur spip-zone

    Bonjour,
    

    après analyse du serveur récalcitrant, il manquait une déclaration dans le fichier mes_options.php

    define(’_PROXY_HTTPS_VIA_CONNECT’,true) ;
    Le serveur autonome est désormais capable d’ajouter un dépôt, de trouver les révisions dans Couteau Suisse et de faire fonctionner le spip_loader.

  • How to Terminate a Process Normally Created using ProcessBuilder

    22 avril, par Bilal Ahmed Yaseen

    I am creating Processes using ProcessBuilder in my Java Application. The created process executes some FFMPEG commands which actually copy the RTSP streams in specified destination media file.

    


    ProcessBuilder builder = new ProcessBuilder("ffmpeg", "-i", RTSP_URL, "-f", fileFormat, destFilePath);
Process processToExecute = builder.start();


    


    I want to close the process before it completes its execution. So, If I run this FFMPEG command directly in windows CMD and then press 'CTRL+C' after 5 seconds then process get terminates with status '2'. And I can play the media file created so far.

    


    So, If I do the same operation in my Java Application using :

    


     process.destroy(); //I call this method after 5 sec


    


    I get the status code '1' which means abnormal termination. I get the status by the following way :

    


     processToExecute.destroy();
 processToExecute.exitValue(); //This return me status '1'


    


    And I can't play the media file and I think this is due to the abnormal termination of the process.

    


    So how I can terminate the process created using ProcessBuilder in the same way we do in CMD with (CTRL+C) so that I may play the created media file ?

    


    I want to terminate process (created using ProcessBuilder) in Java Application with status code of '2' that I get when I terminate process using CMD.

    


    EDIT#01 : --- Sharing Findings

    


    So, when I try to delete that file once app terminates, I get the following error :

    


    The Action Can't be Performed Because File is Opened in FFMPEG.exe


    


    Which means that process is not terminating the command it is executing. That command still has occupied this file that's why I am not getting able to play it. Process gets terminate when I call :

    


     processToExecute.destroy();


    


    But, the task it is performing (that is execution of a command) is still active. Strange !!!!

    


    EDIT#02 : Sharing Ultimate Reason

    


    Actually If I directly press 'CTRL+C' or 'q' in cmd when process is running then it terminates the process successfully and this process is no more visible in the currently executing processes lists.

    


    And Programatically when I call method :

    


    cmd> processToExecute.destroy();


    


    It terminates the process but when I see the list of currently executing processes I can still see them over there.

    


    And same scenario exists If I try to terminate this process using 'taskkill' or 'kill' command in another CMD by specifying their's name or pid that still process terminates abnormally.

    


    P.S. I use the following command to see the running processes :

    


    tasklist


    


    So from this it proves that destroy() method from Application and 'taskkill or kill' command from another CMD is not terminating the process normally that pressing 'CTRL+C' and 'q' does.