Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (80)

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

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (4856)

  • Adding watermark to video

    27 avril 2018, par equallyhero

    I am able to use the moviepy library to add a watermark to a section of video. However when I do this it is taking the watermarked segment, and creating a new file with it. I am trying to figure out if it is possible to simply splice in the edited part back into the original video, as moviepy is EXTREMELY slow writing to the disk, so the smaller the segment the better.

    I was thinking maybe using shutil ?

    video = mp.VideoFileClip("C:\\Users\\admin\\Desktop\\Test\\demovideo.mp4").subclip(10,20)

    logo = (mp.ImageClip("C:\\Users\\admin\\Desktop\\Watermark\\watermarkpic.png")
             .set_duration(20)
             .resize(height=20) # if you need to resize...
             .margin(right=8, bottom=8, opacity=0) # (optional) logo-border padding
             .set_pos(("right","bottom")))

    final = mp.CompositeVideoClip([video, logo])
    final.write_videofile("C:\\Users\\admin\\Desktop\\output\\demovideo(watermarked).mp4", audio = True, progress_bar = False)

    Is there a way to copy the 10 second watermarked snippet back into the original video file ? Or is there another library that allows me to do this ?

  • How to set watermark resolution according to video resolution ?

    10 avril 2018, par Kiran

    Here i am trying to create a video editor with top and bottom text.I can set 2 text on top and bottom with different size, color and fonts for that text and i am converting that text to image and adding as watermark.

    But when resolution of video decreases the size of watermark image increase and vise versa.I am using ffmpeg commands.Now i am calculating like as shown below.

     if (video_width &lt;= 300) {

                   Log.e("less than", "300");
                   water_resolution_bt = String.valueOf(getDPsFromPixels(getApplicationContext(), tv_bt_width / 2 + 30) + ":" + getDPsFromPixels(getApplicationContext(), tv_bt_height / 2 + 15));

                   water_resolution = String.valueOf(getDPsFromPixels(getApplicationContext(), tv_top_width / 2 + 30) + ":" + getDPsFromPixels(getApplicationContext(), tv_top_height / 2 + 15));

               } else if (video_width > 300 &amp;&amp; video_width &lt;= 400) {

                   Log.e("less than", "400");
                   water_resolution_bt = String.valueOf(getDPsFromPixels(getApplicationContext(), tv_bt_width / 2 + 130) + ":" + getDPsFromPixels(getApplicationContext(), tv_bt_height / 2 + 70));

                   water_resolution = String.valueOf(getDPsFromPixels(getApplicationContext(), tv_top_width / 2 + 130) + ":" + getDPsFromPixels(getApplicationContext(), tv_top_height / 2 + 70));

               } else if (video_width > 400 &amp;&amp; video_width &lt;= 600) {
                   Log.e("btw ", "400 and 600");
                   water_resolution_bt = String.valueOf(getDPsFromPixels(getApplicationContext(), tv_bt_width + 80) + ":" + getDPsFromPixels(getApplicationContext(), tv_bt_height + 40));

                   water_resolution = String.valueOf(getDPsFromPixels(getApplicationContext(), tv_top_width + 80) + ":" + getDPsFromPixels(getApplicationContext(), tv_top_height + 40));
               } else if (video_width > 600 &amp;&amp; video_width &lt;= 1000) {
                   Log.e("btw ", "600 and 1000");
                   water_resolution_bt = String.valueOf(getDPsFromPixels(getApplicationContext(), tv_bt_width + 100) + ":" + getDPsFromPixels(getApplicationContext(), tv_bt_height + 100));

                   water_resolution = String.valueOf(getDPsFromPixels(getApplicationContext(), tv_top_width + 100) + ":" + getDPsFromPixels(getApplicationContext(), tv_top_height + 100));

               } else if (video_width > 1000) {
                   Log.e("grthr than ", "1000");
                   water_resolution = String.valueOf(getDPsFromPixels(getApplicationContext(), tv_top_width * 2 + 20) + ":" + getDPsFromPixels(getApplicationContext(), tv_top_height * 2 + 20));
                   water_resolution_bt = String.valueOf(getDPsFromPixels(getApplicationContext(), tv_bt_width * 2 + 20) + ":" + getDPsFromPixels(getApplicationContext(), tv_bt_height * 2 + 20));

               }

    This will not give accurate results.Can anyone suggest any other calculation methods.I have also tried with "drawtext" method .It also have same issue.

  • how to add watermark in multiple areas using ffmpeg ?

    7 mars 2018, par kunal

    i am using laravel framework and also using ffmpeg php library. Actually i have done almost 70% of work. But the problem i faced is to show watermark at multiple areas on video. I have done the watermark on top-left corner that is running very fine on that video. But i want to add watermark in top-left, bottom-left, bottom-right. I have used this code for top-left watermark (for video) :-

    $inputVideo = public_path('input/airplane_flight_airport_panorama_1080.mp4');
    $outputVideo = public_path('uploads/output.mp4');
    $watermark = public_path('input/watermark.jpg');

    $wmarkvideo = "ffmpeg -i ".$inputVideo." -i ".$watermark." -filter_complex ". '"overlay=x=(main_w-overlay_w):y=(main_h-overlay_h)/(main_h-overlay_h)"'." ".$outputVideo;
    exec($wmarkvideo );

    Please help me how can i add watermark on top-left, bottom-left, bottom-right in these areas. Thanks in advance :)