Recherche avancée

Médias (91)

Autres articles (38)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (6037)

  • Revision 49588 : Ajoute le bouton google+1 si le plugin eponyme (oua...) est actif

    14 juillet 2011, par yaquoi@… — Log

    Ajoute le bouton google+1 si le plugin eponyme (oua...) est actif

  • How to encrypt webm file using Clear Key to play with Google's Shaka Player ?

    23 janvier 2017, par Nam Pham

    I’m developing a small system which will be used to streaming protected content over the web with MSE/EME API.

    This is some tools I’m using :

    I can create .webm file and package them using shaka-packager into mpd file in order to feed to shaka-player. But following by the Clear Key section in the Shaka docs I have to encrypt webm file require pair of KeyId and Key.
    By using webm_crypt, I can created encrypted content by follow this document on 2.2.7 but I have no idea how to get the key pairs for the shaka-player DRM system.

  • Empty error object produced by ffprobe in Google Cloud Function

    20 septembre 2023, par willbattel

    Update : After more digging I found an open GitHub issue where others appear to be encountering the same behavior.

    



    


    I have a Google Cloud Function (2nd gen) in which I am trying to use ffprobe to get metadata from a video file stored in a Google Cloud Storage bucket. It is my understanding that I can generate a signed url and, by passing that directly to ffprobe, avoid loading the entire video file into memory. I generate a signed url and pass it to ffprobe, and then parse the output like so :

    


    import ffmpeg from 'fluent-ffmpeg'
import ffprobeStatic from 'ffprobe-static'

async function getVideoData(srcFile: File) {
    const [signedUrl] = await srcFile.getSignedUrl({
        action: 'read',
        expires: (new Date()).getMilliseconds() + 60_000,
    })

    const videoData: ffmpeg.FfprobeData = await new Promise((resolve, reject) => {
        ffmpeg.setFfprobePath(ffprobeStatic.path)
        ffmpeg.ffprobe(signedUrl, (err, data) => {
            if (err) {
                reject(err)
            }
            else {
                resolve(data)
            }
        })
    })

    return videoData
}


    


    This code works (with the same signed URL) locally on my macOS machine, but does not when deployed in a 2nd generation Google Cloud Function. In the latter case, data is undefined and err is {}.

    


    My main question is how to properly use ffprobe in 2nd gen Google Cloud Functions. I have tried to research this but documentation on ffmpeg/ffprobe on GCP is sparse. I'm also trying to figure out exactly why the error object err is empty...it's not very helpful 😅

    


    Additional info :

    


      

    • Environment : Google Cloud Functions 2nd Gen
    • 


    • Runtime : Node 20
    • 


    • "ffprobe-static" : "3.1.0",
    • 


    • "fluent-ffmpeg" : "2.1.2"
    • 


    


    Thanks in advance.