Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (64)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (12312)

  • Passing commands with double quotes to subprocess.call in python

    7 juin 2018, par Georgе Stoyanov

    I want to pass a command to a Linux machine running ffmpeg using python containing a double quotes. That’s my script :

    drawtext = "drawtext=\"fontfile=DejaVuSans: text='Random Name': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=20: y=20\""
    subprocess.call(["ffmpeg", "-v", "error", "-i", input.mp4, "-vf", drawtext, output.mp4])

    If I print the drawtext variable this is the output :

    drawtext="fontfile=DejaVuSans: text='Reference Image': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=20: y=20"

    And this is my error in ffmpeg :

    [Parsed_drawtext_0 @ 0x564ad79f99c0] [Eval @ 0x7ffd41131810] Invalid chars '"' at the end of expression '20"'
    [Parsed_drawtext_0 @ 0x564ad79f99c0] Failed to configure input pad on Parsed_drawtext_0
    Error reinitializing filters!
    Failed to inject frame into filter network: Invalid argument
    Error while processing the decoded data for stream #0:0

    If I execute the following command in Linux shell it works just fine :

    $ ffmpeg -ss 10 -i input.mp4 -vf drawtext="fontfile=DejaVuSans: text='Random Name': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=20: y=20" output.mp4
  • Slow execution of cuCtxDestroy causing Windows desktop freeze [closed]

    24 avril 2024, par sun

    I’m encountering a problem with the cuCtxDestroy function that seems to be causing my system to freeze and result in a black screen. I’m running Windows 11 on my computer, and I would appreciate any assistance in troubleshooting this issue.

    


    When I call cuCtxDestroy, it takes more than 10 seconds to complete, during which both the GPU and CPU appear to be stuck. Eventually, the screen goes black, and in some cases, the system may recover, while in other cases, it requires a system reboot.

    


    Here is some information about my system :

    


      

    • Integrated Intel graphics card

      


    • 


    • NVIDIA GeForce GTX 1650

      


    • 


    • Driver Version : 546.65

      


    • 


    • CUDA Version : 12.3

      


    • 


    • Windows 11

      


    • 


    


    cuda profile image

    


  • How to insert images and text in video with ffmpeg whit java

    4 février 2017, par MaF
    String[] code = new String[]{"ffmpeg", "-i","D:/ffmpeg/20170201_164127.mp4",

               "-i","D:/ffmpeg/cc.png", "-filter_complex",

               "[0:v][1:v]overlay=main_w-overlay_w-5:main_h-overlay_h-5",
               "drawtext=fontfile=/ffmpeg/Arial.ttf:text='TESTING'fontcolor=white@1.0:fontsize=70:x=10:y=H-th-10:box=1:boxcolor=black@0.5:boxborderw=5:x=10:y=H-th-10",

               "[out]","-map", "[out]", "-map", "2:0",
               "-acodec","mp3", "D:/ffmpeg/test7.mp4"};



               Process processDuration = new ProcessBuilder(code).redirectErrorStream(true).start();

               StringBuilder strBuild = new StringBuilder();

               try (BufferedReader processOutputReader = new BufferedReader(new InputStreamReader(processDuration.getInputStream(), Charset.defaultCharset()));) {

                   String line;

                   while ((line = processOutputReader.readLine()) != null) {

                       strBuild.append(line + System.lineSeparator());

                   }

                   processDuration.waitFor();

               }

               String outputJson = strBuild.toString().trim();

               System.out.println(outputJson);

               }

    When i use only images the code is correctly. But when I use all the code this happens :

    [NULL @ 00000000006abe60] Unable to find a suitable output format for
    ’drawtext=fontfile=/ffmpeg/Arial.ttf:text=’TESTING’fontcolor=white@1.0:fontsize=70:x=10:y=H-th-10:box=1:boxcolor=black@0.5:boxborderw=5:x=10:y=H-th-10’
    drawtext=fontfile=/ffmpeg/Arial.ttf:text=’TESTING’fontcolor=white@1.0:fontsize=70:x=10:y=H-th-10:box=1:boxcolor=black@0.5:boxborderw=5:x=10:y=H-th-10 :
    Invalid argument