Recherche avancée

Médias (91)

Autres articles (47)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

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

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

Sur d’autres sites (7726)

  • Converting bin&amp format to mp4 with ffmpeg fails

    31 octobre 2017, par Vincent

    I am trying to download videos from Wistia and I managed to download them but in .bin&amp format ; I’d like to convert them to .mp4 in order to use OpenCV. For this I am calling ffmpeg with subprocess on Python but I get 1 as the value for the return code, meaning the process has failed. Any idea why, and how I can change this...?

    Code is the following :

    import subprocess

    infile = filename #a bin&amp file
    outfile = filename[:-7]+'mp4'

    subprocess.run(['ffmpeg', '-i', infile, outfile],shell=True)

    I get :

    CompletedProcess(args=['ffmpeg', '-i', '58c63bccfcc1c150646c261caad97a58ced4b5e3.bin&amp', '58c63bccfcc1c150646c261caad97a58ced4b5e3.mp4'], returncode=1)

    Also, it works in the command prompt...

    Thank you for your help,

    Sincerely,

  • Python subprocess : Know when a command has finished

    29 juin 2016, par xaccrocheur

    I need a way to know when ffmpeg has finished its work. Here is my code :

    def on_button_clicked(self, button, progress_bar, filename):
     self.execute(progress_bar, filename)
     progress_bar.set_text('Encoding')
     progress_bar.pulse()

    def execute(self, progress_bar, filename):

     cmd = ['ffmpeg', '-y',
            '-i', filename,
            '-r', '30',
            '/tmp/test-encode.mkv']

     process = sp.Popen(cmd, stdin=open(os.devnull))

     progress_bar.set_text('Done')

    The ’Done’ never shows up. The job is done, though. I can see in the shell window that ffmpeg is done. How can I get the signal ?

  • Shall_exec() is not working in Cent OS 6.5 with php 5.5

    5 décembre 2014, par hitesh

    It is the follow up from the question here. I was not sure if it was good idea to edit that question, So I am asking a new question here

    As explained in my previous question I am using ffmpeg for getting screenshot from video.it seems to working fine in my local but in my Cent OS 6.5 server it is not working, it throws error that
    ffmpeg extension is not enabled.

    "Error in Loading ffmpeg"

    To debug this, I commented the line

     extension_loaded('ffmpeg') or die('Error in loading ffmpeg');

    and I found out that in Cent OS terminal, ffmpeg command were working but if I use it with full path as I am doing in windows it did not work.So i deleted full path and used ffmpeg alone, I am not sure what was the reason behind this.

    Here is my new command

     $cmd = "ffmpeg -i $vid -an -ss $getfromsecond -s $size -vframes 1 $imageFile";
       $cmd2 = "ffmpeg -i $remoteVideo -an -ss $getfromsecond -s $size -vframes 1 $imageFile2 ";
       echo $cmd ."<br />";
       echo $cmd2."<br />";
    exec($cmd, $output, $return);
    echo '$output :' ; print_r($output); echo "<br />";echo '$return' . $return . "<br />";

    if ($return != 0) {
       // an error occurred
       echo "Error in EXEC command ";
    }

    if(!shell_exec($cmd2)){
       echo "Remote video Thumbnail created". "<br />";
    }else{
       echo "Error Creating Remote video thumbnail". "<br />";
    }

    now again it was not working in server, but when I tried both command

    `     echo $cmd ."<br />";

           echo $cmd2."<br />";`

    in dev terminal, it got executed successfully I could see the screenshot.

    So while searching for the problem, I found this question here based on this answer here. I understood that some server may not allow it so I checked it.

    if (isEnabled('shell_exec')) {
       echo "Shell_exec is enabled "."<br />";
       shell_exec('echo "hello world"');
       echo "<br />";
    }else{

       echo "shell exec command is not allowed";
    }

    I got the output "Shell_exec is enabled " but shell_exec('echo "hello world"'); does not seems to work, Also when I run the command directly in terminal it works.

    Help me find the issue here, is it issue with shall_exec() or something else ?

    Any help is appreciated. Thanks