@@ -115,7 +115,6 @@ def ci_create_media_transcode_with_digital_watermark_jobs():
115115 'Input' : {
116116 'Object' : 'demo.mp4'
117117 },
118- 'QueueId' : 'p5135bcxxxxxxxxxxxxxxxx047454' ,
119118 'Tag' : 'Transcode' ,
120119 'Operation' : {
121120 'Output' : {
@@ -148,7 +147,6 @@ def ci_create_media_transcode_with_watermark_jobs():
148147 'Input' : {
149148 'Object' : 'demo.mp4'
150149 },
151- 'QueueId' : 'p5135bc6xxxxxxxxxxxxxxxxxxbf047454' ,
152150 'Tag' : 'Transcode' ,
153151 'Operation' : {
154152 'Output' : {
@@ -217,7 +215,6 @@ def ci_create_media_hls_transcode_jobs():
217215 'Input' : {
218216 'Object' : 'demo.mp4'
219217 },
220- 'QueueId' : 'p5135xxxxxxxxxxxxxxxxxxxxx047454' ,
221218 'Tag' : 'Transcode' ,
222219 'Operation' : {
223220 "Transcode" : {
@@ -372,7 +369,6 @@ def ci_create_media_animation_jobs():
372369 'Input' : {
373370 'Object' : 'demo.mp4'
374371 },
375- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
376372 'Tag' : 'Animation' ,
377373 'Operation' : {
378374 "Animation" : {
@@ -489,7 +485,6 @@ def ci_create_media_smart_cover_jobs():
489485 'Input' : {
490486 'Object' : 'demo.mp4'
491487 },
492- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
493488 'Tag' : 'SmartCover' ,
494489 'Operation' : {
495490 'SmartCover' : {
@@ -523,7 +518,6 @@ def ci_create_media_video_process_jobs():
523518 'Input' : {
524519 'Object' : 'demo.mp4'
525520 },
526- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
527521 'Tag' : 'VideoProcess' ,
528522 'Operation' : {
529523 "VideoProcess" : {
@@ -563,7 +557,6 @@ def ci_create_media_video_montage_jobs():
563557 'Input' : {
564558 'Object' : 'demo.mp4'
565559 },
566- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
567560 'Tag' : 'VideoMontage' ,
568561 'Operation' : {
569562 "VideoMontage" : {
@@ -613,7 +606,6 @@ def ci_create_media_voice_separate_jobs():
613606 'Input' : {
614607 'Object' : 'demo.mp4'
615608 },
616- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
617609 'Tag' : 'VoiceSeparate' ,
618610 'Operation' : {
619611 "VoiceSeparate" : {
@@ -650,7 +642,6 @@ def ci_create_media_sdr2hdr_jobs():
650642 'Input' : {
651643 'Object' : 'demo.mp4'
652644 },
653- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
654645 'Tag' : 'SDRtoHDR' ,
655646 'Operation' : {
656647 "SDRtoHDR" : {
@@ -680,7 +671,6 @@ def ci_create_media_digital_watermark_jobs():
680671 'Input' : {
681672 'Object' : 'demo.mp4'
682673 },
683- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
684674 'Tag' : 'DigitalWatermark' ,
685675 'Operation' : {
686676 "DigitalWatermark" : {
@@ -711,7 +701,6 @@ def ci_create_media_extract_digital_watermark_jobs():
711701 'Input' : {
712702 'Object' : 'digital.mp4'
713703 },
714- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
715704 'Tag' : 'ExtractDigitalWatermark' ,
716705 'Operation' : {
717706 "ExtractDigitalWatermark" : {
@@ -736,7 +725,6 @@ def ci_create_media_super_resolution_jobs():
736725 'Input' : {
737726 'Object' : 'demo.mp4'
738727 },
739- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
740728 'Tag' : 'SuperResolution' ,
741729 'Operation' : {
742730 "SuperResolution" : {
@@ -767,7 +755,6 @@ def ci_create_media_video_tag_jobs():
767755 'Input' : {
768756 'Object' : 'demo.mp4'
769757 },
770- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
771758 'Tag' : 'VideoTag' ,
772759 'Operation' : {
773760 "VideoTag" : {
@@ -791,7 +778,6 @@ def ci_create_media_segment_jobs():
791778 'Input' : {
792779 'Object' : 'demo.mp4'
793780 },
794- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
795781 'Tag' : 'Segment' ,
796782 'Operation' : {
797783 "Segment" : {
@@ -821,7 +807,6 @@ def ci_create_multi_jobs():
821807 'Input' : {
822808 'Object' : '117374C.mp4'
823809 },
824- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
825810 'Operation' : [
826811 {
827812 'Tag' : 'Segment' ,
@@ -866,7 +851,6 @@ def ci_create_get_media_info_jobs():
866851 'Input' : {
867852 'Object' : 'demo.mp4'
868853 },
869- 'QueueId' : 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
870854 'Tag' : 'MediaInfo' ,
871855 }
872856 response = client .ci_create_media_jobs (
@@ -885,7 +869,6 @@ def ci_create_media_pic_jobs():
885869 'Input' : {
886870 'Object' : '1.png'
887871 },
888- 'QueueId' : 'peb83bdbxxxxxxxxxxxxxxxxxxxa21c7d68' ,
889872 'Tag' : 'PicProcess' ,
890873 'Operation' : {
891874 "PicProcess" : {
@@ -913,7 +896,6 @@ def ci_list_media_transcode_jobs():
913896 # 转码任务列表
914897 response = client .ci_list_media_jobs (
915898 Bucket = bucket_name ,
916- QueueId = 'p5135bxxxxxxxxxxxxxxxxxxxc8bf047454' ,
917899 Tag = 'DigitalWatermark' ,
918900 ContentType = 'application/xml' ,
919901 StartCreationTime = '2022-05-27T00:00:00+0800' ,
@@ -939,7 +921,6 @@ def ci_list_media_pic_jobs():
939921 # 图片处理任务列表
940922 response = client .ci_list_media_pic_jobs (
941923 Bucket = bucket_name ,
942- QueueId = 'peb83bdbxxxxxxxxxxxxxxxxxxxa21c7d68' ,
943924 Tag = 'PicProcess' ,
944925 ContentType = 'application/xml' ,
945926 StartCreationTime = '2022-05-30T23:30:00+0800' ,
@@ -1031,7 +1012,6 @@ def ci_create_quality_estimate_jobs():
10311012 'Input' : {
10321013 'Object' : 'gaobai.mp4'
10331014 },
1034- 'QueueId' : 'peb83bdbxxxxxxxxxxxxxxxxxxxa21c7d68' ,
10351015 'Tag' : 'QualityEstimate' ,
10361016 'Operation' : {
10371017 # 非必选
@@ -1117,7 +1097,7 @@ def ci_create_and_get_live_recognition_jobs():
11171097 # 待操作的直播流信息
11181098 'Input' : {
11191099 # 直播流拉流地址
1120- 'Url' : 'http://3891 .liveplay.myqcloud. com/live/3891_user_c3ae08c7_38a2 .m3u8' ,
1100+ 'Url' : 'http://demo .liveplay.com/demo .m3u8' ,
11211101 # 输入类型,直播流固定为LiveStream
11221102 'SourceType' : 'LiveStream'
11231103 },
@@ -1139,7 +1119,7 @@ def ci_create_and_get_live_recognition_jobs():
11391119 # 输出地域信息
11401120 'Region' : region ,
11411121 # 输出文件路径信息
1142- 'Object' : 'nowresult .m3u8'
1122+ 'Object' : 'result .m3u8'
11431123 },
11441124 # 非必选
11451125 "UserData" : "This is my data" ,
@@ -1167,13 +1147,14 @@ def ci_create_and_get_live_recognition_jobs():
11671147 )
11681148 if 'VideoTargetRecResult' in response ['JobsDetail' ][0 ]["Operation" ]:
11691149 if 'CarPlateRecognition' in response ['JobsDetail' ][0 ]["Operation" ][
1170- "VideoTargetRecResult" ] \
1150+ "VideoTargetRecResult" ] and response ['JobsDetail' ][0 ]["Operation" ]["VideoTargetRecResult" ][
1151+ "CarPlateRecognition" ] is not None \
11711152 and \
11721153 response ['JobsDetail' ][0 ]["Operation" ]["VideoTargetRecResult" ][
11731154 "CarPlateRecognition" ]['CarPlateInfo' ] is not None :
1174- print (response )
1175- else :
1176- print ("don't have result: " + str (response ))
1155+ print ("result:" + str ( response [ 'JobsDetail' ][ 0 ][ "Operation" ][ "VideoTargetRecResult" ][ "CarPlateRecognition" ]) )
1156+ else :
1157+ print ("don't have result: " + str (response [ 'JobsDetail' ][ 0 ][ "Operation" ][ "VideoTargetRecResult" ] ))
11771158 state = response ['JobsDetail' ][0 ]['State' ]
11781159 if state == 'Success' or state == 'Failed' or state == 'Cancel' :
11791160 print (response )
0 commit comments