Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (71)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (4390)

  • How to overlay two video files including audio of each video using ffmpeg"

    11 janvier 2023, par user255048

    i would like to merge some music (video file) and singing (video file) into one video file.

    


    i've tried with this :

    


    ffmpeg -i music.mp4 -itsoffset 2 -i sing01.mp4 -filter_complex  overlay=635:300 test.mp4


    


    and everything is fine, except that i cannot hear the singing. what i should add to this command to do the job correctly ?

    


    thanks

    


  • Turn an FFmpeg command into an FFmpeg wasm exec function

    30 novembre 2024, par SeriousLee

    I have this gnarly FFmpeg command :

    


    ffmpeg -i music.mp3 -i video.mp4 -i speech.mp3 -filter_complex "[0:a]atrim=0:$(ffprobe -i speech.mp3 -show_entries format=duration -v quiet -of csv=p=0),volume=0.08[trimmed_music]; [2:a]volume=2[speech]; [1:v]loop=-1,trim=duration=$(ffprobe -i speech.mp3 -show_entries format=duration -v quiet -of csv=p=0),setdar=9/16[vout]; [trimmed_music][speech]amix=inputs=2:duration=first[aout]" -map "[vout]" -map "[aout]" -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 192k final_output.mp4


    


    What it does is :

    


      

    • Get the duration of a speech.mp3 file
    • 


    • Crop a video.mp4 to portrait dimensions
    • 


    • Trim a longer music.mp3 file to the duration of the speech
    • 


    • Loop a the video and trim the final loop so that the whole thing matches the duration of the speech
    • 


    • Adjust the volume of the music and speech
    • 


    • Combine them all into a single video with talking (speech) and music
    • 


    


    I can't figure out how to run it using the FFmpeg wasm. I realise ffprobe isn't a thing with the wasm so we'll have to find a different way to get the duration of the speech.mp3 by probably breaking it up into 2 or more exec functions, but I have no idea how to do that, which is why I'm here asking for help.

    


    For reference, here's the function into which I want to insert this exec function, but feel free to change it however needed. And let me know if I need to provide more information.

    


      const processVideo = async (speech, video, music) => {
    const ffmpeg = new FFmpeg();

    // ffmpeg loading code goes here, assume that part works without issue

    await ffmpeg.writeFile("video.mp4", new Uint8Array(video));
    await ffmpeg.writeFile("speech.mp3", new Uint8Array(speech));
    await ffmpeg.writeFile("music.mp3", new Uint8Array(music));

    await ffmpeg.exec([
      // command(s) should go here
    ]);

    const fileData = await ffmpeg.readFile("final_output.mp4");
    const blob = new Blob([fileData.buffer], { type: "video/mp4" });
    const blobUrl = URL.createObjectURL(blob);

    return blobUrl;
  };


    


  • Anomalie #2467 : droits du rédacteur

    4 novembre 2013, par Suske -

    Suite au retour irc, je reformule :

    - éditer le logo d’un site publié si on est rédacteur, c’est pas normal => bug
    - éditer un site proposé si on est rédacteur et que les rédacteurs ne peuvent pas proposer, c’est pas normal => bug

    De manière générale, comme le site est "proposé" dès la validation, même si les rédacs peuvent proposer des sites, ils ne doivent pas pouvoir modifier les proposés, par analogie avec les articles.