视频内容类型在 paperclip-ffmpeg 中无效
Video content type is invalid in paperclip-ffmpeg
当我尝试在 paperclip-ffmpeg 中上传 .mov 视频时出现错误
Video content type is invalid in paperclip-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
作为 mimetype。看看这里的视频模仿类型列表:
http://help.encoding.com/knowledge-base/article/correct-mime-types-for-serving-video-files/
当我尝试在 paperclip-ffmpeg 中上传 .mov 视频时出现错误
Video content type is invalid in paperclip-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
作为 mimetype。看看这里的视频模仿类型列表:
http://help.encoding.com/knowledge-base/article/correct-mime-types-for-serving-video-files/