Recherche avancée

Médias (91)

Autres articles (77)

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

  • 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 (9535)

  • dca : Respect the current limits in the downmixing capabilities

    10 juillet 2013, par Luca Barbato
    dca : Respect the current limits in the downmixing capabilities
    

    Reported-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC : libav-stable@libav.org

    • [DBH] libavcodec/dcadec.c
  • node ffmpeg programmatically built list(?) of commands

    16 mai 2022, par Martin

    I am working on a ffmpeg wasm project and I have it working with this code :

    


            await ffmpeg.run(
            '-loop', '1',
            '-framerate', '2',
            "-i", inputFileNames[0], 
            "-i", inputFileNames[1],
            "-i", inputFileNames[2],
            "-c:a", "libmp3lame", 
            "-b:a", "320k", 
            "-filter_complex", "concat=n=2:v=0:a=1",
            "-vcodec", "libx264", 
            "-bufsize", "3M", 
            "-filter:v", "scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2", 
            "-crf", "18", 
            "-pix_fmt", "yuv420p", 
            "-shortest", "", 
            "-tune", "stillimage", 
            "-t", "13", 
            outputFileName
        );


    


    https://github.com/MartinBarker/ffmpeg-wasm-node

    


    As you can see, the await ffmpeg.run() command takes a list of args / vars to run.
I have it statically set to take three file inputs right now (-i) but I need to have these inputs set dynamically for however many strings are inside the inputFileNames[] list.

    


    I've tried giving await ffmpeg.run(myListArgs) a var containing a list of the same args but that does not work but this causes an error as it only runs the last var outputFIlename so this below does not work :

    


            let ffmpegArgs=('-loop', '1',
        '-framerate', '2',
        "-i", inputFileNames[0], 
        "-i", inputFileNames[1],
        "-i", inputFileNames[2],
        "-c:a", "libmp3lame", 
        "-b:a", "320k", 
        "-filter_complex", "concat=n=2:v=0:a=1",
        "-vcodec", "libx264", 
        "-bufsize", "3M", 
        "-filter:v", "scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2", 
        "-crf", "18", 
        "-pix_fmt", "yuv420p", 
        "-shortest", "", 
        "-tune", "stillimage", 
        "-t", "13", 
        outputFileName)

        await ffmpeg.run(
            ffmpegArgs
        );


    


    I've tried to include multiple inputs in one line like so but it results in an error :

    


    
        await ffmpeg.run(
            '-loop', '1',
            '-framerate', '2',
            `-i ${inputFileNames[0]} -i ${inputFileNames[1]} -i ${inputFileNames[2]}`,
            "-c:a", "libmp3lame", 
            "-b:a", "320k", 
            "-filter_complex", "concat=n=2:v=0:a=1",
            "-vcodec", "libx264", 
            "-bufsize", "3M", 
            "-filter:v", "scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2", 
            "-crf", "18", 
            "-pix_fmt", "yuv420p", 
            "-shortest", "", 
            "-tune", "stillimage", 
            "-t", "13", 
            outputFileName
        );

[fferr] Unrecognized option 'i input-file-0 -i input-file-1 -i input-file-2'.
[fferr] Error splitting the argument list: Option not found
[ffout] FFMPEG_END


    


    I've tried having only the inputs as a list, and using the ... to expand it inside the function call but that causes an error as well as the commas are included in the command (which they shouldnt be)

    


            let ffmpegInputs=[
            "-i", inputFileNames[0], 
            "-i", inputFileNames[1],
            "-i", inputFileNames[2]
        ]
        await ffmpeg.run(
            '-loop', '1',
            '-framerate', '2',
            [...ffmpegInputs],
            "-c:a", "libmp3lame", 
            "-b:a", "320k", 
            "-filter_complex", "concat=n=2:v=0:a=1",
            "-vcodec", "libx264", 
            "-bufsize", "3M", 
            "-filter:v", "scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2", 
            "-crf", "18", 
            "-pix_fmt", "yuv420p", 
            "-shortest", "", 
            "-tune", "stillimage", 
            "-t", "13", 
            outputFileName
        );

[info] run ffmpeg command: -loop 1 -framerate 2 -i,input-file-0,-i,input-file-1,-i,input-file-2 -c:a libmp3lame -b:a 320k -filter_complex concat=n=2:v=0:a=1 -vcodec libx264 -bufsize 3M -filter:v scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2 -crf 18 -pix_fmt yuv420p -shortest  -tune stillimage -t 13 cool-output-video.mp4
TypeError: a.charCodeAt is not a function


    


    How can I create my ffmpeg args dynamically to work for any number of inputs ?

    


  • doc/mailing-list-faq : Mention current problem with GMX

    2 mai 2020, par Michael Niedermayer
    doc/mailing-list-faq : Mention current problem with GMX
    

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] doc/mailing-list-faq.texi