Recherche avancée

Médias (91)

Autres articles (60)

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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

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

  • Adaptive bit rate streaming of mp4 of different gop size using media source api

    25 décembre 2018, par wahab khurram

    I want the adaptive bitrate streaming of the mp4 video of different gop keyframe size.

    I know there are couple of options for multi bitrate streaming i.e hls, dash etc

    But I already uploaded the videos on the server each video have the 360p, 480p and 720p mp4 file and each video are having different keyframe intervals.

    So the real challenge is to make the own multi bitrate mp4 media player using the media source api

    I have brain storming all aspect.

    We can only cut the h264 at keyframe

    So my real challenge is to know the video each keyframe, the keyframe chunk duration, the offset duration and the offset byte position in the mp4 file.

    So my question is how I can get these following using ffmpeg, ffprobe or any other software.

    1- Keyframe chunk duration

    2- Offset video duration

    3- Offset byte position in video.

    The following ffprobe command give the detailed info of the each keyframe, maybe this will help

    ffprobe -i "1080p.mp4" -select_streams v -skip_frame nokey -show_frames

    Thanks !

  • NanoHTTPD in android do not streaming specific mp4 files

    2 septembre 2013, par user2739068

    I'm making Android application which makes mp4 video file
    (camera source, ffmpeg, h264 encoded)
    and streaming to webbrowser.
    but it fails to streaming when certain condition matches.(rec2.mp4)

    I checked those things--------------
    1. create mp4 file - OK
    2.NanoHTTPD streaming - Fail
     : if less than 1.4MB >> chrome downloads first and then play
     : else connection cancled
    3. other server ?
     : apache - Success
     : nginx - Success
     : tomcat - Success
    4. other mp4 file ?(rec1.mp4) - Success

    So, i thought that NanoHTTPD fails to serve specific mp4 file
    but i don't know what is the problem.

    • this is my souce code(serve function)

      public Response serve(String uri, Method method, Map headers, Map parms, Map files) {

      Context context = MainActivity.context;

      String etag = Integer.toHexString(new Random().nextInt());

      Response res = null;
      try {
         File file = new File("/sdcard/mp4files" + uri);
         BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file), (int)file.length());
         res = new Response(Status.OK, "video/mp4", bis);
         res.addHeader( "Connection", "Keep-alive");
         res.addHeader( "ETag", etag);
      } catch (FileNotFoundException e) {
         e.printStackTrace();
      }
      return res;

      }

    • mp4 files
       : rec1.mp4 - recorded by using LG built-in app
       : rec2.mp4 - recorded by using my app
      http://www.mediafire.com/?rip17r7rho8igf7

    • using latest NanoHTTPD

    • Encode option - profile:baseline, crf:30, fps:10, width/height:720/480
  • nreco wrapper bitmap streaming through rtmp

    30 avril 2015, par pavel63

    I’m developing an application for real time streaming.
    capture frames from video devices and encoding with a ffmpeg wrapper called nreco.

    the problerm is that if i try to stream encoded video to red5 via rtmp on red5 server, connection is immediatily closed.

    this is the code i use to configure the output streaming :

    ffMpegTask = videoConv.ConvertLiveMedia(
        Format.raw_video,
        outstream,
        Format.flv,
        new ConvertSettings()
        {
            CustomInputArgs = " -re -pix_fmt bgr24 -video_size 800x600 ",
            CustomOutputArgs = " -acodec copy -vcodec libx264 -pix_fmt yuv420p rtmp://127.0.0.1/live/stream ",  
        });

         ffMpegTask.Start();

    adding frame this way :

    void camera_Frame(object sender, FrameEventArgs e)
    {
      Bitmap item = e.Frame;

      BitmapData bd = item.LockBits(new Rectangle(0, 0, item.Width, item.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
      byte[] buf = new byte[bd.Stride * item.Height];
      Marshal.Copy(bd.Scan0, buf, 0, buf.Length);
      ffMpegTask.Write(buf, 0, buf.Length);
      item.UnlockBits(bd);
    }  

    any help ?