Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (89)

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (8901)

  • Simplest way to convert uploaded videos to mp4 before storing them on a server ?

    26 juin 2017, par ioan

    I’m using a goDaddy server and cPanel to make a website, and I want to make a feature that lets users upload videos, save them on the server, then display them elsewhere on the site.

    displaying uploaded videos :

    echo "<video controls="controls"><source src="{$video_row[$i]}"></source></video>";

    But I found out that most browsers can only play a few video formats like mp4. So I want to convert them all to mp4 before saving them to the server. So sometime before running the move_uploaded_file() function.

    Is there something I can download and put on the server that will let me do that ? From other questions I found about FFmpeg, but i couldn’t figure out how to use it and if I can even install it on a godaddy server.

    Php code :

    if (isset($_FILES["submit_file"])) { //this comes from an html form
       $name = $_FILES['submit_file']['name'];
       $original_name = $name;
       $size = $_FILES['submit_file']['size'];
       $tmp_name = $_FILES['submit_file']['tmp_name'];
       $target_dir = null;

       $finfo = finfo_open(FILEINFO_MIME_TYPE); //get mime type
       $mime = finfo_file($finfo, $tmp_name);

       if ($mime == "video/mp4" || $mime == "video/wmv" || $mime == "video/avi" || $mime == "video/mov") {
           if ($mime != "video/mp4") {
               //CONVERT TO MP4
           }
           $target_dir = "uploads/videos/";
           $path = $target_dir.basename($name);

           if (move_uploaded_file($tmp_name, $path) == true) {
               //moved
           }
       } else {
           //error: Unsupported File Type
       }
    }

    How do others deal with videos ? I was able to upload and play mp4 videos fine with my method, but html5 can’t seem to play other types, and I don’t want to limit users to only upload mp4

  • yt-dlp : ffmpeg working for some videos, but not for the others

    30 janvier 2023, par Mikki99

    I started using yt-dlp a few days ago, so I'm new to the whole thing. I needed to download some videos from youtube, but have them split into chapters.

    &#xA;

    The command :

    &#xA;

    yt-dlp --split-chapters URL&#xA;

    &#xA;

    seems to be doing the right thing. However, running exactly the same command works for some videos, but for some I get the following error :

    &#xA;

    ERROR: Postprocessing: ffmpeg not found. Please install or provide the path using --ffmpeg-location &#x27;list&#x27; is not recognized as an internal or external command, operable program or batch file.&#xA;

    &#xA;

    I have previously installed ffmpeg and added it to the PATH and it worked fine, and it doesn't make much sense to me that the command would work for certain URLs if ffmpeg wasn't there.

    &#xA;

    The video for which the error comes up is no different than the one for which the command works. They both have chapters.

    &#xA;

    Also, I don't really understand this last part of the error message

    &#xA;

    &#x27;list&#x27; is not recognized as an internal or external command, operable program or batch file&#xA;

    &#xA;

    Does anyone have an idea what might be happening ?

    &#xA;

    Please do let me know if there is something else I should share — I'll edit the original post !

    &#xA;

    Thanks a lot !

    &#xA;

    I've tried running the command on different short (couple mins long) videos that included chapters (just so the download doesn't take a lot of time). It worked for numerous arbitrary videos I found on youtube. The video that I am actually interested in is 40 min long (suppose that doesn't make any difference), but for this video (or others from this playlist) I run into the mentioned error. Here is the link to the video, if you want to try it out yourself.

    &#xA;

  • Splitting videos using ffmpeg - ffsplit.sh by grapsus.net

    15 avril 2018, par hongducwb

    http://grapsus.net/blog/post/A-script-for-splitting-videos-using-ffmpeg
    Everything work fine, but i dont know how to make it auto splitting each files in folder with different filename ...i have bunch of files but i dont want create each folder for each files then rename it to input name (eg : video.mpg, 1.mp4,..)

    ffsplit.sh video.mpeg 1200

    and is there have anyway to excute it without ffsplit.sh in same folder ? because it’s in ubuntu (installed on windows10) (it’s like Environment Variables in windows)

    THANK :)