视频转码问题

courseware
daiao 5 years ago
parent dd4ea18e28
commit a8e8a973ef

@ -4,7 +4,7 @@ namespace :video_transcode do
task :submit => :environment do
i = []
Video.where(transcoded: false).find_each do |v|
if v.uuid.present? && u.file_url.present?
if v.uuid.present? && v.file_url.present?
code_info = AliyunVod::Service.get_meta_code_info(v.uuid)
if v.file_url.include?('.mp4') && code_info[:codecnamne]&.include?("h264")
v.update(transcoded: true)

Loading…
Cancel
Save