
Advanced search
Medias (1)
-
The Slip - Artworks
26 September 2011, by
Updated: September 2011
Language: English
Type: Text
Other articles (61)
-
HTML5 audio and video support
13 April 2011, byMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 April 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
List of compatible distributions
26 April 2011, byThe 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 (...)
On other websites (8375)
-
bitwriter.c: Cleanups and fixups
30 December 2015, by Erik de Castro Lopo -
Merge commit ’6477449243db4aab15a4db356e8354c60b5366ec’
11 February 2014, by Michael Niedermayer -
Error: ENOENT: no such file or directory ( AWS Lambda function)
29 January 2019, by 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);
}
});
});
};