Code Monkey home page Code Monkey logo

ygogui's Introduction

YgoGUI

這是什麼?

提供 國立**大學動畫社-影像編輯研究 使用的圖形化介面 VP9/OPUS 轉檔軟體; 為統一社員作品格式,只具備最低限度的自訂選項與功能。 使用 ffmpeg 進行編碼, 支援的輸入格式除常見的 avi, mp4, mkv 外, 亦可搭配 AviSynth 使用 avs 腳本。

本專案目的是作業懶人化, 有自定義需求的人建議使用 HybridHandBrake

使用方式

GUI 版本

注意!!! 此版本目前有無法解決的 async 問題, Windows 系統下建議改用非 GUI 版本的方案

  1. 發布頁面 下載 ygogui-<release-verison>-ia32-win.zip 並解壓縮
  2. 執行 ygogui.exe
  3. 拖曳或使用瀏覽按鈕指定來源影片或 avs 腳本
  4. 使用瀏覽按鈕指定輸出路徑與檔名
  5. 按下 Encode 按鈕並等待編碼完成

PowerShell 版本

  1. 發布頁面 下載 ygonogui.zip 並解壓縮
  2. 把要轉的檔案(mp4, avi, avs 等)放進資料夾 source
  3. 對著 ygonogui.ps1 按右鍵 -> 以 PowerShell 執行
  4. 轉出來檔案會放在資料夾 output 裡面

建構資訊

  1. 安裝最新版的 Node.js 並設置相關系統環境變數。雖然 Electron 官方建議使用 yarn 管理套件,但作者使用 npm 暫無發現影響
  2. git clone 原始碼或下載壓縮檔
  3. 於專案根目錄中,執行 npm install
  4. 執行 npm run dist 來建構 Windows IA32 版本之執行檔
  5. 本專案使用 electron-builder 建構, 如有其他建構需求 (如非 Windows 平台),請詳閱 官方手冊 並修改 package.json 當中的 build 參數及 scriptdist 腳本

ffmpeg 參數

一般轉檔 (2-Pass)

ffmpeg -i src.avs -c:v libvpx-vp9 -b:v 0 -c:a libopus -b:a 192k -g [fps*10] -tile-columns 2 -tile-rows 0 -threads 8 -row-mt 1 -frame-parallel 1 -qmin 0 -qmax 63 -deadline good -crf 18 -pass 1 -cpu-used 4 -passlogfile passlog -y out.webm
ffmpeg -i src.avs -c:v libvpx-vp9 -b:v 0 -c:a libopus -b:a 192k -g [fps*10] -tile-columns 2 -tile-rows 0 -threads 8 -row-mt 1 -frame-parallel 1 -qmin 0 -qmax 63 -deadline good -crf 18 -pass 2 -auto-alt-ref 1 -arnr-maxframes 7 -arnr-strength 5 -lag-in-frames 25 -cpu-used [0-2] -passlogfile passlog -y out.webm

快速輸出預覽用影片

ffmpeg -i src.avs -c:v libvpx-vp9 -b:v 0 -c:a libopus -b:a 192k -g [fps*10] -tile-columns 2 -tile-rows 0 -threads 8 -row-mt 1 -frame-parallel 1 -qmin 0 -qmax 63 -deadline realtime -cpu-used 6 -y out.webm

選項說明:

  • 編碼品質 vs 編碼速度:-cpu-used 限制可選範圍 0 - 2。數值越低品質越好、速度越慢。
  • 快速輸出預覽用:使用 1-pass 且 realtime 等級的參數;建議僅用來快速檢查畫面與字幕是否缺漏。
  • 去交錯:-vf yadif=0:-1:0,bm3d;建議來源為非交錯影片時才勾選。
  • 降噪:-vf hqdn3d;建議來源有顆粒噪訊時才勾選。

Ref: VP9 Encoding GuideRecommended Settings for VOD, 歡迎至 Issue 討論更佳的參數設定

注意事項

為了支援只有 32-bit 的官方版 AviSynth,本專案本身及所包含的 ffmpeg 亦為 32-bit 版本。

License

GPL-3.0

ygogui's People

Contributors

ytingyeu avatar

Stargazers

Himawari Tachibana avatar

Watchers

James Cloos avatar Himawari Tachibana avatar

ygogui's Issues

連續轉檔時,第二個任務卡住

完成第一個任務後選擇第二個來源與目的,按下轉檔後進度視窗卡在 Pending。

工作管理員顯示實際上 Pass 1 有在進行,只是進度視窗沒有更新,待 Pass 2 開始後又會正常顯示進度。然而目前無法 100% 重現此狀況,請求回報詳細操作流程

無法讀取 avs 檔案

輸入來源為 avs 時出現「無法開始任務,請檢查輸入路徑與檔案格式」,但不更動任何設定的情況下直接再次按下轉檔按鈕卻可正常轉檔

目前無法 100% 重現此問題,請求回報詳細操作流程

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.