Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (98)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (9053)

  • AJAX won't execute all of the php code

    27 septembre 2016, par hermanboy07

    I want a progressbar to be shown while a video-file is being uploaded. I’m using JS and AJAX to track progress of the file-upload php, and send the file. The php file contains a ffmpeg command that grabs some frames from the video. Essentially the php file creates a random folder, and puts both the video and the frames in it. when the php is called by if(isset($_FILES['file'])) it works just fine. But when i try to use AJAX it only uploads the video, but ignores the ffmpeg command and mysql_query.

    Javascript :

    function uploadFile(){
           var file = _("file1").files[0];
           var formdata = new FormData();
           formdata.append("file1", file);
           var ajax = new XMLHttpRequest();
           ajax.upload.addEventListener("progress", progressHandler, false);
           ajax.open("POST", "upload.php");
           ajax.send(formdata);

    Upload.php

           $name = $_FILES['file1']['name'];
           $type = explode(".",$name);
           $type = end($type);
           $tmp = $_FILES['file1']['tmp_name'];
           $uploadOk = 1;
           $exp = explode(".",$name);
           $filename = rand().$exp[0];
           $path = "videos/" . $filename . "/" . $name;
           $ffmpeg = "/usr/local/bin/ffmpeg";
           $size = "320x180";

           if($type != 'mp4' && $type != 'MP4'){

             $message = "Only mp4 format is supported!";
             $uploadOk = 0;

           }else{

             mkdir("videos/".$filename);

             // ffmpeg function
             for($num = 1; $num <= 15; $num++){
             $interval = $num * 3;
             shell_exec("$ffmpeg -i $tmp -an -ss $interval -s $size /videos/$filename/thumb$num.png");}

             move_uploaded_file($tmp, $path);
             mysql_query("INSERT INTO table (name, url) VALUES('$name', '$path')");

    Why dosen’t AJAX execute the complete php ?

  • avcodec/mpeg4videoenc : Remove no-output code

    18 mai, par Andreas Rheinhardt
    avcodec/mpeg4videoenc : Remove no-output code
    

    While it offers modest speedups compared to the ordinary code,
    removing it completely offers even bigger speedups ; and given
    that these speedups also exist in the ordinary mode, they are
    even more important. The no-output code has a 7.8% performance
    improvement (based on benchmarking mpeg4_encode_mb()), yet
    removing the no-output code resulted in a 9.4% improvement.

    Furthermore, the no-output code was broken for the majority of
    its existence (until 9207dc3b0db368bb9cf5eb295cbc1129c2975e31)
    and no one complained, so it is likely not used at all.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/mpeg4videoenc.c
  • Is there an easy way to use x264 presets with ffmpeg in code ?

    29 août 2014, par Nioreh

    I’m trying to encode video with ffmpeg and x264. I know ffmpeg can use x264 presets when using the program ffmpeg from command line. But is it possible to easily use these presets when encoding with ffmpeg in code ?

    If not, what is the best way to set the x264 parameters from ffmpeg code ? Is it just using the properties of the AVCodecContext ? Are all the x264 options available through this ?

    Thank you !