Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (112)

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

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

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

Sur d’autres sites (5989)

  • 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

  • How to add ffmpeg watermark text 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 . 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 .
    I dont know how to implement the ffmpeg scripting on this.
    I need to watermark before saving the video to folder.

  • Nodebots Day Sydney 2014 (take 2)

    25 juillet 2014, par silvia

    Nodebots Day Sydney 2014 (take 2)

    Category : Array
    Uploaded by : Silvia Pfeiffer
    Hosted : youtube