Recherche avancée

Médias (91)

Autres articles (110)

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (10582)

  • Combining multiple pcm files with different starting times

    18 juillet 2021, par BelMat

    How do I combine multiples pcm files, with different starting times and compress it into wav with ffpmeg.js.

    


    I know I can :

    


    Transform pcm to wav

    


    ffmpeg -f s16le -ac 2 -ar 44.1k -i file.pcm file.wav


    


    Merge files with different starting times :

    


    ffmpeg -i 1.mp4 -i 2.mp4 -i 3.mp4 -i 4.mp3
  -filter_complex "[2]adelay=10000|10000[s2];[3:a][1:a][s2]amix=3[a]"
  -map 0:v -map "[a]" -c:v copy result.mp4


    


    but how would I combine all of this inside JS, plus getting the files with FS (Node) and the starting time from the file name ?

    


    This is a small snippet where I tried to do all of this :

    


    function MakeAudioFile(){
    const audios = fs.readdirSync('./sound/').filter(file => file.endsWith(".pcm"));
    let result = ffmpeg({
        MEMFS: [],
        arguments: ["-f", "s16le", "-ac", "2", "--ar", "44.1k"],
    });
    audios.forEach(file =>{
        result.arguments.push('-i')
        result.arguments.push(file)
        result.MEMFS.push(fs.readFileSync(`./sound/${file}.pcm`))
    })
}


    


    But didn't get the expected result and had no idea on how to also add the starting time

    


  • How to add long text ffmpeg video

    13 février 2023, par Joe Cola

    I tried adding text in the middle of the video, but the results weren't what I wanted. namely long text out of line, how to make long text automatically into a new line below ?

    


    ffmpeg -i input.mp4 -vf "drawtext=fontfile=/path/to/font.ttf:text='I tried adding text in the middle of the video, but the results are not as desired,':fontcolor=white: fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2" -codec:a copy output.mp4

    


    i used that command, and the output like this

    


    output video

    


    Please help

    


    please help my problem

    


  • ffmpeg combining live video from 3 cameras

    18 juillet 2022, par annr

    I have 3 USB cameras streaming video at a specific resolution. I am trying to merge the videos together as an hstack and display using ffplay.

    


    This is the command I am using :

    


    ffmpeg -f dshow -pix_fmt uyvy422 -video_size 1280x2160 -i video="CAM_0" -f dshow -pix_fmt uyvy422 -video_size 1280x2160 -i video="CAM_1" -f dshow -pix_fmt uyvy422 -video_size 1280x2160 -i video="CAM_2" -filter_complex hstack=3 -f nut - | ffplay -


    


    The USB Camera system will only start video stream only when 3 cameras are enabled (or started by ffmpeg). However when I am using the above command, ffmpeg starts CAM_0 and waits for data. As a result CAM_1 and CAM_2 are not started and video stream does not start.

    


    Is there any way where I can start all 3 inputs simultaneously using ffmpeg and then merge them together using hstack ?

    


    Thanks !