Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (73)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (7543)

  • Révision 17377 : chargement js du date picker et time picker, renommage sans majuscule.

    12 mars 2011, par cedric -

    Mais on va y revenir

  • ffmpg - Overlay merged video from a bunch of small videos on another video

    31 août 2022, par Krishna Chebrolu

    I have a situation where 3-4 small 5secs video clips to be merged and placed at a specific point in time of another video within a fixed frame of 800x600.

    


    For example, main video is of 40 secs of 1280x720 resolution and have 4 small clips of 5 secs each to be placed in a frame of 800x600 from 10 to 30 secs one after the other (or) merge them before placing within the frame.

    


    I tried multiple filters and failing to get the required output.

    


    ffmpeg -y -i bg.mp4 -i c0.mp4 -i f.mp4 -filter_complex "split [main][tmp]; [tmp][1:v][1:a][2:v][2:a]concat=n=2:v=1:a=1[tmp1]; [main][tmp1] overlay=enable='between(t,10,24)':x=50:y=50[v]; [v]drawtext=enable='between(t,26,29)':font='DejaVu Serif':text='Kris Cheb':x=(w-tw)/2:y=((h-text_h)/4): fontsize=80: fontcolor=white, drawtext=enable='between(t,27,29)':text='Awesome Work..':x=(w-tw)/2:y=(((h-text_h)/3)+20): fontsize=38: fontcolor=white, drawtext=enable='between(t,27,29)':text='Congratulations!!':x=(w-tw)/2:y=(((h-text_h)/2)+10): fontsize=38: fontcolor=white"[v] -map [v] out.mp4


    


    Of course, in the above command, I'm yet to add scale with force_original_aspect_ratio=decrease filter and associated attributes.

    


    Could someone please suggest how to achieve this with ffmpeg ?

    


    Thanks

    


    [EDIT-1] :

    


    To overcome this issue, as an alterative, I had split bg.mp4 into multiple segments intro.mp4, outro.mp4 & frame.png and concatenated them with the following command, which is working fine. Of course, there is slight deviation from original requirement of placing c0.mp4 & f.mp4 as overlay in the middle segment and now frame.png is being used as overlay on these middle segment clips.

    


    ffmpeg -y -i intro.mp4 -i c0.mp4 -i f.mp4 -i outro.mp4 -i frame.png &#xA;-filter_complex "[0:v][0:a][1:v][1:a][2:v][2:a][3:v][3:a]concat=n=4:v=1:a=1[vv][a];&#xA;[vv][4:v]overlay=enable=&#x27;between(t,4,16)&#x27;:x=0:y=0[v];&#xA;[v]drawtext=text=&#x27;NAME&#x27;: font=&#x27;Serif&#x27;:fontsize=70: fontcolor=white: x=((w-tw)/2):y=(((h-text_h)/4)&#x2B;10):enable=&#x27;between(t,16,20)&#x27;, &#xA;drawtext=text=&#x27;TEXT2&#x27;:font=&#x27;Serif&#x27;:fontsize=40: fontcolor=black:x=((w-tw)/2): y= ((h/2)&#x2B;30):enable=&#x27;between(t,16,20)&#x27;,&#xA;drawtext=text=&#x27;<text3>&#x27;:font=&#x27;Serif&#x27;:fontsize=40: fontcolor=black:x=((w- &#xA;tw)/2):y=((h/2)&#x2B;70):enable=&#x27;between(t,16,20)&#x27;[v]" -vsync 2 -map &#xA;[v] -map [a] out.mp4&#xA;</text3>

    &#xA;

    But, need help in replacing the audio of middle segment clips c0.mp4 & f.mp4 with the audio from bgm.mp3 which will be given as a new input.

    &#xA;

    Appreciate all the help..

    &#xA;

  • Repeating a small mp3 overlay after each 10 seconds on a MP3 using SOX

    3 mai 2014, par Gopal Rathore

    Is there any way to repeat a overlay after each 10 seconds with mp3 file, using sox without trimming the original file. My code adds using trimming original file then adds overlay. Any help will be appreciated.

    if(isset($_POST['submit']) &amp;&amp; $_POST['submit']!="")
     {    
        require_once 'class.mp3.php';

        $mp3 = new mp3;

        print_r($_FILES);

        move_uploaded_file($_FILES["file"]["tmp_name"],$_FILES["file"]["name"]);

       /*Split MP3*/

       $mp3->cut_mp3($_FILES["file"]["name"], 'check1.mp3', 0, 700, 'frame', true);

       $mp3->cut_mp3($_FILES["file"]["name"], 'check2.mp3', 700, -1, 'frame', true);

       /*Part 1*/
       $path1= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check1.mp3";

       /*Part 2*/
       $path2= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check2.mp3";

       /*Overlay Sound*/
       $overlay= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/overlay.mp3";  

       /*Mix overlay with Part1 Sound*/
       $new_path1= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check4.mp3";

       /*Mix overlay with Part2 Sound*/
       $new_path2= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check5.mp3";

       /* Merge Both*/
       $new_path3= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check6.mp3";


       /*Mix overlay with Part1 Sound*/
       echo exec('/usr/bin/sox --combine mix '.$path1. ' '  .$overlay . ' '.$new_path1 );

       /*Mix overlay with Part2 Sound*/
       echo exec('/usr/bin/sox --combine mix '.$path2. ' '  .$overlay . ' '.$new_path2 );

       /* Merge Both*/
       echo exec('/usr/bin/sox --combine sequence '.$new_path1. ' '  .$new_path2 . ' '.$new_path3 );

       }