Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (62)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (6102)

  • How to generate light weight videos with ffmpeg for Power Point in OS X ?

    25 septembre 2014, par Pablo

    I want to make some movies with ffmpeg to use them on a Powerpoint in Mac OS X. I am using this command, which works well but generates large movies (about 100 MB) without losing too much quality.

    ffmpeg -f image2 -r 100 -pattern_type glob -i 'img*.png' -c:v mjpeg -qscale:v 20 test.avi

    I have also tried using other codecs like mpeg4 and libx264 to generate lighter movies (about 10 MB) but they don’t work correctly in the Powerpoint presentation.

    Does anyone know how to use them correctly or how to create a light weight movie with ffmpeg that works well on Powerpoint for OS X ?

  • ffmpeg doesnt work on live server while same code working on local server

    5 septembre 2016, par Samir Karmacharya

    I have used the code below code in local server to convert video and capture images from video

    <form action="index.php" method="post" enctype="multipart/form-data">
     <input type="file" />
     <input type="submit" />
    </form>

    &lt;?php
    if(isset($_POST['submit'])){    
     $ffmpeg="c:\\ffmpeg\\bin\\ffmpeg"; //ffmpeg path
     $file_name=$_FILES['file']['name'];
     $file_name=str_replace(' ','_', $file_name);
     $videoFile=$_FILES['file']['tmp_name'];    
     $imageFile=$file_name.'1.jpg'; //output image name
     $getFromSecond=5;// image capture from video in 5 second
     $size="720*590";
     $cmd="$ffmpeg -i $videoFile -an -ss $getFromSecond -s $size  $imageFile";
     //for video converstion
     $cmd_video="$ffmpeg -i $videoFile -vcodec copy -acodec copy beighta.mp4";//working      
     if(!shell_exec($cmd)){      
       echo "thumbnail created";
     }else{
       echo "error";
     }
     if(!shell_exec($cmd_video)){
       echo "video completed";
     }else{
       echo 'vidoe fail';
     }
    }
    ?>

    But, in the live server if I replace

    $ffmpeg="c:\\ffmpeg\\bin\\ffmpeg"; //ffmpeg path

    with

    $ffmpeg="/usr/local/bin/ffmpeg";

    then it doesn’t capture images from video and does not convert the video format.

    Question

    How can I alter my code so I get the same outcome on the real server that I do on my local server ?

  • VB Dot Net ffMpeg Network Web Server Cannot Execute JS Ajax Call to Private Web Server When Client is Outside Network

    29 septembre 2019, par Sonbelt

    I have a solution that is using Windows Server 2008 (Web Server), Windows Server 2008 (MS Sql Database Server), Computer with Windows 10 Home with IIS acting as a file server that runs command line calls where ffMpeg converts video files to html5 compliant files and then puts them on the NAS (a WD Network Drive.). Users then use the public website to view the videos streamed from the NAS.

    Windows Server 2008 cannot make a command line call to ffMpeg. If it could the performance hit would be too large.

    In order to get the public web server to call a private web page I’m using an Ajax post call to the file server web site. That site converts the videos and then there is a separate routine that moves the files using the same methodology. In order to get the file server where it can move the files to the NAS I’ve set the application pool identity to a specific user. The public web server is using the Network Service as the identity for the application pool.

    When I run the pages on the public server from behind the firewall where the calling ip address is in the same network the solution works fine but when I use any device or browser when the calling ip address is not in the local network the JS Ajax call to the private web site does not work. No lines appear in the IIS log on the file server.

    I’ve tried changing to the other built in choices and set the identity as the administrator on the public web server. Turned off the public server firewall, turned off the private files server firewalls without success.

    The solution needs to work when the calling ip address is not in the local network. I apologize for long post. Can you help me please ?