Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (104)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (10180)

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

    


  • Some last copyright year updates and change to open bug list

    26 novembre 2014, par Martijn van Beurden
    Some last copyright year updates and change to open bug list
    

    This updates one rather important mention of the copyright year
    (the encoding/decoding progress display) and a few in the
    documentation. Furthermore, it updates the open bug list

    Signed-off-by : Erik de Castro Lopo <erikd@mega-nerd.com>

    • [DH] doc/html/documentation_bugs.html
    • [DH] doc/html/faq.html
    • [DH] doc/html/id.html
    • [DH] src/flac/main.c
  • Revision 9ab47772bd : Update README - new date - add VP9 to the title - update list of available targ

    2 août 2013, par Paweł Hajdan

    Changed Paths :
     Modify /README



    Update README

    - new date
    - add VP9 to the title
    - update list of available targets

    Change-Id : I56263336db393020bac5da8e42fbac3a276ffb1f