Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (12)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

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

  • Animated Gif using PHP 5 and ffmpeg [closed]

    1er décembre 2012, par user1828200

    I make an Animated Gif, by download a video from youtube with youtube-dl and then convert it into AVI with ffmpegand then make animated gif through convert. It works, but speed is very slow.

    Here is my code

    Youtube Download :

    shell_exec("youtube-dl -o JNJNoaIU7qs.flv --format=5 --audio-quality=9 http://www.youtube.com/watch?v=JNJNoaIU7qs);

    Convert to AVI , because I want to make Small Gif so time manipulation is not done with youtube-dl thats why i convert avi with time manipulation

    shell_exec("ffmpeg -i JNJNoaIU7qs.flv -sameq -ss 00:00:5 -t 00:00:10 JNJNoaIU7qs.avi");

    Make Gif

    shell_exec("convert -quiet -delay 0  JNJNoaIU7qs.avi JNJNoaIU7qs.gif");

    It creates the GIF files, but it is very slow, how can I increase the speed of conversion ?

  • Resque does not find ffmpeg

    17 décembre 2012, par d33pika

    I am using resque to queue some encoding jobs. I have workers that pick up these jobs and do some transcoding.
    The issue is system "mencoder .." works fine but system "ffmpeg .." throws not found and the same to with system "qt-faststart .."
    I installed mencoder using sudo apt-get install.
    ffmpeg and qt-faststart were built from source.
    So mencoder was in /usr/bin and the other two in /usr/local/bin.
    So, the next thing I tried was using full path in the system command, that also returned not found.
    Then I copied ffmpeg and qt-faststart into /usr/bin.. Still got "Not Found"
    My worker code runs standalone but when god runs it, ffmpeg and qt-fasstart fail to execute. Yes, I have god configured to watch resque. Now, I don't know what else to try ! Any ideas ?

  • Capture Thumbnail Whilte Downloading Youtube Video

    31 décembre 2012, par Minime

    I want to capture a thumbnail of Youtube video on certain timeline. (e.g. 3.2sec)
    I used ytdl and fluent-ffmpeg with node.js to implement it.
    It was possible to capture a thumbnail when the downloading has finished.

    var fs = require('fs');
    var ytdl = require('ytdl');
    var ffmpeg = require('fluent-ffmpeg');
    var videostream = fs.createWriteStream('video.flv');
    var myytdl = ytdl('http://www.youtube.com/watch?v=A02s8omM_hI');
    myytdl.pipe(videostream);
    videostream.on('close',function() {
     console.log('Downloading complete...');
     var proc = new ffmpeg({ source: 'video.flv', nolog: true })
     .withSize('150x100')
     .takeScreenshots(1, '/home/test', function(err) {
       console.log(err || 'Screenshots were saved');
     });
    });

    However, I couldn't implement to capture a thumbnail while downloading. Basic idea of what I want to do is as below.

    1. Download Youtube video starting at X sec. (Worked)
    2. Pipe it to Readable/Writable(Duplex) Memory Stream (Need Advise)
    3. During downloading, check if stream has enough data to capture the first frame, which is at X sec. (Need Advise)
    4. Capture the first frame, then stop downloading

    For 2, I've realized that node.js will have Duplex Stream on coming v0.9.x, but it seems not working properly. Anyone who has good idea to implement bullet 2,3 ?