
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 (21)
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
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. -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (3607)
-
librosa can't load wav file in aws lambda docker
30 novembre 2022, par Luka SavicI have an AWS Lambda function created using Docker.
I have librosa installed, ffmpeg installed using the solution from this question : install ffmpeg on amazon ecr linux python


I checked in a Lambda function with
os.system("ffmpeg -version")
and I managed to get valid output, stating different versions and parts of ffmpeg.

Problem is that when I do
librosa.load(wav_file)
it gives the following error :

/your/path/.venv/lib/python3.9/site-packages/librosa/util/decorators.py:88: UserWarning: PySoundFile failed. Trying audioread instead.
 return f(*args, **kwargs) 



From what I've read, librosa should natively support .wav files, even without ffmpeg, and even though I have ffmpeg installed, it doesn't work.


One more information, .wav file was downloaded, player, and loaded with librosa on my local PC without any problems. I tried also on different wav and mp3 files, and the problems were still there.


-
Revision f60a3910c4 : Move token_cache from cost_coeffs to MACROBLOCK This commit moves token_cache b
11 octobre 2013, par Jingning HanChanged Paths :
Modify /vp9/encoder/vp9_block.h
Modify /vp9/encoder/vp9_rdopt.c
Move token_cache from cost_coeffs to MACROBLOCKThis commit moves token_cache buffer into macroblock struct, instead
of defining as a local variable in cost_coeffs. This avoids repeatedly
re-allocating memory space in the rate-distortion optimization loop.The runtime at speed 0 reduces :
bus 2000kbps, 161692ms to 159951ms
football 600kbps, 229505ms to 225821msChange-Id : If7da6b0b6d8c5138a16271a33c4548fba33d8840
-
ENOENT Error in Node When Calling Ffmpeg binary from Fluent-Ffmpeg Api
7 novembre 2018, par PeterBackground
I am wiring up a firebase function in node. Purpose is to parse an inbound audio clip to a set length. Using ffmpeg and fluent-ffmpeg.
Problem
When the function is triggered in firebase, I am getting ENOENT error when Fluent-Ffmpeg attempts to access the Ffmpeg binary
Firebase Debug Output
Error : Error : spawn
./Cloud/functions/node_modules/ffmpeg-binaries/bin/ffmpeg ENOENT
at exports._errnoException (util.js:1018:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9) code : ’ENOENT’, errno :
’ENOENT’, syscall : ’spawn
./Cloud/functions/node_modules/ffmpeg-binaries/bin/ffmpeg’, path :
’./Cloud/functions/node_modules/ffmpeg-binaries/bin/ffmpeg’,
spawnargs : [ ’-formats’ ]Expected Outcome
Inbound file is downloaded to a temp directory, cropped, and re-uploaded to firebase storage as the cropped file.
Environment
- mac client / firebase storage
- node v8.1.0
- ffmpeg v3.2.2
- fluent-ffmpeg v2.1.2
Code [Updated To Reflect Svenskunganka’s Change. Now Works]
const ffmpeg = require('fluent-ffmpeg');
const PREVIEW_PREFIX = 'preview_';
exports.generatePreviewClip = functions.storage.object('audioFiles').onChange(event => {
//console.log('Times this function has run: ', run++);
const object = event.data; // The Storage object.
const fileBucket = object.bucket; // The Storage bucket that contains the file.
const filePath = object.name; // File path in the bucket.
const contentType = object.contentType; // File content type.
const resourceState = object.resourceState; // The resourceState is 'exists' or 'not_exists' (for file/folder deletions).
const metageneration = object.metageneration; // Number of times metadata has been generated. New objects have a value of 1.
// Exit if this is triggered on a file that is not an audio file.
if (!contentType.startsWith('audio/')) {
console.log('This is not an audio file.');
console.log('This is the file:', filePath);
return;
}
// Get the file name.
const fileName = path.basename(filePath);
console.log('Working with filename', fileName);
// Exit if the file is already an audio clip.
if (fileName.startsWith(PREVIEW_PREFIX)) {
console.log('Already a preview clip.');
return;
}
// Exit if this is a move or deletion event.
if (event.data.resourceState === 'not_exists') {
console.log('This is a deletion event.');
return;
}
// Exit if file exists but is not new and is only being triggered
// because of a metadata change.
if (resourceState === 'exists' && metageneration > 1) {
console.log('This is a metadata change event.');
return;
}
// Download file from bucket.
const bucket = gcs.bucket(fileBucket);
const tempFilePath = path.join(os.tmpdir(), fileName);
return bucket.file(filePath).download({
destination: tempFilePath
}).then(() => {
console.log('Audio file downloaded locally to temp directory', tempFilePath);
var ffmpegPath = require("ffmpeg-binaries").ffmpegPath();
var ffprobePath = require("ffmpeg-binaries").ffprobePath();
// Generate a croped file using ffmpeg.
var command = new ffmpeg(tempFilePath);
command.setFfmpegPath(ffmpegPath);
command.setFfprobePath(ffprobePath);
command
.setStartTime('00:00:03')
.setDuration('10')
.output(tempFilePath)
.on('end', function() {
console.log('Audio Crop Done Successfully');
})
.on('error', function(err)
{
console.log('Error:', err);
}).run();
}).then(() => {
console.log('Preview file created at', tempFilePath);
// We add a 'preview_' prefix to the audio file name. that's how it will appear in firebase.
const previewFileName = PREVIEW_PREFIX + fileName;
console.log('previewFileName is', previewFileName)
const previewFilePath = path.join(path.dirname(filePath), previewFileName);
console.log('previewFilePath is', previewFilePath);
// Uploading the preview file.
return bucket.upload(tempFilePath, {destination: previewFilePath});
// Once the file has been uploaded delete the local file to free up disk space.
}).then(() => fs.unlinkSync(tempFilePath));
// [END audio file generation]
});Contents and Structure of my ffmpeg-binaries/bin Directory
-rwxrwxrwx 1 sherpa staff 24M Dec 10 2016 ffmpeg
-rwxr--r-- 1 sherpa staff 35M Jan 12 2017 ffmpeg.exe
-rwxr--r-- 1 sherpa staff 35M Jan 12 2017 ffplay.exe
-rwxrwxrwx 1 sherpa staff 24M Dec 10 2016 ffprobe
-rwxr--r-- 1 sherpa staff 35M Jan 12 2017 ffprobe.exe
-rwxrwxrwx 1 sherpa staff 22M Dec 10 2016 ffserverThings I Have Tried
- I can execute ffmpeg from the command line
- sudo chmod -R u+x ffmpeg-binaries/
- ffmpeg set in global path
- used ffmpeg.exe binary in setFfmpegPath, got same result
- Error : Error : spawn ./Cloud/functions/node_modules/ffmpeg-binaries/bin/ffmpeg.exe ENOENT
- played with numerous different setFfmpegPath path structures, e.g :
- ./Cloud/functions/node_modules/ffmpeg-binaries/bin/ffmpeg
- node_modules/ffmpeg-binaries/bin/ffmpeg
- ./Cloud/functions/node_modules/ffmpeg-binaries/bin/
Thanks for any suggestions.