
Recherche avancée
Autres articles (111)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (8967)
-
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 ?