Advanced search

Medias (91)

Other articles (62)

  • La sauvegarde automatique de canaux SPIP

    1 April 2010, by

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

  • Script d’installation automatique de MediaSPIP

    25 April 2011, by

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 April 2011, by

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

On other websites (5224)

  • nreco wrapper bitmap streaming through rtmp

    30 April 2015, by pavel63

    I’m developing an application for real time streaming.
    capture frames from video devices and encoding with a ffmpeg wrapper called nreco.

    the problerm is that if i try to stream encoded video to red5 via rtmp on red5 server, connection is immediatily closed.

    this is the code i use to configure the output streaming:

    ffMpegTask = videoConv.ConvertLiveMedia(
        Format.raw_video,
        outstream,
        Format.flv,
        new ConvertSettings()
        {
            CustomInputArgs = " -re -pix_fmt bgr24 -video_size 800x600 ",
            CustomOutputArgs = " -acodec copy -vcodec libx264 -pix_fmt yuv420p rtmp://127.0.0.1/live/stream ",  
        });

         ffMpegTask.Start();

    adding frame this way:

    void camera_Frame(object sender, FrameEventArgs e)
    {
      Bitmap item = e.Frame;

      BitmapData bd = item.LockBits(new Rectangle(0, 0, item.Width, item.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
      byte[] buf = new byte[bd.Stride * item.Height];
      Marshal.Copy(bd.Scan0, buf, 0, buf.Length);
      ffMpegTask.Write(buf, 0, buf.Length);
      item.UnlockBits(bd);
    }  

    any help?

  • nreco wrapper bitmap streaming through rtmp

    16 April 2021, by pavel63

    I'm developing an application for real time streaming.
capture frames from video devices and encoding with a ffmpeg wrapper called nreco.

    



    the problerm is that if i try to stream encoded video to red5 via rtmp on red5 server, connection is immediatily closed.

    



    this is the code i use to configure the output streaming:

    



    ffMpegTask = videoConv.ConvertLiveMedia(
     Format.raw_video,
     outstream,
     Format.flv,
     new ConvertSettings()
     {
         CustomInputArgs = " -re -pix_fmt bgr24 -video_size 800x600 ", 
         CustomOutputArgs = " -acodec copy -vcodec libx264 -pix_fmt yuv420p rtmp://127.0.0.1/live/stream ",   
     });

      ffMpegTask.Start();


    



    adding frame this way:

    



    void camera_Frame(object sender, FrameEventArgs e)
{
   Bitmap item = e.Frame;

   BitmapData bd = item.LockBits(new Rectangle(0, 0, item.Width, item.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
   byte[] buf = new byte[bd.Stride * item.Height];
   Marshal.Copy(bd.Scan0, buf, 0, buf.Length);
   ffMpegTask.Write(buf, 0, buf.Length);
   item.UnlockBits(bd);
}  


    



    any help?

    


  • Android HLS : Any way to edit the m3u8 file so that I know which segment is currently streaming/playing in my player using HLS

    1 August 2014, by hclee

    I am now working on a VOD project using HLS.

    I use the VideoViewBuffer in VitamioDemo to stream my video that is stored in my local server.
    The Vitamio library is awesome that I am able to stream the video, getting the bit rate, buffering percentage and some metadata.

    We use ffmpeg to convert the video into m3u8 and the corresponding ts files.
    But now our team want to know which segment (which ts file) of the video the HLS is currently streaming.

    That’s a very important part in our project but we get stuck in this point.

    I tried to use the MediaMetadata in Vitamio but only the Duration of the video is found.
    I am wondering if we can add some metadata in the m3u8 file so that we can retrieve the name of the current segment during streaming.
    eg:
    The original m3u8 is like this:
    #EXTINF:10.500000,
    stream00000.ts

    Is it possible for me to change it as follows:
    #EXTINF:10.500000, name of segment
    stream00000.ts

    But all I can get using MediaMetaDataRetriever is null except for the duration.

    It seems that no body have done this before so I can’t find any very useful information about this.

    Do anybody how to implement this?
    Or should I use some packet sniffer to monitor the network traffic by myself?
    Or Would MediaScanner be helpful?
    Or I need to use code in android.os?

    Thanks in advance!