Recherche avancée

Médias (91)

Autres articles (58)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (8190)

  • I need to build web service that receive video files, and encode these files using ffmpeg API [on hold]

    19 août 2015, par jobin

    I need to build web service that receive video files, and encode these files using ffmpeg API.

    from where I should start ?

    Note : I need to host this service on windows server.

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

  • Set fake duration on h264 video

    1er février 2017, par Ibrahim

    I have a script that fetches multiple chunks of a video from one place and streams it as a single video to other place (to Kodi player).

    Everything seems to work fine except one thing that bothers me, the player doesn’t seem to know how long the video is, therefore the total duration increments as the video plays.

    I do know the duration of the video from an xml file that contains a link to all the chunks, but I don’t know how to write that in the metadata of the first chunk.

    The video codec is h264, but I’m not sure if it is wrapped in some container, like mp4.

    Here is the ffmpeg -i output for the first chunk :

    ffmpeg version 3.1.5 Copyright (c) 2000-2016 the FFmpeg developers
     built with Apple LLVM version 8.0.0 (clang-800.0.38)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.1.5 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --disable-lzma --enable-vda
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 48.101 / 57. 48.101
     libavformat    57. 41.100 / 57. 41.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 47.100 /  6. 47.100
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    [mpegts @ 0x7fc3c6000000] start time for stream 0 is not set in estimate_timings_from_pts
    Input #0, mpegts, from '/Users/ibra/Desktop/daTgXic4JOI.ts':
     Duration: 00:00:17.56, start: 0.000000, bitrate: 1220 kb/s
     Program 1
       Stream #0:0[0x102]: Data: timed_id3 (ID3  / 0x20334449)
       Stream #0:1[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:2[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 150 kb/s

    And here is a messy screenshot of the file opened in a hex editor :
    https://www.evernote.com/l/AWlILw5PcmVEl4fSFitOfS2M8Wzy1WTVSZc

    Any suggestions of how to insert the video duration in the metadata of the first chunk ?

    I cannot download the all the chunks and then concat in a single file because this will take too much time and the streaming must be instantly.