Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (24)

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

  • 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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (6028)

  • Streaming jpegs to a video on my server

    2 décembre 2013, par Andrew Simpson

    I found a solution to my problem IF I was using a Linux/UNIX machine. It is FFServer from the tools from FFMPEG.

    I had been using FFMPEG on my client Winform Desktop C# to convert jpegs into an OGG video file for playback.

    I have now been tasked with uploading the jpegs to my server and rendering it as a video.

    Optimum, I would start an FFMPEG process on my client PC and supply its stdin with jpegs in byte array format. I have achieved this (I have looked around) but is there a way to redirect the stdoutput to my server that can be picked up by my code on the server and render in real-time to my web User ?

    I have looked on the ffmpeg web site but I am unsure how to 'fit' it in with my process.

    This is my code so far :

       public byte[] EncodeAndUploadImages(string _args1, string _fn)  
       {
           byte[] _data = null;
           try
           {
               clientBuild = new Process();
               clientBuild.StartInfo.WorkingDirectory = Environment.CurrentDirectory;
               clientBuild.StartInfo.Arguments = " -f mjpeg -r 30 -i - -c:v libtheora -q:v 7 -r 30 -f ogg -";
               clientBuild.StartInfo.FileName = Environment.CurrentDirectory + @"\ffmpeg.exe";
               clientBuild.StartInfo.UseShellExecute = false;
               clientBuild.StartInfo.RedirectStandardOutput = true;
               clientBuild.StartInfo.RedirectStandardError = true;
               clientBuild.StartInfo.RedirectStandardInput = true;
               clientBuild.StartInfo.CreateNoWindow = true;
               clientBuild.StartInfo.LoadUserProfile = false;
               clientBuild.EnableRaisingEvents = true;    
               clientBuild.Start();

               using (BinaryWriter bw = new BinaryWriter(clientBuild.StandardInput.BaseStream))
               {
                  //I am simulating a stream of jpegs coming in////////////////
                   for (int i = 1; i < 20; i++)
                   {
                       using (MemoryStream ms = new MemoryStream())
                       {
                           System.Diagnostics.Debug.Write(i.ToString("00000"));
                           Bitmap bmp = new Bitmap("h:\\streamin\\" + i.ToString("00000") + ".jpg");
                           bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
                           bw.Write(ms.ToArray());                          
                           bmp.Dispose();
                           ms.Close();
                       }
                   }
                   bw.Close();
               }

               // I need some in my ffmpeg arguments to do something here//////  
               mStandardOutput = clientBuild.StandardOutput.BaseStream;
               mStandardOutput.BeginRead(mReadBuffer, 0, mReadBuffer.Length, StandardOutputReadCallback, null);
               clientBuild.WaitForExit();
               _data = mStandardOutputMs.ToArray();
               mStandardOutput.Close();
           }
           catch (Exception _ex)
           {

           }
           finally
           {
               clientBuild.Dispose();
           }
           return _data;
       }

    Thanks

  • Save taken snapshot

    8 octobre 2014, par User056

    I have done everything how is in this question. everything is alright except one. I can’t save the taken snapshot. If I’ll follow with debug everything is alright.. what’s wrong ?

    public class FFMPEG
    {
       Process ffmpeg;
       public void exec(string input, string parametri, string output)
       {
           ffmpeg = new Process();

           ffmpeg.StartInfo.Arguments = " -i " + input + (parametri != null ? " " + parametri : "") + " " + output;
           ffmpeg.StartInfo.FileName = HttpContext.Current.Server.MapPath("~/ffmpeg.exe");
           ffmpeg.StartInfo.UseShellExecute = false;
           ffmpeg.StartInfo.RedirectStandardOutput = true;
           ffmpeg.StartInfo.RedirectStandardError = true;
           ffmpeg.StartInfo.CreateNoWindow = true;

           ffmpeg.Start();
           ffmpeg.WaitForExit();
           ffmpeg.Close();
       }

       public void GetThumbnail(string video, string jpg, string velicina)
       {
           if (velicina == null) velicina = "640x480";
           exec(video, "-ss 00:00:06 " + velicina, jpg);
       }

    }


    FFMPEG f = new FFMPEG();
               f.GetThumbnail(Server.MapPath("~/Uploads/" + unique), Server.MapPath("~/Thumbnails/" + unique.Remove(unique.IndexOf(".")) + ".jpg"), "1200x223");
  • PHP create video thumbnail from remote url

    23 mars 2017, par user2918057

    I’ve my video storage on google cloud, I need to create the thumbnail for my videos it’s gonna be remote, I tried to use FFmpeg to create and getting the content of the thumbs, but it’s not working, it just returns null for me.

    public function create_video_thumb($video){

           $ffmpeg = '/usr/bin/ffmpeg';

           try{

               $cmd = "ffmpeg -i $video -deinterlace -an -ss 00:00:10 -vframes 1 -f image2 'test.jpg' ";

               $return = array(
                   'success'=>true,
                   'content' => $cmd
               );

           }catch (Exception $e){
               $return = $e->getMessage();
           }


           return   $return;
       }

    Return :

    {
         "sucess":true,
         "content":null
    }