Recherche avancée

Médias (91)

Autres articles (98)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (11036)

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

  • subprocess ffmpeg multiple drawtext

    6 juillet 2012, par knishua

    stuck here, how is it possible to pass multiple parameters in ffmpeg via subprocess

    1. this command works in 'cmd'

      ffmpeg -threads 8 -i D :/imagesequence/background.jpg -vf "movie='D~:/imagesequence/thumbnail.jpg' [watermark] ; [in][watermark] overlay=(main_w-overlay_w)/2 :(main_h-overlay_h)/3[water] ;[water] drawtext=fontsize=32:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='shotName':x=(w)/2:y=(h)-50,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Notes ~:':x=(w)/5:y=(h)-90,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Frame Range ~:':x=(w)/5:y=(h)-130,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Lens ~:':x=(w)/5:y=(h)-170,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Undistortion ~:':x=(w)/5:y=(h)-210,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Image Sequence ~:':x=(w)/5:y=(h)-250,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Date ~:':x=(w)/5:y=(h)-290,drawtext=fontsize=28:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text='Element Name ~:':x=(w)/5:y=(h)-330,drawtext=fontfile=/Windows/Fonts/arial.ttf:text='FUTUREWORKS':x=130:y=200:fontsize=54:fontcolor=White[out]" D :\imagesequence\dpx\brn_055.0000.dpx

    2. when trying thru subprocess it fails. instead of trying the whole of it, tried

      thj = "D~:/imagesequence/thumbnail.jpg"
      paramd = "movie='%s'[watermark] ;[in][watermark]overlay=(main_w-overlay_w)/2 :(main_h-overlay_h)/3[water] ;[water]drawtext=fontsize=32:fontcolor=White:fontfile=/Windows/Fonts/arial.ttf:text=\'shotName\':x=(w)/2:y=(h)-50[out]" % thj
      subprocess.check_call(["ffmpeg", "-threads", "8", "-i", "D :/imagesequence/background.jpg", "-vf", paramd ,"D :/imagesequence/dpx/brn_055.0000.dpx"], shell=True)

    This is only putting 1 text instead of 5 text on the screen

    any different view on this. how to successfully run this command

  • Watermark in video with ffmpeg Center-Top

    24 juillet 2013, par user2100830

    i currently have 2 commands where i can select to put my watermark top-left or top-right of the video but i also have a watermark,which i wish to put in center-top,but i could only put it in center of the video,can someone pease help me with putting the waternmark on center top of the video ? here's what im using

    $watermark = '-vf "movie='.$text_logo_path.' [watermark]; [in][watermark] overlay=10:main_h/2-overlay_h/2 [out]"

    how can i get it to be in Top-Center ?