
Recherche avancée
Autres articles (70)
-
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 -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (11604)
-
avcodec/jpeglsenc : Check for invalid dimensions
29 avril 2021, par Andreas Rheinhardt -
avfilter/vf_guided : Fix leak of frames
14 mai 2021, par Andreas Rheinhardt -
FFMPEG with Rails 4.2 in production
12 février 2016, par VincentI’m using FFMPEG to convert an uploaded wav file in a mp3.
My code works in development mode but not in production and I can’t find where the error is. As far as I can tell, I think it’s a path problem with the tmp file. FFMPEG works in production (Digital Ocean) when I run a command on the terminal.
My mp3 job :
class Mp3UploadJob < Struct.new(:audiofile_id)
def perform
path = audiofile.wav_file.url.to_s
mp3_file = File.join(Rails.root, "tmp", "uploads", "#{audiofile.filename}.mp3")
%x[ffmpeg -i "#{path}" -b:a 192k -ar 44100 -metadata title="#{audiofile.title}" -metadata artist="#{audiofile.mp3_artist_name}" -metadata album="#{audiofile.mp3_album}" -metadata date="#{audiofile.release_date}" -metadata genre="#{audiofile.genre}" "#{mp3_file}"]
audiofile.mp3_file = open(mp3_file)
audiofile.save!
File.delete(mp3_file)
end
endNote : the wav file comes from a dropbox chooser box.
My wav job (ran before the mp3 job) :
class WavUploadJob < Struct.new(:audiofile_id)
def perform
audiofile.remote_wav_file_url = audiofile.dropbox_wav
audiofile.save!
end
end