Recherche avancée

Médias (91)

Autres articles (31)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (5545)

  • Revision ad479a9b3d : multi-res : modify memory allocation code Reverted part of change in memory alll

    23 mai 2012, par Yunqing Wang

    Changed Paths : Modify /vp8/vp8_cx_iface.c multi-res : modify memory allocation code Reverted part of change in memory alllocation code, which ensures that the function returns 0 and encoder works correctly when CONFIG_MULTI_RES_ENCODING isn't turned on. Change-Id : (...)

  • How to run a ffmpeg command in python with file paths containing spaces ?

    21 juillet 2023, par tomatochan

    I'm developing a program in Python that requires the use of FFMPEG. In one step, I need to create a video from a text file containing the list of images (path and duration) that need to be assembled to make a video. To do this, I use the following code :

    


    cmd = [ffmpeg, "-y", "-f", "concat", "-safe", "0", "-i", tmp, "-c:v", "libx264", "-r", "25", "-pix_fmt", "yuv420p", out]
subprocess.run(cmd)
# os.system(" ".join(cmd)) # returns same error


    


    What returns the error : The syntax of the file, directory or volume name is incorrect.

    


    I know that paths can be problematic when they contain spaces, and as my username has one, I've taken care to quote the paths in such a way that :

    


    ffmpeg = "C:\Users\John Doe\Documents\ffmpeg\bin\ffmpeg.exe"
tmp = "C:\Users\John Doe\Desktop\path\to\file.txt"
out = "C:\Users\John Doe\Desktop\path\to\video.mp4"


    


    When I print(" ".join(cmd)), this is what I get in my terminal :

    


    "C:\Users\John Doe\Documentsffmpeg\binffmpeg.exe" -y -f concat -safe 0 -i "C:\Users\John Doe\Desktop\path\to\file.txt" -c:v libx264 -r 25 -pix_fmt yuv420p "C:\Users\John Doe\Desktop\path\to\video.mp4"


    


    However, the problem persists.
Has anyone ever had this problem and managed to solve it ?

    


    I've also tried the method where you have to escape the spaces (taking care to replace the \ with / and then the with \ ) but nothing works... The error persists.

    


    For your information, here are the contents of one of my .txt files

    


    file C:\Users\John Doe\Desktop\path\to\image_1.png
duration 0.04
file C:\Users\John Doe\Desktop\path\to\image_2.png
duration 0.04
file C:\Users\John Doe\Desktop\path\toimage_3.png
duration 0.04


    


    When I quote the paths in the .txt files

    


      

    • subprocess gives me the error :
PermissionError: [WinError 5] Access denied
    • 


    • os.system gives me the error :
    • 


    


    C:\Users\John' is not recognized as an internal or external command, an executable program or a command file.
The syntax of the file, directory or volume name is incorrect.


    


  • How to set the value of an arbitrary pixel in ffmpeg ?

    14 mai 2017, par Neb

    I want to modify the rgb value of each pixel inside ffmpeg.

    I need to implement the following function :

    A[x + expr_1][y] = expr_2

    where x and y are the current sampled pixel, A is the input frame whose pixel need to be modified and expr_1, expr_2 are two independent expressions.

    I tried using the geq filter but it seems there no way to set the value of a pixel other than from that currently sampled. For istance, the function p(x,y) only returns the value of the pixel at the specified location, but doesn’t allow to set a value for that pixel. In other word, ffmpeg seems allowing only something like :

    A[x][y] = expr

    Is there a way to tell ffmpeg to set the value of a specific pixel ?

    Thanks for your time.