Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (65)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (6935)

  • 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

    


  • Rotate video according to rotation metadata and strip off metadata using ffmpeg [on hold]

    12 décembre 2018, par this.lau_

    I’ve got a video with the following metadata :

    Metadata:
     rotate          : 90
     creation_time   : 2018-12-03T16:13:47.000000Z
     handler_name    : VideoHandle
    Side data:
     displaymatrix: rotation of -90.00 degrees

    And I would like to remove this metadata and rotate the video by whatever rotation value is found there (in this case -90 but it can be anything).

    The result will be a video with the correct orientation and that works with all video players (including those that don’t auto-rotate based on the metadata).

    I’ve tried various commands but couldn’t find anything that would work. Any idea how to do this ?

  • ffmpeg : two videos side-by-side with audio1 lang=ger & audio2 lang=eng

    19 janvier 2023, par miridigital

    I have two videos from two GoPro cameras. Both videos are rendered via ffmpeg side-by-side into a single video (left and right) and the audio is currently combined/mixed into two channels (stereo). I can hear both camera audio channels at the same time.

    


    Two channels stereo :

    


    ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[0:v][1:v]hstack=inputs=2[v]; [0:a][1:a]amerge[a]" -map "[v]" -map "[a]" -ac 2 side-by-side.mp4


    


    audio from both videos mixed into a single file with 2 channels - mediainfo

    


    Now I want to switch between the two audio channels (cam1 or cam2) while I'm playing the side-by-side video.

    


    My first try : With four channels (without -ac 2 parameter) :

    


    ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[0:v][1:v]hstack=inputs=2[v]; [0:a][1:a]amerge[a]" -map "[v]" -map "[a]" side-by-side.mp4


    


    audio from both videos mixed into a single file with 4 channels - mediainfo

    


    But the most video players can't easily select the channels 1+2 or 3+4 while playing.

    


    So I tried two languages :

    


    ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[0:v][1:v]hstack=inputs=2[v]; [0:a][1:a]amerge[a]" -map "[v]" -map "[a]" -metadata:s:a:0 language=ger -metadata:s:a:1 language=eng side-by-side.mp4


    


    audio from both videos mixed into a single file with 4 channels with languages - mediainfo

    


    But that's wrong. I can only see german with 4 channels. How can I put channels 1+2 into german and channels 3+4 into english ? Afterwards I should be able to use the multi language feature from most video players to switch the audio between cameras.

    


    Thank you,
    
Miriam