|
|
|
@ -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)
|
|
|
|
|