Recherche avancée

Médias (91)

Autres articles (29)

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

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (4594)

  • Drawtext freezes

    22 août 2017, par Samhita vempatti

    I am trying to add text to a 1 hour long video but to a specified time only . I used this command from within python and used subprocess to run it.

      cmd="ffmpeg -y -i "+input_file+" -vf drawtext=enable=\'between(t,"+str(start)+","+str(end)+")\':fontfile=C\:\\\\\\\\ffmpeg\\\\\\\\arial.ttf\:text="+starttime+"\:x="+endtime+"\:y="+str(i[3][1])+" "+output.mp4
       print(cmd)
       p = subprocess.Popen(cmd.split(), shell=True,
                    stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
       output = p.communicate()[0]

    When I try running this the whole process freezes in the shell that is it prints the cmd and nothing happens

    ffmpeg -y -i C:\\moviepy-master\\moviepy-master\\lecture7.mp4 -vf drawtext=enable='between(t,300,1000)':fontfile=C\:\\\\ffmpeg\\\\arial.ttf\:text=helloworld\:x=200\:y=600 C:\\moviepy-master\\moviepy-master\\lecture7text.mp4,

    The whole process takes a very long time and the final video does not have the text at all .

  • concat string within ffmpeg subprocess check_call

    6 juillet 2012, par knishua

    need to replace filename in subprocess command i.e. filename

    filename = '\'D\:/imagesequence/thumbnail.jpg\''


    task = '\"movie= ' + filename + '[watermark]; [in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]\"'

    c = subprocess.check_call(["ffmpeg", "-i", "D :/imagesequence/background222.jpg", "-vf", task, "D :/imagesequence/fwtm108.jpg"],shell=True)

    this gives error

    # Error: CalledProcessError: Command '['ffmpeg', '-i', 'D:/imagesequence/background222.jpg', '-vf', '"movie= \'D\\:/imagesequence/thumbnail.jpg\'[watermark];[in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]"', 'D:/imagesequence/fwtm107.jpg']' returned non-zero exit status 1 #

    when put altogether it works well

    c = subprocess.check_call(["ffmpeg", "-i", "D:/imagesequence/background222.jpg", "-vf", "movie= 'D\:/imagesequence/thumbnail.jpg'[watermark]; [in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]", "D:/imagesequence/fwtm101.jpg"],shell=True)

    even this works

    task = "movie= 'D\:/imagesequence/thumbnail.jpg'[watermark]; [in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]"

    c = subprocess.check_call(["ffmpeg", "-i", "D:/imagesequence/background222.jpg", "-vf", task, "D:/imagesequence/fwtm102.jpg"],shell=True)

    any different view. I am not able to see it.

  • Using && in Windows FileAssociation Action Commandline

    31 août 2017, par GavinBrelstaff

    I can use the && conjunction from within a standard Windows CMD shell to run two commands on the same line as such :

    "C:\Program Files (x86)\ffmpeg\ffmpeg.exe" -i "%1" -write_xing 0 -ac 2 -ar 24000 -ab 48k -id3v2_version 3 -write_id3v1 1 "%1".mp3 && DEL /Q "%1"
    • by which I delete the input file after having successfully converted it into mp3 output file using ffmpeg

    But the same line of code crashes when I insert it in to the appropriate RegEdit location e.g. :

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Applications\foobar2000.exe\shell\mp3\command]
    @="\"C:\\Program Files (x86)\\ffmpeg\\ffmpeg.exe\" -i \"%1\" -write_xing 0 -ac 2 -ar 24000 -ab 48k -id3v2_version 3 -write_id3v1 1 \"%1\".mp3 && DEL /Q \"%1\" "

    while it worked fine before I added the trailing && clause. You run it by a right click context menu item.

    Is there any way to achieve this preferably without creating additional BAT/CMD files. I tried placing ( ) brackets around the entire line but then it seemed to change scope and no longer find the input file.