Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (73)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

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

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

  • how to add multi vf filter on one command ffmpeg scale resize and watermark text [closed]

    7 août 2024, par Ibrahim Noshy

    can you help me

    


    i need scale video to 720p and add watermark

    


    i tray this put not work

    


    
-filter:v scale=-1:720 -c:v libx264 -preset medium -crf 28 -b:v 1.5M -pix_fmt yuv420p10le -vf "drawtext=text='✠ Orsozox Movies ✠':x=w-tw-10:y=10:fontsize=24:fontcolor=white:shadowcolor=black:shadowx=5:shadowy=5" -c:a aac -b:a 128k


    


    I also face a problem sometimes it works but I face a problem with the stream when uploading to Telegram on some mobile devices the video does not work on them

    


    can you help me

    


    to fined best code

    


  • How to watermark with overlay fadeout with ffmpeg [closed]

    19 février, par Kevin Waterson

    I wish to put a watermark on my video, and a text overlay.
The text overlay should fade out after the first three seconds.
The watermark is permanent.

    


    This is what I have come up with, however, the watermark seems to push the overlay down.

    


    ffmpeg -y -i in.mp4 -i images/watermark.png -filter_complex "[0:v][1:v]overlay=10:10[bg] ;[bg]drawtext=fontfile=fonts/SAMAN___.ttf:text='Testing':box=1:boxborderw=800|800:boxcolor=black:fontsize=40:fontcolor=white:alpha='if(lt(t,2),0,if(lt(t,3),(t-2)/1,if(lt(t,6),1,if(lt(t,7),(1-(t-6))/1,0))))':x=(w-text_w)/2:y=(h-text_h)/2:y=h-th-10[out]" -map "[out]" -map 0:a out.mp4

    


  • How to add ffmpeg watermark text and trim videos to 60 seconds on this PHP video upload ?

    6 novembre 2017, par Brains Akd

    Below is the code for my video upload

    if (isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST") {


        if (isset($_GET['id']) && $_GET['id'] != "") {
            $id = $_GET['id'];
       }/* else {
           $id = $_SESSION['user_id'];
       }*/
      extract($_POST) ;

       $path = "video/answer_video/"; //set your folder path
       //set the valid file extensions
      // $valid_formats = array("mp4", "jpg", "png", "gif", "bmp", "jpeg", "GIF", "JPG", "PNG", "doc", "txt", "docx", "pdf", "xls", "xlsx"); //add the formats you want to upload
    $valid_formats = array("mp4"); //add the formats you want to upload

       $name = $_FILES['answer_video']['name']; //get the name of the file

       $size = $_FILES['answer_video']['size']; //get the size of the file

       if (strlen($name)) { //check if the file is selected or cancelled after pressing the browse button.
           list($txt, $ext) = explode(".", $name); //extract the name and extension of the file
           if (in_array($ext, $valid_formats)) { //if the file is valid go on.
               if ($size ) { // check if the file size is more than 2 mb
                   $file_name = $_POST['filename']; //get the file name
                   $question_id = $_POST['question_id'];  
                   // $title = $_POST['title'];
                   $title = strip_tags(trim($_POST['title']));
                   //get hashtag from message
                   $hashtag = gethashtags($title);

                   //$tags = $_POST['tags'];
                   $category = $_POST['category'];

                   $tmp = $_FILES['answer_video']['tmp_name'];


                   if (move_uploaded_file($tmp, $path . $name)) { //check if it the file move successfully.
                        $answer_video = $name;
                          $answer_type = "uploaded";

                       $video = $path . $name;
                       $length = 5;

    $randomletter = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz"), 0, $length);
                      $rand = rand(1,10000000);
    $uniqueName = uniqid($rand);
    $thumbnail = "images/thumbnail_{$uniqueName}_{$randomletter}.jpg";

    // shell command [highly simplified, please don't run it plain on your script!]
    shell_exec("ffmpeg -i $video -deinterlace -an -ss 1 -t 00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg $thumbnail 2>&1");







                       $msg = "Uploaded Successfully!";  

                        echo json_encode(array('msg'=>$msg,'res'=>$question_id));
                         $userid = $_SESSION['user_id'];

    How do I add top right watermark and trim the uploading videos to 30 seconds.? please do help

    I tried many times but it didn’t work..
    Your help is appreciated..
    Ffmpeg is working fine on the server and but didnt know how to do the above required