Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (95)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (8796)

  • Is there a way to play fragmented mp4 at random chunk ?

    4 février 2021, par Kate Evklid

    Say there is a video rendered into fragmented mp4 consisting of a number of chunks/fragments. The question is : after the init was loaded to MediaSource buffer, is there a way to play a random fragment ?

    


    A small research of the thing's specifications gave little understanding of the problem. Fragments seem to have a kind of an order IDs hardcoded in them. It's a fairly reasonable idea to include it in a file in case of unreliable connection and asynchronous fetching while streaming content, but is there a way to parse a chunk and change its ID using JavaScript ?

    


    The code below is just playing 2 minute video split into 12 fragments based on user's time and is supposed to be able to start at any chunk (not only the first) and then to repeat.

    


    let mediaSource = new MediaSource
document.getElementById('video').src = URL.createObjectURL(mediaSource)

mediaSource.addEventListener('sourceopen', () => {
    let buffer = mediaSource.addSourceBuffer('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')
    let loadToBuffer = url => {
        let xhr = new XMLHttpRequest
        xhr.responseType = 'arraybuffer'
        xhr.open('GET', url, true)
        xhr.addEventListener('loadend', () => buffer.appendBuffer(new Uint8Array(xhr.response)))
        xhr.send()
    }
    loadToBuffer('video/init.mp4')
    setInterval(() => loadToBuffer('video/video' + (Math.floor(new Date().getTime() / 1000 / 10) % 12) + '.m4s'), 10 * 1000)
})


    


  • PHP file that outputs a video does not play

    2 septembre 2014, par Rob Avery IV

    So, I created a php file that has the following code (abridged version) :

    <?php

    //Full version of file does a lot of database stuff

    //Get $path of file

    header('Content-type: video/mp4');
    header('Content-Length: '.filesize($path)); // provide file size

    $contents = file_get_contents($path);
    echo $contents;

    I use this php to obtain the video content, so I don’t have to hardcode the video path into the HTML and so I can keep the videos outside public_html. I have tested this before, and it works with other video files.

    Here is a timeline of where this file has been and what I’m trying to do :

    1. File is uploaded
    2. File is converted to mp4 using ffmpeg-php
    3. Stream it (similar to youtube) using the php code above

    The file uploads and converts fine (I tested this by downloading the video file locally after it has been converted and I was able to play the video). I use the following ffmpeg command to convert ALL videos to mp4 :

    "ffmpeg -i '".$srcFile."' -vcodec h264 -acodec aac -strict -2 -f mp4 '".$destFile."'";

    My only problems is with step 3. When I use the above php file to output the video, it doesn’t work sometimes (Right now, it only works with a few videos). Every file I’m outputting is converted the same way with the above ffmpeg command.

    How do I make it so I am able to convert all (or at least most) video files to be able to stream them ?

  • ffmpeg output doesn't play on multiple devices

    22 janvier 2019, par jchaykow

    I have read the other stackoverflow posts regarding this topic so I am fairly certain this is not exact duplicate.

    ffmpeg exports a video that seems to only play on select players. I want to export a video that plays on iphone/mac/general players. I have seen the suggestions for the -pix_fmt yuv420p tag but this does not seem to work anymore - I read that Mac has since changed their systems that makes it not compatible anymore.

    I am running :

    ffmpeg -start_number 1 -framerate 4 -pix_fmt yuv420p -i screen%01d.png output.mp4

    This all works fine and I can see the video by doing :

    ffplay output.mp4

    But I would like to be able to transfer this to mobile or general playback, any way to do this, ideally using ffmpeg ? I’d rather not use two tools to do 1 job.


    • Works on gmail
    • Doesn’t work on QuickTime Player
    • Doesn’t work on Flip Player
    • Doesn’t work on iPhone