Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (101)

  • Les sons

    15 mai 2013, par
  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (11195)

  • How can I concatenate different videos while maintaining the original display and aspect ratio ?

    11 décembre 2019, par Lauren

    Is it possible to concatenate different videos with different aspect ratio into a single video ? And also in the end the final video would maintain the original aspect ratio of each part.

    I’ve tried the following FFmpeg command :

    ffmpeg -i 1.mp4 -i 2.mp4 -y -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=unsafe=1:n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" out.mp4

    I’m using unsafe=1 which almost works.

    The only issue is that some videos stretch.
    So, how can I concatenate different videos while maintaining the original display and aspect ratio ?

  • PyGTK ProgressBar to display something before subprocess starts

    27 juillet 2016, par philipyassin

    I’m trying to get gtk.ProgressBar.set_text('Text') to work when I click on a button, prior to launch my subprocess.

    Here is my code (full source here) :

    def on_button_clicked(self, button, progress_bar, filename):
     self.execute(progress_bar, filename)

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

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

     process = sp.Popen(cmd, stdout=sp.PIPE, stderr=sp.PIPE)

     process.wait()

     progress_bar.set_text('Done')

    I tried moving progress_bar.set_text('Encoding') in on_button_clicked() but it doesn’t change anything : I click the button, the job is done (the file is duly produced and OK) and only then the progress bar says "Done".

    I did my homework and read all related questions, but they either don’t use subprocess, or parse "regular" command outputs.

  • Revision 78027 : deux display ne fait pas un double display

    6 novembre 2013, par maieul@… — Log

    deux display ne fait pas un double display