
Recherche avancée
Autres articles (102)
-
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...)
Sur d’autres sites (10656)
-
Cannot access video in node buffer
21 avril 2016, par user2792129Within my aws-lambda function, I’m trying take a snapshot of the first frame of an mp4 video that I uploaded. I’m using node-fluent-ffmpeg to do this. My logs say its not recognizing the source. So I logged the source (response.Body) and I got this :
<buffer 00="00" 14="14" 66="66" 74="74" 79="79" 70="70" 71="71" 20="20" 08="08" 77="77" 69="69" 64="64" 65="65" 36="36" fc="fc" 6d="6d" 61="61" cc="cc" 40="40" 07="07" 01="01" 02="02" 99="99" 3d="3d" b7="b7" 51="51" 9a="9a" 2a="2a" 2c="2c" 8b="8b">
</buffer>Can I access the buffer directly, or Is there a way i should be formatting this before I try to use it in this ffmpeg method ?
// Download the video from S3, get thumbnail, and upload to a different S3 bucket.
async.waterfall([
function download(next) {
// Download the video from S3 into a buffer.
s3.getObject({
Bucket: srcBucket,
Key: srcKey
},
next);
},
function snapshot(response, next) {
console.log('response.Body-------------------> ', response.Body);
// Get the first frame of the video and write it to tempDir
var proc = new ffmpeg(response.Body)
.takeScreenshots({
count: 1,
timemarks: [ '2' ] // number of seconds
}, tempDir, function(err) {
console.log('screenshots were saved')
});
},
function transform(response, next) {
gm(tempDir).size(function(err, size) {
// Infer the scaling factor to avoid stretching the image unnaturally.
WIDTH = size.width;
HEIGHT = size.height;
if (WIDTH > HEIGHT) {
var side = HEIGHT;
}
else{
var side = WIDTH;
}
var scalingFactor = Math.min(
MAX_WIDTH / side,
MAX_HEIGHT / side
);
var width = scalingFactor * side;
var height = scalingFactor * side;
// Transform the image buffer in memory.
this.gravity("Center").crop(side, side).resize(width, height)
.toBuffer(imageType, function(err, buffer) {
if (err) {
next(err);
console.log(err);
} else {
next(null, response.ContentType, buffer);
}
});
});
},
function upload(contentType, data, next) {
// Stream the transformed image to a different S3 bucket.
s3.putObject({
Bucket: dstBucket,
Key: dstKey,
Body: data,
ContentType: contentType
},
next);
}
], function (err) {
if (err) {
console.error(
'Unable to resize ' + srcBucket + '/' + srcKey +
' and upload to ' + dstBucket + '/' + dstKey +
' due to an error: ' + err
);
} else {
console.log(
'Successfully resized ' + srcBucket + '/' + srcKey +
' and uploaded to ' + dstBucket + '/' + dstKey
);
}
callback(null, "message");
}
);Heres my log if that helps :
-
"ffmpeg exited with code 1 : https://drive.google.com/uc?id=file_id Server returned 403 Forbidden (access denied)\n" [closed]
30 novembre 2023, par Shihab Ahmed Eftysometimes I can able to access sometime sometimes it is showing to me this error


"ffmpeg exited with code 1 : https://drive.google.com/uc?id=file_id Server returned 403 Forbidden (access denied)\n"


"ffmpeg exited with code 1 : https://drive.google.com/uc?id=file_id Server returned 403 Forbidden (access denied)\n"


-
Improve whileloading() vs. canplaythrough / onload under HTML5 (with support for HTTP range/partial requests). onload() may fire early, followed by numerous whileloading() requests during playback as the HTML5 audio object requests and buffers more audio ranges (eg., 0-10 seconds), eventually matching the total sound duration. (There is no bytes loaded / total, that I’m aware of, to report here, so it’s 0 / 1 and then 0.375 / 1, for example. I suppose I could use integer values, to be "safe", in the future.)
21 juin 2012, par Scott Schillerm script/soundmanager2-jsmin.js m script/soundmanager2-nodebug-jsmin.js m script/soundmanager2-nodebug.js m script/soundmanager2.js Improve whileloading() vs. canplaythrough / onload under HTML5 (with support for HTTP range/partial requests). onload() may fire early, followed by numerous (...)