
Recherche avancée
Autres articles (45)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users.
Sur d’autres sites (6094)
-
google function : TypeError : Cannot read property 'name' of undefined
9 décembre 2019, par JuggernaughtI’m trying to use Google cloud function to transcode videos from a storage bucket and outputs into another bucket using code posted online but with a few adjustments.
but I get the following error :
TypeError : Cannot read property ’name’ of undefined at transcodeVideo
(/srv/index.js:17:56) at /worker/worker.js:825:24 at at
process._tickDomainCallback (internal/process/next_tick.js:229:7)Index.js
const {Storage} = require('@google-cloud/storage');
const projectId = 'cc18-223318';
const storage = new Storage({
projectId: projectId,
});
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffmpeg = require('fluent-ffmpeg');
const transcodedBucket = storage.bucket('2400p');
const uploadBucket = storage.bucket('inpuut');
ffmpeg.setFfmpegPath(ffmpegPath);
exports.transcodeVideo = function transcodeVideo(event, callback) {
const file = event.data;
// Ensure that you only proceed if the file is newly created, and exists.
if (file.metageneration !== '1' || file.resourceState !== 'exists') {
callback();
return;
}
// Open write stream to new bucket, modify the filename as needed.
const remoteWriteStream = transcodedBucket.file(file.name.replace('.webm', '.mp4'))
.createWriteStream({
metadata: {
metadata: file.metadata, // You may not need this, my uploads have associated metadata
contentType: 'video/mp4', // This could be whatever else you are transcoding to
},
});
// Open read stream to our uploaded file
const remoteReadStream = uploadBucket.file(file.name).createReadStream();
// Transcode
ffmpeg()
.input(remoteReadStream)
.outputOptions('-c:v libx264') // Change these options to whatever suits your needs
.outputOptions('-c:a copy')
.outputOptions('-vf "scale=4800:2400"')
.outputOptions('-b:a 160k')
.outputOptions('-b:a 160k')
.outputOptions('-x264-params mvrange=511')
.outputOptions('-f mp4')
.outputOptions('-preset slow')
.outputOptions('-movflags frag_keyframe+empty_moov')
.outputOptions('-crf 18')
// https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/346#issuecomment-67299526
.on('start', (cmdLine) => {
console.log('Started ffmpeg with command:', cmdLine);
})
.on('end', () => {
console.log('Successfully re-encoded video.');
callback();
})
.on('error', (err, stdout, stderr) => {
console.error('An error occured during encoding', err.message);
console.error('stdout:', stdout);
console.error('stderr:', stderr);
callback(err);
})
.pipe(remoteWriteStream, { end: true }); // end: true, emit end event when readable stream ends
}; -
Revision b50e518ab6 : Require webm when explicitly requested https://code.google.com/p/webm/issues/de
31 janvier 2015, par JohannChanged Paths :
Modify /vpxenc.c
Require webm when explicitly requestedhttps://code.google.com/p/webm/issues/detail?id=906
Change-Id : I72841078ff81152d21d84ccf4d5548e757685a6d
-
FFMPEG for APACHE 2.4.6 (x64), PHP 5.5 (x64), MYSQL 5.6 (x64) on WINDOWS 8 (x64) MACHINE
8 mai 2014, par user2662327FFMPEG for APACHE 2.4.6 (x64), PHP 5.5 (x64), MYSQL 5.6 (x64) on WINDOWS 8 (x64) MACHINE
I need to install FFMPEG on my windows 8 machine running DRUPAL ZEN custom theme. Can someone tell me where I can get the right dll files for this purpose ? If I have to compile them myself, can someone please give me step by step instructions for how to do so ? I have searched endlessly for these dlls for days now and I have no instructions for creating what i need manually. I have a windows machine running minGW.
I already tried using the FFMPEG dlls that are out there on teh internet but my PHP-APACHE installations seem to be unable to properly detect the FFMPEG libraries (i added php_ffmpeg.dll to EXT folder, and the rest of hte DLLs to the WINDOWS/SYSTEM32 folder).
I am running the following versions of PHP and APACHE. Thank you very much in advance for any help you can offer me.
PHP Version 5.5.1
System Windows NT 6.2 build 9200 (Windows 8 Business Edition) AMD64
Build Date Jul 18 2013 11:04:03
Compiler MSVC11 (Visual C++ 2012)
Architecture x64APACHE VERSION
Server version : Apache/2.4.6 (Win64)
Apache Lounge VC10 Server built : Jul 16 2013 11:31:50