Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (53)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

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

  • 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

Sur d’autres sites (5337)

  • ffmpeg random images from video but in order

    28 novembre 2011, par RussellHarrower

    Ok, so I am using linux, and I have ffmpeg working, coding videos and making the image

    But what I would like is to make ffmpeg make up to 10 images from the video.

    I was wondering how I would do this. currently I use the following for images.

    //execute ffmepg to get picture
       exec("/usr/bin/ffmpeg -vframes 1 -ss ".$time_in_seconds." -i converted_vids/".$name.".".$type." video_images/".$name."_%02d.jpg -y 2> log/image_".$name.".txt");
  • how to play a avi/mpeg video on webpage ?

    27 novembre 2011, par Prashant

    I wanna play a video avi/mpeg video on php webpage. How can I do this ?

    I also want to generate the thumbnails for every video as well. Could anyone suggest some tools ?

    Thanks.

  • FFMpeg doesn't convert the video, just creates a thumb... It was working now not ?

    20 septembre 2011, par Matt Reid

    Theres a site im making for someone where it uses FFMpeg to convert the files to MP4's... I set it up and got the converter working... but now a week or so later ive came to use it and it doesn't convert the video, it runs the create thumbnail exec() but the video exec() doesn't run. It returns a 1 status like its gone through but there is no converted file and the browser quickly processes the convert file rather than lagging for a few seconds like it did when it was working...

    Any ideas ?

    <?php

    //Thumbnail VARS
    $tn_size = '480x360';
    $tn_interval = 3;
    $tn_type = 'mjpeg';

    //Video VARS
    $vi_size = '480x360';
    $vi_fileto = 'mp4';

    //Default Setup
    $id = $_GET['ListingID'];
    $ext = $_GET['Ext'];
    $temp_url = '/var/www/files/videos-tmp/'.$id.".".$ext;
    $new_url = '/var/www/files/videos/'.$id.".mp4";
    $new_url_thumb = '/var/www/files/videos-thumb/'.$id.".jpg";

    //echo $new_url."<br />".$id." ".$ext. " " .$temp_url;

    //Do
    if(file_exists($temp_url)) {
    @unlink($new_url);
    //echo "/usr/local/bin/ffmpeg -i {$temp_url} -f {$vi_fileto} -r 25 -ar 22050 -ab 48000      -ac 1 -s {$vi_size} {$new_url}";
    exec("/usr/local/bin/ffmpeg -i {$temp_url} -deinterlace -an -ss $tn_interval -f {$tn_type} -t 1 -r 1 -y -s $tn_size &#39;{$new_url_thumb}&#39;"); //make thumbnai
    exec("/usr/local/bin/ffmpeg -i {$temp_url} -f {$vi_fileto} -r 25 -ar 22050 -ab 48000 -ac 1 -s {$vi_size} {$new_url}",$output,$status); //convert video

    //@unlink($temp_url);
    if(isset($_GET[&#39;UsrOvr&#39;])) { } else {
    echo "<b>Convert Complete</b>";
    echo "<br /><br />Return to listings <a href="http://stackoverflow.com/feeds/tag/&#39;admin_listings.php&#39;">page</a>.";
    exit;
    }
    } else {
    die("The video selected does not exist!");
    }
    ?>