Recherche avancée

Médias (91)

Autres articles (50)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • 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 (...)

Sur d’autres sites (6299)

  • How to add text on a video using FFMPEG in android

    19 juin 2014, par Divya Motiwala

    I am trying to add text to the video but not getting the syntax right.
    I am forming the command as a string (given below) :

    String concatePath = "data/data/"+ this.getPackageName() +"/cache/ffmpeg" + " -y -i " +
                    Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)+"/Camera/wildlife.mp4 -vf " +
                    "drawtext=fontfile=/system/fonts/DroidSans.ttf\\: text='this' \\:x=(w-text_w)/2\\:y=H-60 \\:fontcolor=white \\:box=1 -y "
                    + Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC)+"/test/output_text.mp4";

    So the command that gets executed is :

    data/data/com.example.videomerger/cache/ffmpeg -y -i /storage/emulated/0/DCIM/Camera/wildlife.mp4 -vf drawtext=fontfile=/system/fonts/DroidSans.ttf\: text='this' \:x=(w-text_w)/2\:y=H-60 \:fontcolor=white \:box=1 -y /storage/emulated/0/Music/test/output_text.mp4

    It is giving the error :

    Unable to find a suitable output format for ’text=’this’’
    , text=’this’ : Invalid argument

    How to solve it ?

    Update : I could add text to the video but it takes only single words. When i give space for multi words, it considers it as an invalid argument ! How can i add space to it ?

  • How to achieve text scrolling effect using FFmpeg ? [closed]

    6 avril 2023, par smart karaler

    I want to use FFmpeg to achieve a marquee effect with text. After using the drawtext filter and expression to make the text scroll, I want the text display to be seamless at the beginning and end. Is there any way to achieve this ?

    


    I have tried using the scroll filter to achieve this effect, but it causes the entire background to scroll. I also tried splitting the screen using the split filter, but found that it was difficult to make only the text scroll while keeping the background still.

    


    Can you advise me on how to achieve this ?

    


    I want to use FFmpeg to achieve a marquee effect with text. After using the drawtext filter and expression to make the text scroll, I want the text display to be seamless at the beginning and end. Is there any way to achieve this ?

    


    I have tried using the scroll filter to achieve this effect, but it causes the entire background to scroll. I also tried splitting the screen using the split filter, but found that it was difficult to make only the text scroll while keeping the background still.

    


  • how to prevent long text going out of video bounds ?

    30 décembre 2023, par Dhruvisha Joshi

    i am adding text to video using ffmpeg.

    


    var filterComplex = ""
for (index, textData) in textDataArray.enumerated() {
     print("x: \(textData.xPosition), y: \(textData.yPosition)")
     let x = (textData.xPosition * 1080) / videoViewWidth
     let y = (textData.yPosition * 1920) / videoViewHeight
                                    
     let fontSizeForWidth = (20 * 1080) / videoViewWidth
     let fontSizeForHeight = (20 * 1920) / videoViewHeight
     print("fontSizeForWidth: \(fontSizeForWidth)")
     print("fontSizeForHeight: \(fontSizeForHeight)")
                                    
     if index == textDataArray.count - 1 {
         let textFilter = "[video\(index)]drawtext=text='\(textData.text)':fontfile=\(fontPath):fontsize=\(fontSizeForHeight):fontcolor=white:x=(main_w-text_w-\(x)):y=(\(y)-(text_h/2))"
          filterComplex += textFilter
     } else {
          let textFilter = "[video\(index)]drawtext=text='\(textData.text)':fontfile=\(fontPath):fontsize=\(fontSizeForHeight):fontcolor=white:x=(main_w-text_w-\(x)):y=(\(y)-(text_h/2))[video\(index + 1)];"
          filterComplex += textFilter
     }
                                    
}


    


    this is my code to add drawtext to command. now my problem is if text is longer it is going out of video bounds instead i want it to be at same x y positons but i want to convert it to multiple lines.

    


    i have seen some solutions where they are telling me to add \n to my text but i am getting it from user and i am not able to determine that where to add \n so this solution is not working for me. if possible tell me how to change x y so that i can manage this or any other solutions if more effective.