
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (51)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (6694)
-
where is ffmpeg wasm output directory and how to access the files ?
15 juin 2021, par FabiotkI have the following code where I convert a video file into HLS stream format. I'm doing this in browser javascript so I don't load a lot of processing into the server. Now, the code seems to be working fine according to the logs however I can't see the output. The code is :


<code class="echappe-js"><script>&#xA; const { createFFmpeg, fetchFile } = FFmpeg;&#xA; const ffmpeg = createFFmpeg({&#xA; corePath: &#x27;https://unpkg.com/@ffmpeg/core@0.10.0/dist/ffmpeg-core.js&#x27;,&#xA; log: true,&#xA; });&#xA; &#xA; ffmpeg.setLogger(({ type, message }) => {&#xA; console.log(type, message); &#xA; });&#xA;&#xA; const transcode = async ({ target: { files } }) => {&#xA; console.log(&#x27;Running ffmpeg&#x27;)&#xA; const { name } = files[0];&#xA; await ffmpeg.load();&#xA; ffmpeg.FS(&#x27;writeFile&#x27;, name, await fetchFile(files[0]));&#xA; await ffmpeg.run(&#x27;-i&#x27;, name, &#x27;-hls_time&#x27;, &#x27;10&#x27;, &#x27;-hls_playlist_type&#x27;, &#x27;vod&#x27;, &#x27;-hls_segment_filename&#x27;, &#x27;part_%03d.ts&#x27;, &#x27;master.m3u8&#x27;);&#xA;&#xA; }&#xA; document.getElementById(&#x27;uploader&#x27;).addEventListener(&#x27;change&#x27;, transcode);&#xA;</code></pre>&#xA; &#xA;<p>My question is, where are the <code>part_%03d.ts</code> files (part_001.ts, etc)? I want to loop through every one of them and pass their content to another function. How to do this?</p>&#xA;
-
Anomalie #4589 (Nouveau) : PHP8 : Warning Trying to access array offset on value of type bool in i...
25 octobre 2020, par Franck DHello :)
Windows 10 (1909)
Laragon avec :
Php 8.0.0RC2 (VS16 x64 Non Thread Safe) https://windows.php.net/qa
Apache 2.4.46 Win64 avec mod_fcgid-2.3.10-win64-VS16 https://www.apachelounge.com/download/
Mysql 8.0.22 (mysql-8.0.22-winx64.zip) https://dev.mysql.com/downloads/mysql/
phpMyAdmin 5.0.4 https://www.phpmyadmin.netInstallation en MySQL
Prefix des tables à l’installation : "test2"
SPIP 3.3.0-dev GIT [master : 30650cb8]Je fais l’activation des révisions partout, une fois avoir fait une modif dans un documents, un article, une rubrique par exemple, j’ai ce warning qui apparait lorsque je consulte la révisions en faisant un clique dessus dans la page d’accueil du site
Warning : Trying to access array offset on value of type bool in C :\laragon\www\test2\plugins-dist\revisions\inc\revisions.php on line 762A savoir que pour un article, j’ai même Warning : detecter_liens_blocs() : Argument #1 ($t) must be passed by reference, value given in C :\laragon\www\test2\plugins-dist\textwheel\engine\textwheel.php on line 445 qui se rajoute, mais comme j’ai déjà fait un ticket concernant ce warning, il sera sans doute résolut en même temps :)
-
unable to access a class function from its object instance
23 mars 2021, par Alp4xI'm unable to access a class function from its object instance - the object is being initialized properly and the constructor runs perfectly as well - just not able to explicitly call a function from that class


Code for my FFmpeg class :


module.exports = class FFmpeg {
 constructor(rtpParameters) {
 this._rtpParameters = rtpParameters;
 this._process = undefined;
 this._observer = new EventEmitter();
 this._createProcess();
 }

 _createProcess() {
 const sdpString = createSdpText(this._rtpParameters);
 const sdpStream = convertStringToStream(sdpString);

 console.log("createProcess() [sdpString:%s]", sdpString);

 this._process = child_process.spawn("ffmpeg", this._commandArgs);

 if (this._process.stderr) {
 this._process.stderr.setEncoding("utf-8");

 this._process.stderr.on("data", (data) =>
 console.log("ffmpeg::process::data [data:%o]", data)
 );
 }

 if (this._process.stdout) {
 this._process.stdout.setEncoding("utf-8");

 this._process.stdout.on("data", (data) =>
 console.log("ffmpeg::process::data [data:%o]", data)
 );
 }

 this._process.on("message", (message) =>
 console.log("ffmpeg::process::message [message:%o]", message)
 );

 this._process.on("error", (error) =>
 console.error("ffmpeg::process::error [error:%o]", error)
 );

 this._process.once("close", () => {
 console.log("ffmpeg::process::close");
 this._observer.emit("process-close");
 });

 sdpStream.on("error", (error) =>
 console.error("sdpStream::error [error:%o]", error)
 );

 // Pipe sdp stream to the ffmpeg process
 sdpStream.resume();
 sdpStream.pipe(this._process.stdin);
 }

 kill() {
 console.log("kill() [pid:%d]", this._process.pid);
 this._process.kill("SIGINT");
 }

 get _commandArgs() {
 let commandArgs = [
 "-loglevel",
 "debug",
 "-protocol_whitelist",
 "pipe,udp,rtp",
 "-fflags",
 "+genpts",
 "-f",
 "sdp",
 "-i",
 "pipe:0",
 ];

 commandArgs = commandArgs.concat(this._videoArgs);
 commandArgs = commandArgs.concat(this._audioArgs);

 commandArgs = commandArgs.concat([
 "-flags",
 "+global_header",
 `${RECORD_FILE_LOCATION_PATH}/${this._rtpParameters.fileName}.webm`,
 ]);

 console.log("commandArgs:%o", commandArgs);

 return commandArgs;
 }

 get _videoArgs() {
 return ["-map", "0:v:0", "-c:v", "copy"];
 }

 get _audioArgs() {
 return [
 "-map",
 "0:a:0",
 "-strict", // libvorbis is experimental
 "-2",
 "-c:a",
 "copy",
 ];
 }
};



My implementation of creation of this class' instance :


async startRecord() {
 if (this._isRecording) return;

 this._isRecording = true;
 let recordInfo = {};
 const joinedPeers = this._getJoinedPeers();
 for (const peer of joinedPeers) {
 for (const producer of peer.data.producers.values()) {
 recordInfo[producer.kind] = await this.publishProducerRtpStream(
 peer,
 producer
 );
 recordInfo.fileName = Date.now().toString();

 peer.data.process = this.getProcess(recordInfo);
 setTimeout(async () => {
 console.log(peer.data.process);
 // I want to call peer.data.process.kill() HERE!
 }, 4000);
 }
 }
 }
 async getProcess(recordInfo) {
 return new FFmpeg(recordInfo);
 }



I want to call the kill() function in FFmpeg and it shows undefined. Really don't understand how.


Here's the log of the object instance (which doesn't have the "kill" function mentioned anywhere and maybe hence shows that .kill() is undefined)




Would greatly appreciate any help.
Thanks !