瀏覽代碼

adjust height

ming 3 年之前
父節點
當前提交
9d624b5395
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1 1
      OpenshotService/openshot_video_generator.py
  2. 0 1
      etc/Dockerfile

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -767,7 +767,7 @@ def anchor_video_v2(name_hash,name,text_content, image_urls,multiLang,avatar):
         img_list[idx] = openshot.FFmpegReader(dir_photo+name_hash+'/'+p)
         img_list[idx].Open()
         photo_clip_list[idx] = video_photo_clip(vid=img_list[idx],layer=3
-                ,scale_x=0.8,scale_y=0.704,location_y=-0.03,position=main_timer,end=clip_duration,audio=False)
+                ,scale_x=0.8,scale_y=0.6825,location_y=-0.03,position=main_timer,end=clip_duration,audio=False)
         t.AddClip(photo_clip_list[idx])
         img_list[idx].Close()
 

+ 0 - 1
etc/Dockerfile

@@ -20,7 +20,6 @@ RUN pip3 install websocket
 RUN pip3 install websocket-client
 RUN pip3 install dataset
 RUN pip3 install aiofiles
-EXPOSE 8022
 RUN apt-get install python3-openshot -y
 RUN apt-get install openshot-qt -y
 RUN apt install -y xvfb