Recherche avancée

Médias (91)

Autres articles (101)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

Sur d’autres sites (14017)

  • alternative for ffmpeg without using ffmpeg

    24 mars 2016, par sanoj lawrence

    amusing following code to get image from video(snapshot)

    <?php
    $ffmpeg = 'ffmpeg\bin\ffmpeg.exe';
    $video  = 'upload/'.$location;
    $image  = 'upload/thumb/'.$random_name.'.jpg';
    $second = 1;
    $cmd = "$ffmpeg -i $video 2>&1";
    if (preg_match('/Duration: ((\d+):(\d+):(\d+))/s', `$cmd`, $time)) {
       $total = ($time[2] * 3600) + ($time[3] * 60) + $time[4];
       $second = rand(1, ($total - 1));
    }
    $cmd = "$ffmpeg -i $video -deinterlace -an -ss $second -t 00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg $image 2>&1";
    $return = `$cmd`;
    ?>

    how do i get snapshot form video without using ffmpeg

    by using jquery or java is it possible like extraction snapshot and video duration for video

    because recently i found this using id3 detecting video duration etc.

  • FFmpeg - divide single .webm video into multiple videos (each representing part of the screen) specifying rows and columns count

    23 mai 2022, par salveiro

    Can FFmpeg divide one big rectangular video into x smaller rectangular ones ?
What would be a command for it ?

    


    Can we parametrize the command with number of rows and columns we desire ?

    


    Can we somehow prevent loosing pixel precision when command is provided with improper rows/column count for source video resolution ?

    


  • How can I capture and record only specific part of the desktop using ffmpeg ?

    23 juillet 2018, par Benzi Avrumi

    This is how I’m using now to record the desktop.

    Using ffmpeg.exe : ffmpeg -f gdigrab -framerate 24 -i desktop -preset ultrafast -pix_fmt yuv420p out.mp4

    Or using csharp :

    using System;  
       using System.Collections.Generic;  
       using System.Linq;  
       using System.Text;  
       using System.Threading.Tasks;  
       using System.IO;  
       using System.Diagnostics;  

       namespace Ffmpeg_App  
       {  
           class Ffmpeg  
           {  
               Process process;  

               public void Start(string FileName, int Framerate)  
               {  
                   process = new System.Diagnostics.Process();  
                   process.StartInfo.FileName = @"D:\ffmpegx86\ffmpeg.exe"; // Change the directory where ffmpeg.exe is.  
                   process.EnableRaisingEvents = false;  
                   process.StartInfo.WorkingDirectory = @"D:\ffmpegx86"; // The output directory  
                   process.StartInfo.Arguments = @"-f gdigrab -framerate " + Framerate + " -i desktop -preset ultrafast -                                                                     pix_fmt yuv420p " + FileName;  
                   process.Start();  
                   process.StartInfo.UseShellExecute = false;  
                   process.StartInfo.CreateNoWindow = false;  
                   Close();  
               }  

               public void Close()  
               {  
                   process.Close();  
               }  
           }  
       }  

    And using it like this for example :

    Ffmpeg fpeg = new Ffmpeg();


       private void Start_Click(object sender, EventArgs e)  
               {  
                   fpeg.Start("test.mp4", 24);  
               }  


       private void Stop_Click(object sender, EventArgs e)  
               {  
                   fpeg.Close();  
               }

    This will record the entire desktop window to a video file.
    But how can I record a specific rectangle area in the desktop ? For example to record only the right bottom corner rectangle size 10x10.

    So when I will play the video file I will see full screen video but only of the right bottom corner of the desktop.