
Recherche avancée
Autres articles (41)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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. -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (7319)
-
Anomalie #2671 (Nouveau) : Problème sur #VAL{converser} sur URLs propres sur objet article
23 avril 2012, par erational -Je ne suis pas sur si c’est un bug ou une évolution de syntaxe .... sur un site multilingue (avec forcer_lang=true, j’utilise le #VALconverser comme indiqué sur http://programmer3.spip.org/Forcer-un-changement-de-langue-d sur un article donne : (#LANG Cela fonctionne bien (...)
-
Evolution #2529 : "erreur 302" sur serveur http autres qu’Apache
9 mai 2012, par cedric -je repousse à 3.1 : quand on aura une signature de $_SERVER[’SERVER_SOFTWARE’] sur cherokee ou nginx on pourra completer. En attendant le meilleur fix est bien define(’_SERVER_APACHE’,true) ; dans mes_options.php
-
Rails 3 : How can I make Paperclip-FFMPEG work ?
9 novembre 2011, par reminoI have Rails 3.0.3 with these gems :
- delayed_job 2.1.4
- delayed_paperclip 0.7.1
- paperclip 2.3.16
- paperclip-ffmpeg 0.7.0
(This combination is very specific. Some newer gems will not work with others.)
Here's my Video model :
class Video < Upload
has_attached_file :file, :default_style => :view, :processors => [:ffmpeg],
:url => '/system/:class/:attachment/:id/:style/:basename.:extension',
:path => ':rails_root/public/system/:class/:attachment/:id/:style' \
+ '/:basename.:extension',
:default_url => '/images/en/processing.png',
:styles => {
:mp4video => { :geometry => '520x390', :format => 'mp4',
:convert_options => { :output => { :vcodec => 'libx264',
:vpre => 'ipod640', :b => '250k', :bt => '50k',
:acodec => 'libfaac', :ab => '56k', :ac => 2 } } },
:oggvideo => { :geometry => '520x390', :format => 'ogg',
:convert_options => { :output => { :vcodec => 'libtheora',
:b => '250k', :bt => '50k', :acodec => 'libvorbis',
:ab => '56k', :ac => 2 } } },
:view => { :geometry => '520x390', :format => 'jpg', :time => 1 },
:preview => { :geometry => '160x120', :format => 'jpg', :time => 1 }
}
validates_attachment_content_type :file, :content_type => VIDEOTYPES,
:if => Proc.new { |upload| upload.file.file? }
process_in_background :file
endWhen creating a new Video object with attachment, the original is saved, but no conversion will be done. Even calling
Video.last.file.reprocess!
won't to a thing except returningtrue
. (Not sure what "true" means in this case as it didn't work.)I tried hardcoding the path to ffmpeg in
Paperclip::options[:command_path]
. I even tried deleting the paperclip-ffmpeg.rb file and replacing it with a blank file. Really thinking I'd get an exception by doing the later, instead, I simply got "true" again.It feels like the paperclip-ffmpeg.rb is being loaded, because it is required by
config/application.rb
, but nothing is called in it when trying to generate a thumbnail or convert a video.Can anyone help me with this ? Thanks in advance !