Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (33)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

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

Sur d’autres sites (2546)

  • ffmpeg rtmp streaming process exit

    12 août 2013, par Samson

    I'm using ffmpeg to capture jpeg images from an rtmp stream. Here is the command I use :

    /usr/local/bin/ffmpeg -threads 4 -i rtmp://..../chat/mp4:<variable>.mp4
    -q:v 0.6 -r 15 -s 320x240 /frames/10021237_data/frame-%0999d.jpg

    ffmpeg version N-55388-g9386f33 Copyright (c) 2000-2013 the FFmpeg developers
     built on Aug  8 2013 14:07:38 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
     configuration:
     libavutil      52. 41.100 / 52. 41.100
     libavcodec     55. 24.100 / 55. 24.100
     libavformat    55. 13.102 / 55. 13.102
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 82.100 /  3. 82.100
     libswscale      2.  4.100 /  2.  4.100
     libswresample   0. 17.103 /  0. 17.103
    Input #0, flv, from &#39;rtmp://......./mp4:10021237.mp4&#39;:
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: h264 (Main), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 1.92 tbr, 1k tbn, 40 tbc
       Stream #0:1: Audio: nellymoser, 44100 Hz, mono, flt
    [swscaler @ 0x1910000] deprecated pixel format used, make sure you did set range correctly
    Output #0, image2, to &#39;/frames/10021237_data/frame-%0999d.jpg&#39;:
     Metadata:
       encoder         : Lavf55.13.102
       Stream #0:0: Video: mjpeg, yuvj420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 15 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> mjpeg)
    Press [q] to stop, [?] for help
    </variable>

    However after a few minutes I get this line (before the process exits) :

    video:5264kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000408%

    What exactly is the "muxing overhead" and why is it causing a crash ? Can I solve this or get it some other way (by restarting the process when it exits) ?

    EDIT :

    Actually it's not a crash. I'm running this command from a PHP CLI when a stream starts :

    $command = "/usr/local/bin/ffmpeg -i ".$rtmp." -q:v 0.6 -r 12 -s 320x240 ".__DIR__."/".$dir."/".$naming." >/dev/null 2>/dev/null &amp;";
    shell_exec($command);

    but when one stops streaming all the ffmpeg processes end. Is there a way to make them independent ?

    Even opening 2 terminals and running the command (with different rtmp s)in each (for different streams), killing one of them closes the other one also.

    Bottom line is : How can I make 2 ffmpeg instances independent so as killing one does not kill the other. Is this behaviour expected ?

  • ffmpeg live stream overlay issues,while any one of the stream is lost other streams are getting stuck

    29 mars 2013, par Samy

    So far we have done

    We have a video chat client which has a set of 9 video streams (users) with
    h.264 codec using Adobe FMS. Now, using ffmpeg we are able to combine these
    streams into one stream using the overlay (video) and amix (audio) filters.
    We are able to send the single combined stream to a live streaming service.
    The stream of the active speaker is shown in a bigger size using the scale
    property of ffmpeg.

    Code as follows :

    ffmpeg -i "rtmp://localhost/live/mystream" -i "rtmp://localhost/live/mystream2 " -i "rtmp://localhost/live/mystream3 "-filter_complex"nullsrc=size=300x300 [b1];[0:v] setpts=PTS-STARTPTS,scale=100x100 [s1];[1:v] setpts=PTS-STARTPTS,scale=200x200 [s2];[2:v]setpts=PTS-STARTPTS,scale=100x100 [s3];[b1][s1] overlay=shortest=1 [b1+s1];[b1+s1][s2] overlay=shortest=1 [b1+s2];
    [b1+s2][s3] overlay=shortest=1:x=100" out.mp4

    Help Needed in the following 2 major issues. Any help would be appreciated.

    1. Whenever the active speaker changes, the stream of that user should be shown in a bigger
      size. is this possible to do without restarting the ffmpeg process ?

    2. Right now, if one of the 9 streams stops, the ffmpeg process crashes.

  • How do I correctly convert .avi to .flv with ffmpeg ? [closed]

    25 septembre 2012, par terbooter

    UPDATE
    Shame on me )
    I chacked red5 logs again and found that I placed converted files to wrong place.
    Now all works fine

    I have two red5 apps.

    1. Recorder. It can record live stream and save it to flv file to disk

      private void startRecord(String uid, String name, IConnection connection) {
         // Get a reference to the current broadcast stream.
         ClientBroadcastStream stream = (ClientBroadcastStream) this.getBroadcastStream(
                 connection.getScope(), name);
         try {
             // Save the stream to disk.
             String path = uid + "/" + name;
             stream.saveAs(path, true);

             System.out.println("file..:" + stream.getSaveFilename());

         } catch (Exception e) {
             System.out.println("Error while saving stream: " + name + e);
         }
      }

      private void stopRecord(String name) {
         IConnection conn = Red5.getConnectionLocal();
         System.out.println("Stop recording show for: {}" + conn.getScope().getContextPath());

         ClientBroadcastStream stream = (ClientBroadcastStream) this.getBroadcastStream(conn.getScope(), name);
         // Stop recording.
         if (stream != null) {
             stream.stopRecording();
         }
      }
    2. Second red5 app (Chat) streams recorded flv file to flash client

      public static String serverStreamCreate(String path, String streamName) {

         IServerStream serverStream = StreamUtils.createServerStream(Red5.getConnectionLocal().getScope(), streamName);
         SimplePlayItem item = SimplePlayItem.build(path);

         IPlaylistController controller = new MyPlayListController();

         serverStream.setPlaylistController(controller);
         serverStream.setRepeat(false);
         serverStream.addItem(item);
         serverStream.addItem(item);
         serverStream.start();
         return streamName;
      }

    If I record stream from flash client to flv file with Recorder and after that stream this flv file back to client with Chat, all works fine.

    Now I want to convert avi file to flv and stream it from red5 app to flash client.
    I used ffmpeg

    ffmpeg -i 24.avi -ar 22050 -an -f flv -b 500k -s 320x240 -y 24_c.flv

    But if I stream 24_c.flv from Chat app flash client have no video.
    24_c.flv cant be playd by VLC player and have same code information as flv file created by Recorder red5 app.

    I really dont know where to dig.