|
|
@ -8,6 +8,7 @@ namespace :video_transcode do
|
|
|
|
if v.file_url.include?('.mp4') && code_info[:codecnamne]&.include?("h264")
|
|
|
|
if v.file_url.include?('.mp4') && code_info[:codecnamne]&.include?("h264")
|
|
|
|
v.update(transcoded: true)
|
|
|
|
v.update(transcoded: true)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
puts("uuid: #{v.uuid}")
|
|
|
|
i << "#{v.id}, #{v.file_url}, #{code_info[:codecnamne]}"
|
|
|
|
i << "#{v.id}, #{v.file_url}, #{code_info[:codecnamne]}"
|
|
|
|
AliyunVod::Service.submit_transcode_job(v.uuid, 'a0277c5c0c7458458e171b0cee6ebf5e')
|
|
|
|
AliyunVod::Service.submit_transcode_job(v.uuid, 'a0277c5c0c7458458e171b0cee6ebf5e')
|
|
|
|
end
|
|
|
|
end
|
|
|
|