
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (79)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (10042)
-
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

-
Anomalie #3185 (Nouveau) : Problème avec les hooks de SVN sur la zone
13 mars 2014, par Sylvain LesageSalut,
j’ai foiré un commit (http://zone.spip.org/trac/spip-zone/changeset/81171/_plugins_/tickets/trunk), j’ai envoyé sans message.
Pour récupérer le coup, j’ai tenté de faire :
svn propedit -r 81171 —revprop svn:log
et de rentrer le message, mais je reçois
svn : Revprop change blocked by pre-revprop-change hook (exit code 1) with output : /var/svn-repos/spip-zone/hooks/pre-revprop-change : 108 : /svnlook : not found /var/svn-repos/spip-zone/hooks/pre-revprop-change : 109 : /svnlook : not found /var/svn-repos/spip-zone/hooks/pre-revprop-change : 110 : cannot open 0 : No such file /var/svn-repos/spip-zone/hooks/pre-revprop-change : 110 : diffSec : not found Changing svn:log can only be performed by the original submitter 3 hours from commit. Please contact the administrator for further assistance.
J’aurais donc le droit de changer mon message durant les 3 heures qui suivent le commit, mais ça ne marche pas. Est-il possible de régler le problème ?
Pour info, le message du commit est :
tickets - config des objets qu’on peut lier aux tickets.
Et fonction d’autorisation pour "associertickets".
Par défaut, aucun type d’objet ne peut être lié aux tickets
(tous desactivés). A noter : a priori, on n’interdit pas
de lier des tickets à d’autres tickets. -
ffmpeg udp to HLS error
26 février 2016, par combo_ciI try to transcode UDP stream to HLS (m3u8) file and put that file in a web server such as apache with this code :
ffmpeg -i udp://239.1.2.1:60001 -acodec aac -strict -2 -vcodec libx264 -hls_wrap 100 -f hls /var/www/html/ts/1.m3u8
At first of trascoding progress i see a error
[h264 @ 0x14c1c60] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
But m3u8 file created successfully and i can play it in client. but after 2 or 3 minute i see some error
[h264 @ 0x158d600] error while decoding MB 30 34, bytestream -10 dup=101 drop=0 [mpegts @ 0x149c660] PES packet size mismatch
[aac_latm @ 0x158daa0] Reserved SBR extensions is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac_latm @ 0x158daa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac_latm @ 0x158daa0] Expected to read 18 SBR bytes actually read 21.
[aac_latm @ 0x158daa0] channel element 3.4 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
Last message repeated 1 times
[udp @ 0x148c0c0] Circular buffer overrun. To avoid, increase fifo_size URL option. To survive in such case, use overrun_nonfatal option
[h264 @ 0x158d600] error while decoding MB 41 20, bytestream -14 dup=102 drop=0
udp://239.1.2.1:60001: Input/output errorAnd stream stop immediately .... anybody know how i can solve this problem ?