Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (73)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (10183)

  • 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 : add multiple drawtexts, vertically stacked, to a video

    21 septembre 2020, par Ali Doggaz

    I wish to add several texts to a video. The texts should be vertically aligned, in the top center of the video.
here is what I tried for now :

    


    n = len(titles) #Titles a list containing all the texts we will add to the video
p = 0
for text in titles:
    os.system(
        fr'ffmpeg -i output{p}.mp4 -filter:v drawtext="fontfile=Lato- 
        Black.ttf:fontcolor=black:fontsize=60:text=' + f"'{text}':" + f'y=200-{(n-p) * 62}:x=(w- 
        text_w)/2"-y output{p + 1}.mp4')
    p = p + 1


    


    As you can see, all the texts should have x=(w- text_w)/2 as their abscissa (which is constant ?), but they're never aligned. There is always a sort of padding that pushes the next text added, a bit more to the right.
I also tried to use x=w/2 which is constant and the texts are still not vertically aligned.

    


  • FFMPEG filter instances names don't work with "sendcmd" ?

    13 septembre 2023, par VladStepu2001

    I have two drawbox filter instances that I need to animate separately.
    
I've used sendcmd for the one instance already, and it worked fine.

    


    But when I've added the second one, I gave a name to both of them like this :

    


    drawbox@one=0:0:iw:ih:red:fill,drawbox@two=0:0:iw:ih:black:fill


    


    Then, I've tried to use sendcmd like this :

    


    drawbox@one=0:0:iw:ih:red:fill,drawbox@two=0:0:iw:ih:black:fill,
sendcmd=c='0.0-5.0 [expr] drawbox@one w W*(T/5)
           0.0-5.0 [expr] drawbox@two h H*(T/5)'


    


    But that didn't work, the rectangles stayed still.

    


    What I am doing wrong ?