Recherche avancée

Médias (0)

Mot : - Tags -/images

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

Autres articles (100)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (10892)

  • FFMPEG in Android not rendering Arabic characters

    14 octobre 2024, par Henry Smith

    I have an Android app that uses FFMPEG to add text overlays onto a mp4 video files.

    


    It works fine with a Latin alphabet, but when I try and add Arabic characters as an overlay on the .mp4 file, the output video displays rectangles (assuming unrecognised characters).

    


    FFMPEG command example is :
-y -i video-in.mp4 -preset ultrafast -vf "[in]drawtext=text='نقطة البداية قلا':enable='between(t, 0,5)':fontcolor=White:fontsize=20:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2,drawtext=text='وصلات مزاحجة كبيرة الإزاحة (من ١٢ إلى ٤)':enable='between(t, 15,20)':fontcolor=White:fontsize=20:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2[out]" -r 24 "video-out.mp4"

    


    Output mp4 video comes out a below :
enter image description here

    


    Using Android SDK Version 13, FFMPEG plugin : com.arthenica:mobile-ffmpeg-full-gpl:4.4

    


    Class example code :

    


    import com.arthenica.mobileffmpeg.ExecuteCallback
import com.arthenica.mobileffmpeg.FFmpeg

class VideoUtils() {

    fun addTextOverlay(inputFile: String, outputFile: String, text: String) {
        // create video filter for overlay text between 0 - 5 seconds, centre aligned, white font and black box
        val tempTextString =
            "drawtext=text='$text:enable='between(t, 0,5)':fontcolor=White:fontsize=20:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2"

        // create FFMPEG command
        val cmd =
            "-y -i $inputFile -preset ultrafast -vf \"[in]$tempTextString[out]\" -r 24 \"$outputFile\""

        FFmpeg.execute(cmd)
    }
}


    


  • FFmpeg compose, multi layers and filters, need kindly help 

    9 octobre 2019, par jadeshohy

    Pretty new to FFmpeg. We would like to use FFmpeg as a important part of an AR project.

    Currently, we find it is not easy for us.

    We want to compose the footages with FFmpeg.

    We got 5 layers, wanted to blend them with specific mode, like the things in After Effects.

    • layer-1/ [A.webm] video,vp9 codec, which has a transparent BG,has to be added as [normal mode]

    • layer-2/ [B.mp4] video, optical-flare things with black BG,has to be added as [screen mode]

    • layer-3/ [C.mp4] video, some motion graphic things with light BG,has to be added as [overlay mode]

    • layer-4/ [BG.MP4], backgound things, has to be added as [normal mode]

    After we blend those 4 (like pre-compose,use blend filter), we want to add another layer-5/[icon.png] which is the special icon.

    Layer-5 need to overlay the pre-compose. We have to overlay it at the special position (use overlay filter ?).

    Cause [icon.png] may change frequently. we want to deal with that after the 4 layer blending.

    But at the first step, when we set normal mode for layer-1 in blend filter, layer-1 [A.webm] lost the transparent BG,it gave us a black BG which block all other things.
    Blend filter can not handle the alpha channel of vp9 webm ?
    When we set the mode of layer-1 to screen mode,the translucent thing was not what we need.

    Could you please give us some commands to achieve the blend above ?

    The commands that are really work will be extremely useful for our FFmpeg initiation.

  • How to know if x264 uses multiple processors Windows

    3 décembre 2013, par fessy

    I have Linphone open source application that uses x264 encoder. By default it runs on one thread :

    x264_param_t *params= .....
    params->i_threads=1;

    I added ability to use all processors :

    long num_cpu=1;
    SYSTEM_INFO sysinfo;
    GetSystemInfo( &sysinfo );
    num_cpu = sysinfo.dwNumberOfProcessors;
    params->i_threads=num_cpu;  

    The question is how do I know that during video streaming x264 runs on (in my case) 4 processors ?

    Because from Task Manager -> Performance -> CPU usage history doesn't clear.

    I use windows 7

    Thanks,