
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (31)
-
Le plugin : Podcasts.
14 juillet 2010, parLe 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 (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (4837)
-
Trouble with Cross-Origin Headers : Stripe and ffmpeg Integration in Next.js
7 février 2024, par DukeI'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

-
ftp: reconnect on read
27 mai 2013, par Lukasz Marek -
ffmpeg : two videos side-by-side with audio1 lang=ger & audio2 lang=eng
19 janvier 2023, par miridigitalI 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