Recherche avancée

Médias (91)

Autres articles (59)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

Sur d’autres sites (10151)

  • How to convert live video stream to mp4 format stream using FFmpeg API [on hold]

    27 avril 2017, par krish

    Using FFmpeg API :ConvertLiveMediaTask

    ConvertLiveMedia(Stream inputStream, string inputFormat, Stream outputStream, string outputFormat, ConvertSettings settings) ;

    Requirement : want to convert video file from any format to mp4 format and conversion should happen on fly using ConvertLiveMedia API

    Please help me for this problem, I googled so many times i didnt get a solution for this.

    Here is my code

    const int megabyte = 1024 * 1024;

    static string theFilename = @"F:\BackUp\Short video clip-nature.avi";

    static string[] VideoExtension = { ".ac3", ".aiff", ".alaw", ".asf", ".ast", ".mp4", ".au", ".avi", ".caf"};

    static void Main(string[] args)
    {
        ChunkedData(theFilename, 0);
    }              

    private static void ChunkedData(string theFilename, long whereToStartReading = 0)
    {
         string extension = System.IO.Path.GetExtension(theFilename);

         Stream chunkStream = new MemoryStream();

         if (VideoExtension.Any(Vi => extension.Contains(Vi)))
         {
              FileStream fileStram = new FileStream(theFilename, FileMode.Open, FileAccess.Read);

              using (fileStram)
              {
                    byte[] buffer = new byte[megabyte];

                    fileStram.Seek(whereToStartReading, SeekOrigin.Begin);

                    int bytesRead = fileStram.Read(buffer, 0, megabyte);

                    while (bytesRead > 0)
                    {
                        // Here i receive and implement
                        chunkStream = StreamData(buffer, bytesRead, extension);

                        bytesRead = fileStram.Read(buffer, 0, megabyte);
                    }
             }
         }                          
    }              

    private static Stream StreamData(byte[] buffer, int bytesRead, string formate)
    {
       // Have no idea what to give for ConvertSettings, i simply pass a object
       ConvertSettings settings = new ConvertSettings();

       var ffmpeg = new FFMpegConverter();

       Stream inputStream = new MemoryStream(buffer);

       Stream outputStream = new MemoryStream();

       try
       {
          // Here im getting outputStream capacity = 0, length = 0, position =0.
          var task = ffmpeg.ConvertLiveMedia(inputStream, formate, outputStream, Format.mp4, settings );
          task.Start();

       }
       catch (Exception ex)
       {
             Console.WriteLine(ex.ToString());
       }

       return outputStream;
    }
  • OpenCV won't open some videos of many videos of the same format

    2 octobre 2013, par OpenMinded

    I am using Visual Studio 2012 with OpenCV 2.4.6.

    I have 4 videos that I recorded one by one with my Nokia Lumia 920. OpenCV won't open .mp4 format from my phone by the default. So I converted all these 4 videos using Sony Vegas to .mp4 with the SAME preferences for all of them. Now the problem is that OpenCV has a problem to open two of them. The other two works like a charm with no problem. Below is the information about codec that I used (Yes, it is the same for all videos) :

    Codec info

    And this is the error :

    Error

    Why is it so that they are the same type but only a few of them are loaded properly ?

  • Determine if video stream is a live stream

    17 mai 2018, par David

    Is there a way to use ffprobe or ffmpeg to determine if a given stream (for instance http://server/stream or rtmp://server/stream...) is an on-going live stream or is fixed stream (i.e. recorded in the path with no live updates) ?