
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (88)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Diogene : création de masques spécifiques de formulaires d’édition de contenus
26 octobre 2010, parDiogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
A quoi sert ce plugin
Création de masques de formulaires
Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...) -
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...)
Sur d’autres sites (7202)
-
How to get FFmpeg/sox working on heroku flask app ?
6 mars 2019, par Arjun AkkirajuI am trying to convert an mp3 audio file from .mp3 format and multi-channel audio to a .flac format and single-channel audio in my python flask app. I am currently using the python wrapper for ffmpeg called ffmpy. Here is my code.
from ffmpy import FFmpeg
ff = FFmpeg(
#executable = '/ffmpeg-20190304-db33283-macos64-static/bin/ffmpeg',
inputs = {<input />: None},
outputs = {'<output>': ['-ac 1']}
)
ff.run()</output>We have faced quite a few errors with this code segment when deploying the flask app to heroku (The code seems to work fine locally). The error I am running into is a
ffmpy.FFExecutableNotFoundError: Executable 'ffmpeg' not found
execption. To fix this, I tried downloading the ffmpeg build and set that as my executable (see the comment in my code above). I dragged that into my project directory and added the code above but the same error was throwing, except it said :ffmpy.FFExecutableNotFoundError: Executable 'ffmpeg-20190304-db33283-macos64-static/bin/ffmpeg not found
. The name of the file was the executable not found in case that was unclear. We then tried adding buildpackages from the following two github repos : https://github.com/HYPERHYPER/heroku-buildpack-ffmpeg and https://github.com/integricho/heroku-buildpack-python-ffmpeg but neither buildpack solved the issue. When we ranheroku run bash
and typedffmpeg
we got a command not found error. I then tried to install it withapt-get install ffmpeg
on the heroku bash but that also failed. This is my requirements.txt file.Flask==1.0.2
Flask-Cors==3.0.4
gcloud==0.18.3
google-api-core==1.7.0
google-auth==1.6.2
google-cloud-core==0.29.1
google-cloud-speech==0.36.3
google-cloud-storage==1.14.0
google-resumable-media==0.3.2
googleapis-common-protos==1.5.6
gunicorn==19.9.0
matplotlib==2.2.2
lib==3.0.0
grpcio==1.13.0rc3
SpeechRecognition==3.8.1
watson-developer-cloud==2.8.0
wordcloud==1.5.0
Werkzeug==0.14.1
python-docx==0.8.10
sox==1.3.7
redis==3.2.0
requests==2.21.0
rq==0.13.0
ffmpeg==1.4
ffmpeg-python==0.1.17
ffmpy==0.2.2
sox==1.3.7` We also tried to run a subprocess with the command sox :
import subprocess
subprocess.call(['sox', , '-r', '44100', 'This kept saying
sox: not found
and thus I pivoted to ffmpeg. If there is a more efficient way to do this conversion please let me know as I’m new to both python and heroku. Any help is appreciated. -
A way to convert bitrate/format of audio files (between upload & storage to S3)
5 octobre 2011, par Jonathan CoeCurrently using PHP 5.3.x & Fedora
Ok. I'll try to keep this simple. I'm working on a tool that allows the upload & storing of audio files on S3 for playback. Essentially, the user uploads a file (currently only allowing mp3 & m4a) to the server, and the file is then pushed to S3 for storage via the PHP SDK for amazon aws.
The missing link is that I would like to perform a simple bitrate & format conversion of the file prior to uploading the file. (ensuring that all files are 160kbs and .mp3).
I've looked into ffmpeg, although it seems that the PHP library only allows for reading bitrates and other meta, not for actual conversion.
Does anyone have any thoughts on the best way to approach this ? Would running a shell_exec() command that performs the conversion be sufficient to do this, or is there a more efficient/better way of doing this ?
Thanks in advance ! Any help or advice is much appreciated.
-
Upload audio file, convert bitrate, save to S3 | server side options ?
29 septembre 2011, par Jonathan CoeCurrently using PHP 5.3.x & Fedora
Ok. I'll try to keep this simple. I'm working on a tool that allows the upload & storing of audio files on S3 for playback. Essentially, the user uploads a file (currently only allowing mp3 & m4a) to the server, and the file is then pushed to S3 for storage via the PHP SDK for amazon aws.
The missing link is that I would like to perform a simple bitrate & format conversion of the file prior to uploading the file. (ensuring that all files are 160kbs and .mp3).
I've looked into ffmpeg, although it seems that the PHP library only allows for reading bitrates and other meta, not for actual conversion.
Does anyone have any thoughts on the best way to approach this ? Would running a shell_exec() command that performs the conversion be sufficient to do this, or is there a more efficient/better way of doing this ?
Thanks in advance ! Any help or advice is much appreciated.