
Recherche avancée
Médias (2)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (23)
-
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 (...) -
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" ; -
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 (6119)
-
Raising and Rescuing Custom Exception
24 décembre 2013, par cmwI'm using Rails 3 with Carrierwave and FFMPEG to handle video uploads and encoding.
In my uploader, I'm using FFMPEG to grab the duration of the video from cache before storing it.
I'd like to raise a custom exception if the video's duration exceeds a specific length and then route the user accordingly. I've spent quite a bit of time trying to figure out how to create, raise and rescue my own custom exceptions in Rails – but, I've had no luck.
Some posts I've used to try to piece this together include this stack overflow post and this article on customized exception handling in Rails 3. I've had no luck yet.
I'm hoping someone can offer guidance on the proper approach to this. My mind is blown.
Below is what my uploader looks like :
class VideoUploader < CarrierWave::Uploader::Base
before :store, :ffmpeg
# Set storage type
storage :fog
# Override the directory where uploaded files will be stored.
def store_dir
"#{model.class.to_s.underscore}/videos/#{model.id}"
end
# Add a white list of extensions which are allowed to be uploaded.
def extension_white_list
%w(mov avi mp4 mkv wmv mpg)
end
def full_cache_path
"#{::Rails.root}/public/#{cache_dir}/#{cache_name}"
end
private
def ffmpeg(*args)
@model.video.cache_stored_file!
movie = FFMPEG::Movie.new("#{model.video.full_cache_path}")
if movie.duration > 600
raise "my custom exception will go here one day"
end
end
end -
How to specify the path of the ffmpeg binary
24 novembre 2015, par zaki ahmadSame question almost
What is the correct path video using Streamio FFMPEG on RailsIn it they say
This gem assumes ffmpeg is available in your PATH. If it is not in your PATH, You need to specify the path of the ffmpeg binary.
FFMPEG.ffmpeg_binary = '/usr/local/bin/ffmpeg'
I follow this gem https://github.com/streamio/streamio-ffmpeg , then I do this :
movie = FFMPEG::Movie.new("#{self.videod.path}")
But the error is
Errno::ENOENT: No such file or directory - the file '/home/des0071/practise/test_api/public/system/ads/videods/000/000/002/original/SampleVideo_1080x720_1mb.mp4' does not exist
How I specify ffmpeg path ?What I do ?
-
Importing FFMPEF Generated file into imovie
14 mai 2023, par saurav tripathiI am generating a .mp4 file using command


ffmpeg -i input.png -i input.mp3 -vcodec libx264 \ -vf scale=1920:1080,format=yuv420p -c:v prores_aw movie1.mov



It generate a video. I am able to open the video in quick time player without any problem, but when I try to import the video in imove, the size of the video changes to 0.1s. The length of the generated video from ffmpeg command is about 11 seconds. How do I fix this problem.


I am trying to generate a movie file combining a .png file and a .mp3 file using ffmpeg, I was able to generate a movie which was about 11 seconds, I was able to open the file in quick time players, but when I try to import the video in imovies, or Davinci resolve, then it doesn't shows me an error, but the length of the video turn out to be just 0.1 seconds.