Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (69)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (8512)

  • Trouble with Cross-Origin Headers : Stripe and ffmpeg Integration in Next.js

    7 février 2024, par Duke

    I'm using this excellent template from vercel as a base for my project :

    


    https://vercel.com/templates/next.js/subscription-starter


    


    I've used it for many projects and the Stripe integration works flawlessly. However for a new project I needed to incorporate ffmpeg which relies on SharedArrayBuffer :

    


    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer


    


    So I need to set the appropriate HTTP response header which i've set in my next.config.js file as below :

    


          {
        source: '/(.*)',
        headers: [
          {
            key: 'Cross-Origin-Embedder-Policy',
            value: 'credentialless'
            // value: 'require-corp'
          },
          {
            key: 'Cross-Origin-Opener-Policy',
            value: 'same-origin-allow-popups'
          }
        ]
      }


    


    Now the issue is that settings these breaks Stripe. It blocks the request :

    


    https://js.stripe.com/v3/m-outer-3437aaddcdf6922d623e172c2d6f9278.html


    


    Which appearently loads more resources that are needed for the checkout session to function. The customer portal works but checkout doesn't. I've literally tired every possible permutation of headers with different values but in all cases either Stripe works but ffmepg doesn't (cause SharedArrayBuffer doesn't work) or vice versa. It's been a week and I've tired everything and can't find anything online that works. Not even ChatGPT can help which ironcelly asks me to contact Stripe customer support. I would highly appreciate if anyone could even point me in the right direction. I Thank you in advance good Sir/Maam.

    


    Note that Checkout works fine with just :

    


    key: 'Cross-Origin-Opener-Policy',
value: 'same-origin'


    


    Just Cross-Origin-Embedder-Policy breaks it

    


  • doc : delete viterbi.txt

    10 novembre 2013, par Timothy Gu
    doc : delete viterbi.txt
    

    The description has been moved to the FFmpeg wiki :
    https://trac.ffmpeg.org/wiki/ViterbiAlgorithm

    Signed-off-by : Timothy Gu <timothygu99@gmail.com>

    • [DH] doc/viterbi.txt
  • How convert High bitrate mp3 to lower rate using ffmpeg in android

    31 mars 2017, par Android Weblineindia

    We want to convert 320kbps mp3 file to 128kbps mp3 so currently we are using below ffmpeg command but its not working.

    ffmpeg -i input.mp3 -codec:a libmp3lame -qscale:a 5 output.mp3

    Result :-the output bitrate same as input mp3.

    And we are following the FFmpeg Encoding guideline for that here is the link :- https://trac.ffmpeg.org/wiki/Encode/MP3

    so please suggest any solution.