
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (103)
-
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Activation de l’inscription des visiteurs
12 avril 2011, parIl est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)
Sur d’autres sites (11604)
-
FFMPEG command works in shell ! but not in my node.js
29 juillet 2021, par Kuno KimWhen my ffmpeg command is built by my node.js application it does not run.



error



Unrecognized option 'ss 3.2 -t 1.9 -i videoplayback.mp4 -vf fps=15,scale=240:-1:flags=lanczos,palettegen palette.png'.




command



ffmpeg -ss 3.2 -t 1.9 -i videoplayback.mp4 -vf \ fps=15,scale=240:-1:flags=lanczos,palettegen palette.png




this is my code



var child_process = require('child_process')

function recordVideo() {

var spawn = child_process.spawn;

var args = [
 '-y', 
 '-ss', '3.2',
 '-t', '1.9', 
 '-i', '../getback/bin/videos/videoplayback.mp4', 
 '-vf', ' \\ ', 
 'fps=', '15', 
 'scale=', '320:-1', 
 'flags=','lanczos,palettegen palette.png', 
];



var ffmpeg = spawn('ffmpeg', args);

ffmpeg.stdout.on('data', function (data) {
 console.log(data);
});

ffmpeg.stderr.on('data', function (data) {
 console.log('grep stderr: ' + data);
});

ffmpeg.on('close', (code) => {
 console.log('child process exited with code ' + code);
}); 
};
recordVideo();




what is this error ?
I think.. 'fps=', '15', In the following code 
 '=' options a problem.



I am still learning English.
I'm sorry if it was hard to understand.


-
How to strip metadata from a video file with reliable/reproducable results ?
30 mai 2018, par Daniel QuinnI’m trying to find a clean way to produce "just the raw data" from a variety of media files. By this I mean, to take a file,
test.mp4
and strip all of the metadata/headers off it so I can then generate a hash of the actual video data.After a lot of digging on this subject, ffmpeg seems to be my best shot at this, but the command I found to do the metadata stripping, appears to produce different results depending on the version of ffmpeg, which leads me to think that either (a) I’ve got the incantation wrong, or (b) ffmpeg isn’t actually returning just the raw data.
To test for this, I used jrottenberg’s ffmpeg Docker containers to create a hash of the same file across multiple ffmpeg versions :
for tag in 4.0-centos 4.0-alpine 3.4-alpine 3.4-centos 3.0-alpine 3.0-centos; do
docker pull jrottenberg/ffmpeg:${tag}
docker run --rm \
-v /data/:/data/ \
-it jrottenberg/ffmpeg:${tag} \
-i /data/test.mp3 \
-map_metadata -1 -c:v copy -c:a copy \
-f mp4 - | md5sum
doneThe result was that every one of these instances had a different hash output (Docker output truncated for clarity) :
d7e3577ffe65d73240f48842e8d42207 -
da2bda81911d758c877aace6ed3c0025 -
ed24948c1dedf5d53870dfcfe24c7c70 -
3dbb89d812c26711a33ca670403ccc20 -
a4533446d3225e755eb041167e32b279 -
69a51d82acc9987eed8b517a748435eb -So my question : is there a more reliable way to do this ? Did I just miss an option for ffmpeg ? Am I missing something here, or is ffpeg just not a good tool for this job ? If not that, what is a good choice ?
-
Bluemix node js build pack to support webm audio conversion
31 août 2018, par Nimmy MohandasEven after adding ffmpeg to bluemix node js build pack(I tried this https://github.com/BlueChasm/nodejs-buildpack-ffmpeg), it doesn’t support webm audio format conversion.Could anyone please suggest alternate ways to support this issue ?
Description : I want to do speech to text conversion using Google speech recognition. I am using react native for front-end development. I recorded the voice and generated a webm audio file. Since the google speech recognition doesn’t support webm file format, I converted it into wav format using fluent-ffmpeg. It is working perfectly in my local system, but when I deploy it to the IBM cloud foundry using ffmpeg buildpack(https://github.com/BlueChasm/nodejs-buildpack-ffmpeg), it generates a file without extension. Following are my code,
router.post('/st', audioUpload.single('audio'), function(req, res, next) {
if (!req.file) {
return res.json({ status: false, error: 'No input given!' });
}
/**
* convert to .wav
*/
ffmpeg(req.file.path)
.toFormat('wav')
.inputOptions(['-r 32000',
'-ac 1'
])
.on('error', (err) => {
console.log('An error occurred: ' + err.message);
})
.save(path.join(__dirname, '..', 'uploads/audio/file.wav'))
.on('end', () => {
st.detectAudioFile(path.join(__dirname, '..', 'uploads/audio/file.wav')).then(data => {
fs.unlink(path.join(__dirname, '..', 'uploads/audio/file.wav'), function(err) {
if (err) return res.send(err);
const response = data[0];
const transcription = response.results
.map(result => result.alternatives[0].transcript)
.join('\n');
return res.json({ transcription });
}), fs.unlink(req.file.path, function(err) {
if (err) return res.json(err);
})
})
.catch(err => {
res.send({
status: false,
error_code: 400,
err: err.error || err.message
});
});
})
})//speech-to-text.js
const fs = require('fs');
const speech = require('@google-cloud/speech');
var detectAudioFile = function(fileName) {
const Speechclient = new speech.SpeechClient({})
// Reads a local audio file and converts it to base64
const file = fs.readFileSync(fileName);
const audioBytes = file.toString('base64');
const audio = {
content: audioBytes,
};
const config = {
// encoding: "FLAC",
// sampleRateHertz: 44100,
languageCode: 'en-US',
};
const request = {
audio: audio,
config: config,
};
return Speechclient
.recognize(request);
}
module.exports = {
detectAudioFile
}`