
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (93)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette 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.
Sur d’autres sites (9465)
-
FFMPEG - await ffmpeg.load() - overlay.ts Uncaught ReferenceError : document is not defined
26 mars 2024, par devVue123I use FFMPEG plugin with Vue3 and Vite. My code :


<code class="echappe-js"><script setup>&#xA;import { FFmpeg } from &#x27;@ffmpeg/ffmpeg&#x27;&#xA;import { fetchFile, toBlobURL } from &#x27;@ffmpeg/util&#x27;&#xA;import {onMounted} from "vue";&#xA;&#xA;// const baseURL = &#x27;https://unpkg.com/@ffmpeg/core@0.12.6/dist/esm&#x27; // doc - vite&#xA;const baseURL = &#x27;https://unpkg.com/@ffmpeg/core-mt@0.12.6/dist/esm&#x27; // example&#xA;&#xA;const ffmpeg = new FFmpeg();&#xA;&#xA;onMounted(() => {&#xA; initializeFfmpeg()&#xA;})&#xA;&#xA;const initializeFfmpeg = async () => {&#xA;await ffmpeg.load()&#xA;}&#xA;</script>



but FFMPEG is not initialized correctly.
the error occurs when I run the command :


await ffmpeg.load()



I get an error that may be related to vite :





I tried several import options, but I still get this error. please help me, thank you


package.json


"dependencies": {
 "@ffmpeg/core": "^0.12.6",
 "@ffmpeg/ffmpeg": "0.12.6",
 "@ffmpeg/util": "^0.12.1",
 "vue": "^3.4.21"
 },
 "devDependencies": {
 "@vitejs/plugin-vue": "^5.0.4",
 "vite": "^5.2.0"
 }



vite.config.js


import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'

// https://vitejs.dev/config/
export default defineConfig({
 plugins: [vue()],
 resolve: {
 alias: {
 '@': fileURLToPath(new URL('./src', import.meta.url))
 }
 },
 optimizeDeps: {
 exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],
 },
 server: {
 headers: {
 "Cross-Origin-Opener-Policy": "same-origin",
 "Cross-Origin-Embedder-Policy": "require-corp",
 },
 },
})



node version :


v18.18.2



I try this too :


await ffmpeg.load({
 coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, 'text/javascript'),
 wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, 'application/wasm'),
 workerURL: await toBlobURL(`${baseURL}/ffmpeg-core.worker.js`, 'text/javascript')
 })



-
avutil/mathematics : Fix undefined negation in av_compare_ts()
31 janvier 2021, par Michael Niedermayeravutil/mathematics : Fix undefined negation in av_compare_ts()
Fixes : negation of -9223372036854775808 cannot be represented in type 'int64_t' (aka 'long') ; cast to an unsigned type to negate this value to itself
Fixes : 29437/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-4748510022991872Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
avcodec/ffv1dec_template : Fix signed integer overflow
16 juillet 2017, par Michael Niedermayeravcodec/ffv1dec_template : Fix signed integer overflow
Fixes : runtime error : negation of -2147483648 cannot be represented in type 'int' ; cast to an unsigned type to negate this value to itself
Fixes : 2634/clusterfuzz-testcase-minimized-4540890636877824Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>