
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (76)
-
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 (5460)
-
Remove audio from specific audio track
9 août 2024, par Ronaldo JúdiceI have this code, and i would like to remove audio from tracks 5 and 6. I had tried everything but is not working, I can mute the audio tracks but on edition program i can see the waves, can you help me ?


if (conv.format === 'mxf') {
 // Add 8 audio tracks
 ffmpeg(inputFile)
 .audioCodec('pcm_s16le') // Codec de áudio para MXF
 .outputOptions([
 '-c:v mpeg2video', // Codec de vídeo para MXF
 '-q:v 2', // Qa vídeo
 '-map 0:v:0', 
 '-map 0:a:0', 
 '-map 0:a:0',
 '-map 0:a:0', 
 '-map 0:a:0', 
 '-map 0:a:0', // this track i want to remove the audio but keep the track
 '-map 0:a:0', //this track i want to remove the audio but keep the track
 '-map 0:a:0', 
 '-map 0:a:0', 
 '-disposition:a:0 default' // Marcar trilha 1 como padrão
 ])
 .save(outputFile)
 .on('start', commandLine => console.log(`FFmpeg comando iniciado: ${commandLine}`))
 .on('progress', progress => console.log(`Progresso: ${progress.percent}%`))
 .on('end', () => console.log(`Conversão concluída: ${outputFile}`))
 .on('error', err => console.error(`Erro na conversão de ${inputFile} para ${outputFile}: ${err.message}`));
 } else {
 // Outras conversões
 ffmpeg(inputFile)
 .outputOptions(conv.options)
 .save(outputFile)
 .on('start', commandLine => console.log(`FFmpeg comando iniciado: ${commandLine}`))
 .on('progress', progress => console.log(`Progresso: ${progress.percent}%`))
 .on('end', () => console.log(`Conversão concluída: ${outputFile}`))
 .on('error', err => console.error(`Erro na conversão de ${inputFile} para ${outputFile}: ${err.message}`));
 }



I tried to use ffmpeg comands to remove audio from track.


-
Uncaught ReferenceError : CCapture is not defined ?
13 octobre 2024, par The Dead ManI have a simple app to create a canvas and render it. I am using capture js and FFmpeg module for converting videos in my app, but when I run the app I get the following reference error :



Uncaught ReferenceError: CCapture is not defined
 at test.js:67`




Here is test.js :



(function() {
 "use strict";

 var framesPerSecond = 60;
 var numFrames = 20; //framesPerSecond * 60 * 2;
 var thickness = 100;
 var speed = 4;
 var frameNum = 0;

 var canvas = document.getElementById("c");
 var ctx = canvas.getContext("2d");
 canvas.width = 1280;
 canvas.height = 720;

 var progressElem = document.getElementById("progress");
 var progressNode = document.createTextNode("");
 progressElem.appendChild(progressNode);

 function onProgress(progress) {
 progressNode.nodeValue = (progress * 100).toFixed(1) + "%";
 }

 function showVideoLink(url, size) {
 size = size ? (" [size: " + (size / 1024 / 1024).toFixed(1) + "meg]") : " [unknown size]";
 var a = document.createElement("a");
 a.href = url;
 var filename = url;
 var slashNdx = filename.lastIndexOf("/");
 if (slashNdx >= 0) {
 filename = filename.substr(slashNdx + 1);
 }
 a.download = filename;
 a.appendChild(document.createTextNode(url + size));
 document.body.appendChild(a);
 }

 var capturer = new CCapture( {
 format: 'ffmpegserver',
 //workersPath: "3rdparty/",
 //format: 'gif',
 verbose: false,
 framerate: framesPerSecond,
 onProgress: onProgress,
 //extension: ".mp4",
 //codec: "libx264",
 } );
 capturer.start();

 function drawLines(ctx) {
 for (var xx = -canvas.width; xx < canvas.width; xx += 2) {
 var l = (xx - (-canvas.width)) / (canvas.width * 2);
 ctx.beginPath();
 ctx.moveTo(xx, -canvas.height);
 ctx.lineTo(xx, canvas.height);
 ctx.strokeStyle = "hsla(" + ((l * 360 * 24) % 360) + ",100%,50%,0.5)";
 ctx.stroke();
 }
 }

 function render(time) {
 ctx.fillStyle = "#000";
 ctx.fillRect(0, 0, canvas.width, canvas.height);

 ctx.fillStyle = "#FFF";
 for (var xx = 0; xx < canvas.width + thickness * 2; xx += thickness * 2) {
 var x = xx - (frameNum * speed % (thickness * 2));
 ctx.fillRect(x, 0, thickness, canvas.height);
 }

 ctx.save();
 ctx.globalCompositeOperation = "difference";

 ctx.font = "400px sans-serif";
 ctx.textAlign = "center";
 ctx.textBaseline = "middle";
 ctx.fillText(frameNum, canvas.width / 2, canvas.height / 2);


 ctx.save();
 ctx.translate(canvas.width * 0.5, canvas.height * 0.5);
 ctx.rotate(frameNum * 0.01);
 ctx.translate(canvas.width * 0.25, 0);
 drawLines(ctx);
 ctx.restore();

 ctx.save();
 ctx.translate(canvas.width * 0.5, canvas.height * 0.5);
 ctx.rotate(frameNum * -0.013);
 ctx.translate(canvas.width * 0.37, 0);
 drawLines(ctx);
 ctx.restore();

 ctx.restore();

 capturer.capture(canvas);

 ++frameNum;
 if (frameNum === numFrames) {
 capturer.stop();
 capturer.save(showVideoLink);
 } else {
 requestAnimationFrame(render);
 }
 }
 requestAnimationFrame(render);
}());



-
CRO Program : Best Practices and KPIs to Track [2024]
8 mai 2024, par Erin