Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (100)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (10225)

  • MAINTAINERS : Add ubitux for text subtitles

    13 juillet 2014, par Michael Niedermayer
    MAINTAINERS : Add ubitux for text subtitles
    

    ubitux maintains them. It seems it was forgotten to update MAINTAINERs though

    See : Re : [FFmpeg-devel] [PATCH] MAINTAINERS : add Subtitle maintainer
    Message-ID : <20140713120546.GC26262@leki>

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] MAINTAINERS
  • Moviepy python images and text with colour background video

    7 janvier, par sjpatel

    I trying to create video like below using Moviepy python.?

    &#xA;

    Video -&#xA;https://assets.json2video.com/examples/marketing/slide-text-right.mp4

    &#xA;

    Is this possible using Moviepy python ? I can't use FFMPEG because it not supported on my server.

    &#xA;

    from moviepy.editor import *&#xA;&#xA;# Load the image&#xA;img_clip = ImageClip("your_image.png")&#xA;&#xA;# Set the duration of the image clip&#xA;img_clip = img_clip.set_duration(5)&#xA;&#xA;# Resize the image if necessary&#xA;img_clip = img_clip.resize(height=1080)  # Keep the height consistent&#xA;&#xA;# Define your text&#xA;text = "Your Marketing Message"&#xA;&#xA;# Create a TextClip&#xA;txt_clip = TextClip(text, fontsize=70, color=&#x27;white&#x27;)&#xA;&#xA;# Set the duration of the text clip&#xA;txt_clip = txt_clip.set_duration(5)&#xA;&#xA;# Animate the text to slide in from the right&#xA;def slide_in(t):&#xA;    return &#x27;center&#x27;, -1000 &#x2B; 1500 * t  # Adjust these values based on your needs&#xA;&#xA;txt_clip = txt_clip.set_position(slide_in)&#xA;&#xA;# Set background color&#xA;txt_clip = txt_clip.on_color(size=(1920, 1080), color=(0, 0, 0), col_opacity=1)&#xA;&#xA;# Position the image on the left side&#xA;img_clip = img_clip.set_position((&#x27;left&#x27;, &#x27;center&#x27;))&#xA;&#xA;# Position the text clip on the right side&#xA;txt_clip = txt_clip.set_position((&#x27;right&#x27;, &#x27;center&#x27;))&#xA;&#xA;# Composite the two clips together&#xA;final_clip = CompositeVideoClip([img_clip, txt_clip])&#xA;&#xA;# Set the duration of the final clip&#xA;final_clip = final_clip.set_duration(5)&#xA;&#xA;# Save the video&#xA;final_clip.write_videofile("image_and_slide_text.mp4", fps=24)&#xA;

    &#xA;

  • ffmpeg Add watermark/text in video on react native

    3 janvier 2019, par R F

    Right now i’m stuck on android part,here is my code

    I don’t want to define font styling or box it just i found this code somewhere so i just copy pasted it as i don’t have any knowledge of ffmpeg, I just want a simple text of right aligned in 2 lines on top of right of the video like this.
    Expected output

    I am getting the error in this part of code as the video is getting generated but it does not play and it is of always 262B size

    String[] cmd = new String[] {
               "-i", path, "-vf", String.format("drawtext=\"fontfile=/systems/fonts/DroidSans.ttf: text='%s': " + "box=1: boxcolor=black@0.5: boxborder=5: x=(w-text_w)/t: y=(h-text_h)/2\"", text), "-codec:a", "aac", out.getAbsolutePath()
       };

    This is the full code

    @ReactMethod
    public void embedTextOnVideo(String text, String path, int fontSize, String fontColor, final Callback successCallback, final Callback errorCallback)
    {
    FFmpeg ffmpeg = FFmpeg.getInstance(_reactContext);
    try
    {
     ffmpeg.loadBinary(new LoadBinaryResponseHandler() {

       @Override
       public void onStart() {}

       @Override
       public void onFailure() {}

       @Override
       public void onSuccess() {}

       @Override
       public void onFinish() {}
     });
    } catch (FFmpegNotSupportedException e) {
     // Handle if FFmpeg is not supported by device
    }

    File out = getOutputFile(TYPE_VIDEO);

    String[] cmd = new String[] {
           "-i", path, "-vf", String.format("drawtext=\"fontfile=/systems/fonts/DroidSans.ttf: text='%s': " + "box=1: boxcolor=black@0.5: boxborder=5: x=(w-text_w)/t: y=(h-text_h)/2\"", text), "-codec:a", "aac", out.getAbsolutePath()
    };
    try {
     ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {

       @Override
       public void onStart() {}

       @Override
       public void onProgress(String message) {}

       @Override
       public void onFailure(String message) {
         errorCallback.invoke("Error ffmpeg executing with message:\n\t" + message);
       }

       @Override
       public void onSuccess(String message) {
         successCallback.invoke("Successfully output file with message:\n\t");
       }

       @Override
       public void onFinish() {}
     });
    } catch (FFmpegCommandAlreadyRunningException e) {
     // Handle if FFmpeg is already running
    }
    }

    @Nullable
    private Throwable writeDataToFile(byte[] data, File file) {
    try {
     FileOutputStream fos = new FileOutputStream(file);
     fos.write(data);
     fos.close();
    } catch (FileNotFoundException e) {
     return e;
    } catch (IOException e) {
     return e;
    }

    return null;
    }
    @Nullable
    private File getOutputFile(int type) {
    File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM;

    // Create storage dir if it does not exist
    if (!storageDir.exists()) {
     if (!storageDir.mkdirs()) {
       Log.e(TAG, "Failed to create directory:" + storageDir.getAbsolutePath());
       return null;
     }
    }

    // media file name
    String fileName = String.format("%s", new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()));


    enter code hereif (type == TYPE_VIDEO) {
     fileName = String.format("VID_%s.mp4", fileName);
    } else {
     Log.e(TAG, "Unsupported media type:" + type);
     return null;
    }

    return new File(String.format("%s%s%s", storageDir.getPath(), File.separator, fileName));
    }