
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (97)
-
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 ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’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 (7557)
-
Revision 49866baae6 : Early termination after partition NONE is done in RD. This patch allows the enc
30 juillet 2014, par Pengchong JinChanged Paths :
Modify /vp9/encoder/vp9_encodeframe.c
Early termination after partition NONE is done in RD.This patch allows the encoder to skip the search for partition
SPLIT, HORZ, VERT after the search for partition NONE is done
in RD optimization. It uses the first pass block-wise statistics
to make the decision. If all 16x16 blocks in the current partition
have zero motions and small residues from the frist pass statistics,
and it has small difference variance, further partition search is
skipped.For speed 2 setting, experiments on general youtube clips show that
the speedup varies from 1% - 10%, 5% on average. On the performance
side in PSNR, derf 0.004%, yt -0.059%, hd -0.106%, stdhd 0.032%.For hard stdhd clips :
park_joy_1080p, 502952 ms -> 503307 ms (-0.07%)
pedestrian_area_1080p, 227049 ms -> 220531 ms (+3%)This feature is under the compilation flag CONFIG_FP_MB_STATS and
it is off in current setting.Change-Id : I554537e9242178263b65ebe14a04f9c221b58bae
-
Get PID of process in one line
17 décembre 2017, par Dovid BenderI have a bash script that is called by a phone system that gets some audio from a URL and (using ffmpeg, mplayer etc.) then pipes it back to the application. The file can have several URL’s that are called so if the first one say goes off line or gives a 404 it will go to the next line.
I have an issue where some times the server will produce content however there is no audio. In such a case I want to kill the current PID of ffmpeg, mplayer etc. so that the script should move on.
I can’t foreground it and get the last PID since once it’s ran in the foreground the media is no longer being piped to the application calling it. I can’t use exec in the beginning since if I then issue a kill to the PID the script dies which I don’t want.
The script looks something like this :
#!/bin/bash
/usr/bin/ffmpeg -i 'http://1.1.1.1/soft_music' -vn -ar 8000 -ac 1 -f s16le -
/usr/bin/ffmpeg -i 'http://2.2.2.2/soft_music' -vn -ar 8000 -ac 1 -f s16le -I assume I need to add something that will allow me to log the pid of the current ffmpeg command running so my external script can get it and kill it. Once that’s done it will go to the next line and try the next stream from 2.2.2.2
-
Babel Loader error when using ffmpeg.wasm in CRA react app
6 avril 2024, par Sooraj ChanduI am trying to implement a video editor using ffmpeg-wasm in CRA react app.


Package dependencies :


"@ffmpeg/ffmpeg": "^0.12.10",
"@ffmpeg/util": "^0.12.1",



Below is a sample class that I am trying to implement :


import React, {useRef, useState} from 'react';
import { FFmpeg } from "@ffmpeg/ffmpeg";
import { toBlobURL, fetchFile } from "@ffmpeg/util";

function Trimmer() {
 const [loaded, setLoaded] = useState(false);
 const ffmpegRef = useRef(new FFmpeg());
 const videoRef = useRef<htmlvideoelement null="null">(null)
 const messageRef = useRef<htmlparagraphelement null="null">(null)

 const load = async () => {
 const baseURL = "https://unpkg.com/@ffmpeg/core-mt@0.12.6/dist/esm";
 const ffmpeg = ffmpegRef.current;
 ffmpeg.on("log", ({ message }) => {
 if (messageRef.current) messageRef.current.innerHTML = message;
 });
 // toBlobURL is used to bypass CORS issue, urls with the same
 // domain can be used directly.
 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"
 ),
 });
 setLoaded(true);
 };

 const transcode = async () => {
 const videoURL = "https://raw.githubusercontent.com/ffmpegwasm/testdata/master/video-15s.avi";
 const ffmpeg = ffmpegRef.current;
 await ffmpeg.writeFile("input.avi", await fetchFile(videoURL));
 await ffmpeg.exec(["-i", "input.avi", "output.mp4"]);
 const fileData = await ffmpeg.readFile('output.mp4');
 const data = new Uint8Array(fileData);
 if (videoRef.current) {
 videoRef.current.src = URL.createObjectURL(
 new Blob([data.buffer], { type: 'video/mp4' })
 )
 }
 };

 return loaded ? (
 <>
 <video ref="{videoRef}" controls="controls"></video>
 <br />
 <button>Transcode avi to mp4</button>
 <p ref="{messageRef}"></p>
 >
 ) : (
 <button>Load ffmpeg-core</button>
 );
}

export default Trimmer;
</htmlparagraphelement></htmlvideoelement>


I have installed the dependencies and when trying to start the application, it throws an error given below :


index.js:1 ./node_modules/@ffmpeg/ffmpeg/dist/umd/ffmpeg.js 55:4
Module parse failed: Unexpected character '#' (55:4)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| new Error("failed to import ffmpeg-core.js");
| class i {
> #e = null;
| #t = {};
| #s = {};



- 

- React - 16.14.0
- NPM - 6.14.5
- Babel Loader - 8.1.0