Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (61)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (4764)

  • What is the most performant way to render unmanaged video frames in WPF ?

    27 mai 2017, par superware

    I’m using FFmpeg library to receive and decode H.264/MPEG-TS over UDP with minimal latency (something MediaElement can’t handle).

    On a dedicated FFmpeg thread, I’m pulling PixelFormats.Bgr32 video frames for display. I’ve already tried InteropBitmap :

    _section = CreateFileMapping(INVALID_HANDLE_VALUE, IntPtr.Zero, PAGE_READWRITE, 0, size, null);
    _buffer = MapViewOfFile(_section, FILE_MAP_ALL_ACCESS, 0, 0, size);
    Dispatcher.Invoke((Action)delegate()
    {
       _interopBitmap = (InteropBitmap)Imaging.CreateBitmapSourceFromMemorySection(_section, width, height, PixelFormats.Bgr32, (int)size / height, 0);
       this.Source = _interopBitmap;
    });

    And then per frame update :

    Dispatcher.Invoke((Action)delegate()
    {
       _interopBitmap.Invalidate();
    });

    But performance is quite bad (skipping frames, high CPU usage etc).

    I’ve also tried WriteableBitmap : FFmpeg is placing frames in _writeableBitmap.BackBuffer and per frame update :

    Dispatcher.Invoke((Action)delegate()
    {
       _writeableBitmap.Lock();
    });
    try
    {
       ret = FFmpegInvoke.sws_scale(...);
    }
    finally
    {
       Dispatcher.Invoke((Action)delegate()
       {
           _writeableBitmap.AddDirtyRect(_rect);
           _writeableBitmap.Unlock();
       });
    }

    Experiencing almost the same performance issues (tested with various DispatcherPriority).

    Any help will be greatly appreciated.

  • What is the most performant way to render unmanaged video frames in WPF ?

    18 avril 2017, par superware

    I’m using FFmpeg library to receive and decode H.264/MPEG-TS over UDP with minimal latency (something MediaElement can’t handle).

    On a dedicated FFmpeg thread, I’m pulling PixelFormats.Bgr32 video frames for display. I’ve already tried InteropBitmap :

    _section = CreateFileMapping(INVALID_HANDLE_VALUE, IntPtr.Zero, PAGE_READWRITE, 0, size, null);
    _buffer = MapViewOfFile(_section, FILE_MAP_ALL_ACCESS, 0, 0, size);
    Dispatcher.Invoke((Action)delegate()
    {
       _interopBitmap = (InteropBitmap)Imaging.CreateBitmapSourceFromMemorySection(_section, width, height, PixelFormats.Bgr32, (int)size / height, 0);
       this.Source = _interopBitmap;
    });

    And then per frame update :

    Dispatcher.Invoke((Action)delegate()
    {
       _interopBitmap.Invalidate();
    });

    But performance is quite bad (skipping frames, high CPU usage etc).

    I’ve also tried WriteableBitmap : FFmpeg is placing frames in _writeableBitmap.BackBuffer and per frame update :

    Dispatcher.Invoke((Action)delegate()
    {
       _writeableBitmap.Lock();
    });
    try
    {
       ret = FFmpegInvoke.sws_scale(...);
    }
    finally
    {
       Dispatcher.Invoke((Action)delegate()
       {
           _writeableBitmap.AddDirtyRect(_rect);
           _writeableBitmap.Unlock();
       });
    }

    Experiencing almost the same performance issues (tested with various DispatcherPriority).

    Any help will be greatly appreciated.

  • Stream frame from video to pipeline and publish it to HTTP mjpeg via ffmpeg

    18 juillet 2018, par Rafał Sardaw

    Let’s say I have very simple program which has been written in C++ with usage of OpenCV 3.4 under Windows 10.

    VideoCapture cap("test.avi");
    Mat frame;
    while(true){
       if (!cap.read(frame))  
       {
           break;
       }
       // SEND FRAME TO PIPE
    }

    It’s just simple example of reading frame by frame avi video, but in the end it’s going to be server-side application which produces modified stream from few ip cameras. I want to use html5 video tag to display output directly on website, but it’s quite hard to find useful information related with that topic ( for Windows ). If I understand it correctly I need to define pipeline and send there MJPEG stream, with help of FFMPEG, where FFMPEG will create local HTTP server on specific port. Anyone ever challenged similar task under Windows ? I guess that 80% of task is related with proper usage of ffmpeg command line tool, one of my priorities is minimal modification of application.

    So to make long story short, I have application which I can call directly from command line :

    stream_producer.exe CAMERA_1

    and I want to be able to see MJPEG stream under :

    http://localhost:1234

    which can be displayed on local website in intranet.

    Regards.