Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (35)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

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

Sur d’autres sites (8051)

  • How to stream MJPEG stream to RTMP server ?

    24 octobre 2018, par geooot

    I have a MJPEG stream and I’m trying to use ffmpeg to take it as an input and stream it to an rtmp server at a defined framerate.

    I have already tried this as a command :

    ffmpeg -f mjpeg -r 60 -i http://localhost:3030/ -f flv -vcodec flv rtmp://localhost/live/test

    While ffmpeg looks like it is sending something...

    ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
      built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
      configuration : —prefix=/usr/local/Cellar/ffmpeg/4.0.2 —enable-shared —enable-pthreads —enable-version3 —enable-hardcoded-tables —enable-avresample —cc=clang —host-cflags= —host-ldflags= —enable-gpl —enable-libmp3lame —enable-libx264 —enable-libxvid —enable-opencl —enable-videotoolbox —disable-lzma
      libavutil      56. 14.100 / 56. 14.100
      libavcodec     58. 18.100 / 58. 18.100
      libavformat    58. 12.100 / 58. 12.100
      libavdevice    58.  3.100 / 58.  3.100
      libavfilter     7. 16.100 /  7. 16.100
      libavresample   4.  0.  0 /  4.  0.  0
      libswscale      5.  1.100 /  5.  1.100
      libswresample   3.  1.100 /  3.  1.100
      libpostproc    55.  1.100 / 55.  1.100
    Input #0, mjpeg, from ’http://localhost:3030/’ :
      Duration : N/A, bitrate : N/A
        Stream #0:0 : Video : mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 60 tbr, 1200k tbn, 60 tbc
    [tcp @ 0x7f95f9401ec0] Connection to tcp ://localhost:1935 failed (Connection refused), trying next address
    Stream mapping :
      Stream #0:0 -> #0:0 (mjpeg (native) -> flv1 (flv))
    Press [q] to stop, [?] for help
    [swscaler @ 0x7f95fa033e00] deprecated pixel format used, make sure you did set range correctly
    Output #0, flv, to ’rtmp ://localhost/live/test’ :
      Metadata :
        encoder : Lavf58.12.100
        Stream #0:0 : Video : flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 60 fps, 1k tbn, 60 tbc
        Metadata :
          encoder : Lavc58.18.100 flv
        Side data :
          cpb : bitrate max/min/avg : 0/0/200000 buffer size : 0 vbv_delay : -1
    frame=   20 fps=3.2 q=31.0 size=     194kB time=00:00:00.31 bitrate=4999.6kbits/s speed=0.0512x
    

    I cannot preview the stream through VLC. Weirdly enough, if I let VLC try to load the url (rtmp ://localhost/live/test) and then close ffmpeg, VLC will actually show the video stream for a few frames and then stop again.

    Help on how to achieve this would be much appreciated.

  • Switch between rtsp stream and static image input on the fly based on rtsp stream availability in ffmpeg command while recording

    3 décembre 2022, par Abdullah Farweez

    Basically there are two inputs for ffmpeg planning to execute Windows 10 OS. RTSP stream and static image. While saving frames if rtsp strram is not available or timeout occurs, then ffmpeg immediately switch to second input. If rtsp stream is back, continue with rtsp.

    


    Key expectations is that the process should not try to reconnect to rtsp source or process should not restart.

    


    Ffmpeg commands with/without pipes or gstreamer or simple proxy server or any fresh solutions with scrpts/commands/codes to try outs are highly appreciated.

    


  • Record stream from camera to file / live stream

    8 juillet 2015, par sandman

    I’m trying to stream my camera feed to a webpage. For this I’m trying to use FFmpeg to encode the data from the camera preview and output to a file. (I’m new to this, so I’m only trying to write to a file now)

    The camera feed is captured and it starts writing to a flv file but, it freezes my app after a few seconds and the resulting flv is about half a second long.

    bos is a BufferedOutputStream which servers as an input stream for the Ffmpeg ProcessBuilder.

    When a button is clicked, the Ffmpeg process is executed and the writing begins.
    But as I said, it freezes the app after a while. I tried running the Ffmpeg process in an AsyncTask, but it keeps saying FileDescriptor closed, but the app does not freeze when I do it this way, and there is no output as well.

    Here is my onPreviewFrame() :

    public void onPreviewFrame(byte[] b, Camera c) {
       if (recording) {
           int previewFormat = p.getPreviewFormat();
           Log.v(LOGTAG, "Started Writing Frame");

           im = new YuvImage(b, previewFormat, p.getPreviewSize().width, p.getPreviewSize().height, null);
           Rect r = new Rect(0, 0, p.getPreviewSize().width, p.getPreviewSize().height);
           if (bos != null)
               im.compressToJpeg(r, 40, bos);
           im = null;

           Log.v(LOGTAG, "Finished Writing Frame");
       }
    }

    If I can get this fixed, I can probably move on to live streaming.