Recherche avancée

Médias (91)

Autres articles (67)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (5418)

  • Révision 22431 : echapper les script et les iframe dans l’espace prive, pour eviter de l’injection...

    16 octobre 2015, par cedric@yterium.com
  • Having issues parsing cropdetect values from ffmpeg in batch script

    23 mars 2024, par Alex Sadler

    I have this script that I'm trying to write that finds video files in a dir, automatically removes black bars and transcodes to x265...

    


    @echo off
setlocal enabledelayedexpansion

REM Loop through all video files in the current directory
for %%F in (*.mp4, *.avi, *.mkv, *.ts) do (
    echo Processing "%%F"

    REM Use FFMPEG to detect crop values
    for /f "tokens=*" %%a in ('ffmpeg -i "%%F" -vf "cropdetect" -f null - 2^>^&1 ^| find /i "crop="') do (
        set cropfilter=%%a
    )

    REM Extract the crop filter result
    set cropfilter=!cropfilter:*crop=! 
    set cropfilter=!cropfilter: =!

    REM Use the detected crop filter to crop the video
    if not "!cropfilter!"=="" (
        echo Detected crop filter: !cropfilter!
        ffmpeg -i "%%F" -map 0:v:0 -map 0:a:0 -map 0:s? -c:v:0 libx265 -crf 18 -vf "crop=!cropfilter!" -c:a:0 aac -ac 2 -b:a:0 256k -c:a:1 aac -ac 6 -b:a:1 512k -c:s copy "encoded.mkv"
    ) else (
        echo No cropping needed for "%%F".
    )
)

echo Processing complete.
pause


    


    I'm struggling to correctly parse the crop values output from the initial ffmpeg query though. What its grabbing at the moment is :

    


    detect_0@000001ce4b0e2040]x1:0x2:1919y1:131y2:948w:1920h:816x:0y:132pts:625483604t:6949.817822limit:0.094118crop=1920:816:0:132


    


    When I really just need this bit :

    


    crop=1920:816:0:132


    


    So that I can call it in the transcode command.

    


    Thanks in advance.

    


  • add watermark on video upload and compress to 360p using my script [closed]

    31 janvier 2023, par Realbro media tips

    I want to add watermark to my videos on upload using this my remote upload script and also compress video to 360p.

    


    if (isset($_POST["submit"])) {&#xA;  $file_url = $_POST["file_url"];&#xA;  $file_name = $_POST["file_name"];&#xA;&#xA;  if (filter_var($file_url, FILTER_VALIDATE_URL)) {&#xA;    $pathinfo = pathinfo($file_url);&#xA;    if (isset($pathinfo["extension"])) {&#xA;      $file_name .= "." . $pathinfo["extension"];&#xA;      $file_content = file_get_contents($file_url);&#xA;      $fopen = fopen("files/" . $file_name, "w");&#xA;      $fwrite = fwrite($fopen, $file_content);&#xA;      fclose($fopen);&#xA;      if ($fwrite) {&#xA;        $msg["success"] = "<input type="&#x27;text&#x27;" value="&#x27;https://example.com/file/files/$file_name&#x27;" />&#xA;<button>Copy text</button> File Uploaded Successfully.";&#xA;        $_POST["file_url"] = "";&#xA;        $_POST["file_name"] = "";&#xA;      } else {&#xA;        $msg["error"] = "Something wrong went. Please try again.";&#xA;      }&#xA;    } else {&#xA;      $msg["error"] = "Please enter a file URL.";&#xA;    }&#xA;  } else {&#xA;    $msg["error"] = "Please enter a valid URL.";&#xA;  }&#xA;}&#xA;?>&#xA;

    &#xA;

    I have not tried anything cos am yet to learn more on this category.

    &#xA;