Recherche avancée

Médias (91)

Autres articles (58)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (9782)

  • save sequence of frame as BMP not PNG

    27 décembre 2013, par user2922938

    I extract 100 frames from video file and i save each frame as (.bmp) but i found that each frame format is PNG not BMP , how can I save sequence of frame (format as BMP not PNG as show in picture)in C# ?

    string name;            
    for ( int i = 0; i < 100; i++ )
    {
       Bitmap videoFrame = video.ReadVideoFrame( );  
       name = (i).ToString().PadLeft(5, '0');
       videoFrame.Save(@"D:\frames\" + name  + ".bmp");
       videoFrame.Dispose( );
    }

    video.Close( );
    MessageBox.Show(" Complete Convert video to sequence of image","Convert");

    enter image description here

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

  • libavcodec decode AVFrames to FIFO buffer

    6 novembre 2012, par user1175197

    My aim is to decode multiple frames of a video file, accumulate the decoded frames into a FIFO buffer and read them later on. I decode the packet to my AVFRame mFrame :

    avcodec_decode_video2(mCodecContext,mFrame,&frameFinished,&mPacket) ;

    Normally I can just copy the YUV frames from the mFrame->data[n][0] to my FIFO buffer but I am just trying to reduce the memcpy 's as much as possible. So instead of copying mFrame->data[n][0] I just want to store the mFrame (which is much smaller than the frames it points to) in the buffer and when it comes to reading I can just fetch it and reach the data.

    I tried to do this but it did not work. The AVFrames are fetched from the buffer but when you show them on the screen the video is like frozen. You may think that I am using the same mFrame and overwriting it each time I decode a packet but I am not. I am creating a new AVFrame* each time in the decode loop.

    Is this problem related to how avcodec works ? Any ideas ?

    Thanks
    mike