docker建立 (1)build和run
docker build -t [想取tag名稱] .
docker run -it -v [本地資料夾]:[docker資料夾] [想取tag名稱]
EX:
docker build -t ai_anchor .
docker run -it -v C:/Users/oak/Desktop/AI_anchor:/app ai_anchor
2.使用說明:(檔案名稱沒有限制,但格式請參考圖1~圖12說明和sample_explain.csv說明)
3.可調整參數:
main1.py
1.
輸入
python3 main1.py --op="input_self/LOGO_OP_4.mp4" --ed="input_self/LOGO_ED.mp4" --bg="input_self/xchoozmo_long.mp4" --input_zip="input/input_data.zip" --save_type="excel"
2.
op:所引用開頭影片檔案位置
ed:所引用結尾影片檔案位置
bg:所引用背景影片檔案位置
input_zip:所引用壓縮包檔案位置
save_type:可選["excel","sheet"] :
"excel"為存成excel檔案
"sheet"為存在google sheet
main2.py
1.
輸入
python3 main2.py --mp4_file = "output/no_captions/test.mp4" --sound_file ='output/no_captions/test.mp4' --output_filename="output/finally_output/demo.mp4" --text_font ="input_self/font/DFT_R7.ttc"
2.
mp4_file:所引用無字幕影片檔案畫面位置
sound_file:所引用無字幕影片檔案聲音位置
output_filename:完整版影片輸出位置
text_font :所引用字形檔案位置