|
|
@ -3,7 +3,7 @@ namespace :video_transcode do
|
|
|
|
desc "视频转码成h264"
|
|
|
|
desc "视频转码成h264"
|
|
|
|
task :submit => :environment do
|
|
|
|
task :submit => :environment do
|
|
|
|
Video.find_each do |v|
|
|
|
|
Video.find_each do |v|
|
|
|
|
if v.uuid && v.transcoded == false && AliyunVod::Service.get_meta_code_info(v.uuid).start_with?("h264", "h265", "flv") == false
|
|
|
|
if v.uuid && v.transcoded == false && AliyunVod::Service.get_meta_code_info(v.uuid).start_with?("h264", "h265") == false
|
|
|
|
p "--- Start submit video trans code #{v.uuid}"
|
|
|
|
p "--- Start submit video trans code #{v.uuid}"
|
|
|
|
AliyunVod::Service.submit_transcode_job(v.uuid, 'a0277c5c0c7458458e171b0cee6ebf5e')
|
|
|
|
AliyunVod::Service.submit_transcode_job(v.uuid, 'a0277c5c0c7458458e171b0cee6ebf5e')
|
|
|
|
end
|
|
|
|
end
|
|
|
|