当我尝试在paperclip-ffmpeg中上传.mov视频时,出现错误
视频内容类型在回形针-ffmpeg中无效
我的代码是
has_attached_file :video, :styles => {
:medium => { :geometry => "640x480", :format => 'webm' }
}, :processors => [:ffmpeg]
validates_attachment_size :video, :less_than => 100.megabytes
validates_attachment_presence :video
validates_attachment_content_type :video, :content_type => ["video/mov"]
您应该将其video/quicktime
用作模仿类型。看一下这里的视频模仿类型列表:
http://help.encoding.com/knowledge-base/article/correct-mime-types-for-serving-video-files/
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句