Recherche avancée

Médias (91)

Autres articles (44)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

Sur d’autres sites (6081)

  • How to Terminate a Process Normally Created using ProcessBuilder

    30 janvier 2015, 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.

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

    


  • I need a to keep a PHP process running in background even If I redirect to another URL

    24 mai 2018, par Emmanuel Fernandez

    I have a PHP App that execute FFMPEG commands to encode videos and then upload encoded video to YouTube using Youtube v3 API.

    I’m using shell_exec to perform FFMPEG actions and works very well.The problem it’s that I use an AJAX call to start the whole process and I need to keep the user in the the page where I execute the AJAX call, my intention is execute the AJAX call to start the whole process and inmediatly redirect the user to another page, The problem is that when I redirect to another page the PHP process is interrumped, there are any form to execute AJAX call, redirect and keep the PHP process running in background ?