|
|
@ -6,6 +6,8 @@ namespace :video_transcode do
|
|
|
|
if v.uuid && !v.transcoded && !v.file_url.include?('.mp4') && !AliyunVod::Service.get_meta_code_info(v.uuid).start_with?("h264", "h265")
|
|
|
|
if v.uuid && !v.transcoded && !v.file_url.include?('.mp4') && !AliyunVod::Service.get_meta_code_info(v.uuid).start_with?("h264", "h265")
|
|
|
|
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')
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
v.update(transcoded: true)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|