Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (78)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • 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

Sur d’autres sites (4828)

  • 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

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

  • create image from video with ffmpeg

    1er juillet 2012, par Rajanikant Shukla

    I want to create image from video(.mpeg) file. i downloded ffmpeg and i put php_ffmpeg.dll to my /php/ext and rest of file in windows/system32 and i use following programm Please have look and told to create in step wise

    <?php

        function ExtractThumb($in, $out)
         {
              $thumb_stdout;
              $errors;
           $retval = 0;

    // Delete the file if it already exists
    if (file_exists($out)) { unlink($out); }

    // Use ffmpeg to generate a thumbnail from the movie
    $cmd = "ffmpeg -itsoffset -4 -i $in -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 $out 2>&1";
    exec($cmd, $thumb_stdout, $retval);

    // Queue up the error for processing
    if ($retval != 0) { $errors[] = "FFMPEG thumbnail generation failed"; }

    if (!empty($thumb_stdout))
    {
       foreach ($thumb_stdout as $line)
       {
           echo $line . "
         \n";
       }
    }

    if (!empty($errors))
    {
       foreach ($errors as $error)
       {
           echo $error . "
      \n";
       }
           }
             }


           $in="D:\Video\handycam\guria marriage\HANDYCAM VIDIEO\M2U00233.mpeg";
          $out="D:\Video\handycam\guria marriage\HANDYCAM VIDIEO";

                ExtractThumb($in, $out);
              ?>