Recherche avancée

Médias (91)

Autres articles (14)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (7964)

  • libavutil : Hook up the rest of the gcc specific attributes to clang as well

    21 mars 2017, par Martin Storsjö
    libavutil : Hook up the rest of the gcc specific attributes to clang as well
    

    Hook up all attributes that don’t have a MSVC specific version at the
    moment.

    See f637046d313 for details.

    These don’t seem to be critical for building with clang in MSVC mode
    though, and thus haven’t been hooked up until now.

    These seem to build fine with as old clang as 3.3 at least.
    (clang 3.3 disguises itself as gcc 4.2 normally, so all of these
    have been used for clang before, except for av_cold.)

    The clang version numbers themselves are useless for detecting what
    attributes are available, since Apple’s clang builds use a completely
    different versioning (presenting itself as e.g. clang 8.0 instead
    of 3.8).

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavutil/attributes.h
  • Video streaming to YouTube using JavaScript and Java

    28 septembre 2020, par user1597121

    I'm trying to stream live video from a user's browser to YouTube Live. I already have the following working :

    &#xA;

      &#xA;
    1. Capture video from the webcam using navigator.mediaDevices.getUserMedia
    2. &#xA;

    3. Send video data to the server via WebSocket by periodically invoking this function :
    4. &#xA;

    &#xA;

    function getFrame(video)&#xA;{&#xA;    var canvas = document.createElement(&#x27;canvas&#x27;);&#xA;    canvas.width = video.videoWidth;&#xA;    canvas.height = video.videoHeight;&#xA;    canvas.getContext(&#x27;2d&#x27;).drawImage(video, 0, 0);&#xA;&#xA;    return canvas.toDataURL(&#x27;image/png&#x27;, 1);&#xA;}&#xA;

    &#xA;

      &#xA;
    1. Creating a live broadcast and stream on YouTube via their API and receiving the RTMP info where they expect the video stream to be sent.
    2. &#xA;

    &#xA;

    This is where I seem to be stuck. I'm not sure how to send the video data from my Java server to YouTube's RTMP endpoint. I've looked into using Red5 or ffmpeg, but haven't been able to find an example where the data is continually being sent via WebSocket. Rather, there's always some "stream" that is being redirected to YouTube, coming in on a dedicated port, or perhaps from a pre-recorded video file.

    &#xA;

    I have very limited knowledge of how video streaming works, so that's presumably making things more difficult than they should be. I'd really appreciate some help with getting this figured out. Thank you !

    &#xA;

  • FFMPEG and Matplotlib for animations - strange outputs ?

    27 juin 2020, par user13132640

    I'm trying to create animations using FFMPEG and matplotlib. Using the below code, I am creating the FFMpeg writer, and then using a loop, writing a series of graphs to the animation. However, the outputs I'm getting are very strange ; sometimes, when I watch the .mp4 file, the first 5 seconds are blank, then the video "ends" (the playback time on my media player says that it's complete), and at that point, my animation shows up. Other times, some frames are missing or skipped. I've tried searching around, but frankly I haven't found anyone with similar issues.

    &#xA;

    I just installed the latest version of FFMpeg today.

    &#xA;

    FFMpegWriter = manimation.writers[&#x27;ffmpeg&#x27;]&#xA;metadata = dict(title=&#x27;Animation test&#x27;, artist=&#x27;name&#x27;)&#xA;writer = FFMpegWriter(fps=1, metadata=metadata) # 1 frames per second, each year is 1 second&#xA;

    &#xA;

    Then, the plotting part...(I've excluded the code where I setup the fig, ax etc.)

    &#xA;

    with writer.saving(fig, "animation.mp4", dpi=200):&#xA;    year = "2005"&#xA;    for i in range(4):&#xA;&#xA;        d1_plot = d1[d1[&#x27;Year&#x27;].str.contains(year, na=False)]&#xA;        ax.scatter(d1_plot["Lat"], d1_plot["Long"], c=&#x27;g&#x27;, s=d1_plot["Size"], transform=ccrs.PlateCarree())&#xA;        ax.set_title(year)&#xA;        writer.grab_frame()&#xA;        year = str(int(year)&#x2B;1)&#xA;

    &#xA;