Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (70)

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

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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (10327)

  • Merging multiple mjr files into webm file based on timestamp of creation with FFMPEG

    2 novembre 2020, par Sankalpa Sarkar

    I am trying to combine multiple mjr files into a single webm file with blank gaps in the middle, based on certain timestamps. As an illustration, suppose I have three clips A (running from 3-3.10), B (running from 3.15-3.30) and C (3.35-3.50).

    


    To combine these, I would like to have a singular merged webm file with A running from 3 to 3.10, followed by a blank screen from 3.10-3.15, then B from 3.15 to 3.30, followed by a blank screen from 3.30 to 3.35 and then C from 3.35 to 3.50. Thus the entire video must be from 3 to 3:50 with the specifications.

    


    So far, I have to obtain the filename and date/time from the directory as and when they are created to determine the specific timestamps. For the same, I am using this code snippet :

    


    FANAME=\/bin/ls -1 *video.mjr | grep "$AGENTID" | sort -t- -k5 | head -1\
AGENTSTAT=`stat -c %y $FANAME`
ATIME=`date +%s -d"$AGENTSTAT"`


    


    Running a loop through all the files, how do I obtain this functionality ?

    


  • Specify percentage instead of time to ffmpeg

    3 mai 2024, par user779159

    To get a thumbnail from an image halfway through the video I can do ffmpeg -ss 100 -i /tmp/video.mp4 -frames:v 1 -s 200x100 image.jpg. By using -ss 100 it gets a thumbnail at 100 seconds (which would be halfway through the video assuming the video is 200 seconds long).

    



    But if I don't know the exact length of the video, in my application code I would need to use something like ffprobe to first determine the length of the video, and then divide it by 2 to get the thumbnail time.

    



    Is there a way to get ffmpeg to get the thumbnail at the percentage of the video you want ? So instead of specifying -ss 100, something like -ss 50% or -ss 20% to get a thumbnail from halfway or 20% into the file ?

    



    I know I can do this through application code, but it would be more efficient if there's a way for ffmpeg to handle this itself.

    


  • getting video duration with ffmpeg, php function

    4 avril 2020, par keithp

    I have FFMpeg installed and I know it's functional, but i'm trying to get the duration time from a flv video through PHP but when I use this code :

    



    function mbmGetFLVDuration($file)

    



    /*  
* Determine video duration with ffmpeg   
* ffmpeg should be installed on your server.  
*/  

//$time = 00:00:00.000 format   
$ffmpeg = "../ffmpeg/ffmpeg";

$time =  exec("$ffmpeg -i $file 2>&1 | grep 'Duration' | cut -d ' ' -f 4 | sed s/,//");   

$duration = explode(":",$time);   
$duration_in_seconds = $duration[0]*3600 + $duration[1]*60+ round($duration[2]);   

return $duration_in_seconds;   


    



    



    and :

    



    $duration = mbmGetFLVDuration('http://www.videoaddsite.com/videos/intro.flv') ;
echo $duration ;

    



    I get an output of 220. THe video is 3:40. Can any help me on what i'm doing wrong, or if there's something else I can use ?