
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (66)
-
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. -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (6150)
-
Error : ENOENT : no such file or directory ( AWS Lambda function)
29 janvier 2019, par ArunI am trying to convert the video file to audio using FFMPEG. But I keep getting this error while converting video to audio in AWS Lambda function. I searched a lot of googles but I can’t figure out a suitable solution.
If anyone knows the answer please share your solution. I referred this video to audio convertion method from this post.Error :
{ Error: ENOENT: no such file or directory, lstat '/var/task/tmp/c82f117b7841f1c2a4c9cd86cd93aad9.mp3'
at Error (native)
at Object.fs.lstatSync (fs.js:994:11)
at Object.byteLength (/var/task/node_modules/aws-sdk/lib/util.js:175:30)
at Request.SET_CONTENT_LENGTH (/var/task/node_modules/aws-sdk/lib/event_listeners.js:161:40)
at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
at Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10
message: 'ENOENT: no such file or directory, lstat
\'/var/task/tmp/c82f117b7841f1c2a4c9cd86cd93aad9.mp3\'',
errno: -2,
code: 'ENOENT',
syscall: 'lstat',
path: '/var/task/tmp/c82f117b7841f1c2a4c9cd86cd932332.mp3'}Code
const child_process = require('child_process');
const fs = require('fs');
const path = require('path');
const AWS = require('aws-sdk');
const request = require('request');
const tempy = require('tempy');
const s3 = new AWS.S3();
exports.handler = (event, context, callback) => {
// We're going to do the transcoding asynchronously, so we callback immediately.
callback();
// Extract the event parameters.
const { mp3Key, url } = event;
const filename = event.filename || path.basename(mp3Key);
const logKey = event.logKey || `${mp3Key}.log`;
const s3Bucket = event.s3Bucket || 'bucket-name;
// Create temporary input/output filenames that we can clean up afterwards.
const inputFilename = tempy.file();
const mp3Filename = tempy.file({ extension: 'mp3' });
// Download the source file.
Promise.resolve().then(() => new Promise((resolve, revoke) => {
const writeStream = fs.createWriteStream(inputFilename);
writeStream.on('finish', resolve);
writeStream.on('error', revoke);
request(url).pipe(writeStream);
}))
// Perform the actual transcoding.
.then(() => {
// Use the Exodus ffmpeg bundled executable.
const ffmpeg = path.resolve(__dirname, 'exodus', 'bin', 'ffmpeg');
// Convert the FLV file to an MP3 file using FFmpeg.
const ffmpegArgs = [
'-i', inputFilename,
'-vn', // Disable the video stream in the output.
'-acodec', 'libmp3lame', // Use Lame for the mp3 encoding.
'-ac', '2', // Set 2 audio channels.
'-q:a', '6', // Set the quality to be roughly 128 kb/s.
mp3Filename,
];
const process = child_process.spawnSync(ffmpeg, ffmpegArgs);
console.log("process ", process.stdout);
// return process;
// return process.stdout.toString() + process.stderr.toString();
})
// Upload the generated MP3 to S3.
.then(logContent => new Promise((resolve, revoke) => {
console.log("inside s3 upload", mp3Filename)
s3.putObject({
Body: fs.createReadStream(mp3Filename),
Bucket: s3Bucket,
Key: mp3Key,
ContentDisposition: `attachment; filename="${filename.replace('"', '\'')}"`,
ContentType: 'audio/mpeg',
}, (error) => {
if (error) {
revoke(error);
} else {
// Update a log of the FFmpeg output.
const logFilename = path.basename(logKey);
console.log("log file upload")
s3.putObject({
Body: logContent,
Bucket: s3Bucket,
ContentType: 'text/plain',
ContentDisposition: `inline; filename="${logFilename.replace('"', '\'')}"`,
Key: logKey,
}, resolve);
}
})
}))
.catch(console.error)
// Delete the temporary files.
.then(() => {
[inputFilename, mp3Filename].forEach((filename) => {
if (fs.existsSync(filename)) {
fs.unlinkSync(filename);
}
});
});
}; -
Revision 36871 : amélioreations de pas mal de choses
2 avril 2010, par kent1@… — Logamélioreations de pas mal de choses
-
Revision 30768 : Petites modifs
9 août 2009, par kent1@… — LogPetites modifs