Recherche avancée

Médias (0)

Mot : - Tags -/page unique

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

Autres articles (53)

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

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (6337)

  • Use the https version of the demo.

    14 septembre 2014, par blueimp
    Use the https version of the demo.
  • About Ffmpeg,Console show 'frame=0 fps=0.0 q=0.0 Lsize=0kB time=00:00:00.00' No data pull&push

    9 janvier 2019, par Lus

    I want to use Ffmpeg to pull&push video stream from HLS to RTMP.at first it’s normal,but when I open more,it’s run normally ,but no video data pull&push

    Environment:Windows64+Ngg-§rtmp-static+Ffmpeg-static+Java1.8

    It’s useless,even if I restart rtmp-server.

    ffmpeg -i xxx/live.m3u8 -vcodec h264-s 720*480 -an -f flv -y rtmp://xxx

    The first few video streams is normal,but when I open more streams (5+),
    it run normally,but no data pull.like this.

    2019-01-08 10:58:15.658  INFO ->frame=0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=720 speed=   0x
    2019-01-08 10:58:16.598  INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
    2019-01-08 10:58:16.984  INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik30.ts' for reading
    2019-01-08 10:58:17.083  INFO ->frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=744 speed=   0x    
    2019-01-08 10:58:18.033  INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
    2019-01-08 10:58:18.146  INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik31.ts' for reading
    2019-01-08 10:58:18.267  INFO ->frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=770 speed=   0x    
    2019-01-08 10:58:19.220  INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
    2019-01-08 10:58:19.317  INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik32.ts' for reading
    2019-01-08 10:58:19.415  INFO ->[http @ 0000015efb138600] Opening 'xxx/1/seghik33.ts' for reading
    2019-01-08 10:58:19.494  INFO ->frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=795 speed=   0x    
    2019-01-08 10:58:20.375  INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
    2019-01-08 10:58:20.486  INFO ->[http @ 0000015efb138600] Opening 'xxx/1/seghik34.ts' for reading
  • When using ffmpeg.exe to create video from sequence of images the result is avi file that show green color why ?

    9 janvier 2014, par user3163653

    In Form1 im taking screenshots of my screen I checked they are ok i save them to the hard disk and see they are ok.

    private void timer1_Tick(object sender, EventArgs e)
           {

               using (bitmap = (Bitmap)ScreenCapture.CaptureScreen(true))
               {

               Image mScreenImage = new Bitmap(Screen.PrimaryScreen.Bounds.Width,
                                        Screen.PrimaryScreen.Bounds.Height);
               Graphics g = Graphics.FromImage(bitmap);
               g.CopyFromScreen(0, 0, 0, 0, new Size(bitmap.Width, bitmap.Height));
               g.Dispose();
                   bitmap.Save(@"D:\Testbmp\" + counter.ToString("D6") + ".jpg", ImageFormat.Jpeg);
                   counter++;
               ffmp.PushFrame((Bitmap)mScreenImage);

               }

           }

    Then in the new class ffmp im using pipe to get the screenshots and build the avi file in real time :

    using System;
    using System.Windows.Forms;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Drawing;
    using System.IO.Pipes;
    using System.Runtime.InteropServices;
    using System.Diagnostics;
    using System.IO;

    namespace ScreenVideoRecorder
    {
       class Ffmpeg
       {
           NamedPipeServerStream p;
           String pipename = "mytestpipe";
           System.Diagnostics.Process process;
           string ffmpegFileName = "ffmpeg.exe";
           string workingDirectory;

           public Ffmpeg()
           {
               workingDirectory = Path.GetDirectoryName(Application.ExecutablePath);
               Logger.Write("workingDirectory: " + workingDirectory);
               if (!Directory.Exists(workingDirectory))
               {
                   Directory.CreateDirectory(workingDirectory);
               }
               ffmpegFileName = Path.Combine(workingDirectory, ffmpegFileName);
               Logger.Write("FfmpegFilename: " + ffmpegFileName);
           }

           public void Start(string pathFileName, int BitmapRate)
           {
               try
               {

                   string outPath = pathFileName;
                   p = new NamedPipeServerStream(pipename, PipeDirection.Out, 1, PipeTransmissionMode.Byte);

                   ProcessStartInfo psi = new ProcessStartInfo();
                   psi.WindowStyle = ProcessWindowStyle.Hidden;
                   psi.UseShellExecute = false;
                   psi.CreateNoWindow = false;
                   psi.FileName = ffmpegFileName;
                   psi.WorkingDirectory = workingDirectory;
                   psi.Arguments = @"-f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i \\.\pipe\mytestpipe -map 0 -c:v mpeg4 -r " + BitmapRate + " " + outPath;
                   process = Process.Start(psi);
                   process.EnableRaisingEvents = false;
                   psi.RedirectStandardError = true;
                   p.WaitForConnection();
               }
               catch (Exception err)
               {
                   Logger.Write("Exception Error: " + err.ToString());
               }
           }

           public void PushFrame(Bitmap bmp)
           {
               try
               {
                   int length;
                   // Lock the bitmap's bits.
                   //bmp = new Bitmap(1920, 1080);
                   Rectangle rect = new Rectangle(0, 0, bmp.Width, bmp.Height);
                   //Rectangle rect = new Rectangle(0, 0, 1280, 720);
                   System.Drawing.Imaging.BitmapData bmpData =
                       bmp.LockBits(rect, System.Drawing.Imaging.ImageLockMode.ReadOnly,
                       bmp.PixelFormat);

                   int absStride = Math.Abs(bmpData.Stride);
                   // Get the address of the first line.
                   IntPtr ptr = bmpData.Scan0;

                   // Declare an array to hold the bytes of the bitmap.
                   //length = 3 * bmp.Width * bmp.Height;
                   length = absStride * bmpData.Height;
                   byte[] rgbValues = new byte[length];

                   //Marshal.Copy(ptr, rgbValues, 0, length);
                   int j = bmp.Height - 1;
                   for (int i = 0; i < bmp.Height; i++)
                   {
                       IntPtr pointer = new IntPtr(bmpData.Scan0.ToInt32() + (bmpData.Stride * j));
                       System.Runtime.InteropServices.Marshal.Copy(pointer, rgbValues, absStride * (bmp.Height - i - 1), absStride);
                       j--;
                   }
                   p.Write(rgbValues, 0, length);
                   bmp.UnlockBits(bmpData);
               }
               catch(Exception err)
               {
                   Logger.Write("Error: " + err.ToString());
               }

           }

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

    This is the arguments im using now :

    psi.Arguments = @"-f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i \\.\pipe\mytestpipe -map 0 -c:v mpeg4 -r " + BitmapRate + " " + outPath;

    Before that I tried to use libx264 instead the mpeg4 but it didn't create the avi file good.
    The problem is that the avi file on the hard disk when I play it show just green color.
    I can play any other avi files on my hard disk but when playing this avi file I see green.

    enter image description here

    And this is what I see when im playing the avi file :

    enter image description here

    I tried to use Gspot to find if I need any codec to install and this is what I see :

    enter image description here

    And I have ffdshow installed already so what should I do now ?