Skip to content

Instantly share code, notes, and snippets.

@KangHidro
Created January 20, 2024 18:37
Show Gist options
  • Select an option

  • Save KangHidro/124ae6ea9e5b1824872a4a8f09c32e7e to your computer and use it in GitHub Desktop.

Select an option

Save KangHidro/124ae6ea9e5b1824872a4a8f09c32e7e to your computer and use it in GitHub Desktop.

Revisions

  1. KangHidro created this gist Jan 20, 2024.
    42 changes: 42 additions & 0 deletions how-to-use-megui.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    # Download
    - Download MEGUI: https://sourceforge.net/projects/megui/
    - Download AviSynthPlus (Installer): https://github.com/AviSynth/AviSynthPlus/releases


    # Install
    Install AviSynthPlus
    Extract MEGUI


    # Config
    - Open MEGUI
    - Select "Options" in menu bar
    - "Main" tab:
    + Uncheck "Always use the included AviSynth"
    + Check "Enable DirectShowSource() in the AVS Script Creator
    - Save and Restart MEGUI


    # Encoding
    - Menu "Tools" -> "AVS Script Creator"
    - In "Input" section -> "Video Input" -> Select Video
    - A popup will show, select "DirectShowSource"
    - Back to "AVS Script Creator" dialog, select tab "Filters"
    - In "Subtitles" section -> "File" -> Select sub file (ass/srt)
    - Click "Preview AVS Script" if you need to re-check Video and Subtitle
    - "Save"
    - In main MEGUI window -> "Input" tab -> "Video encoding" section:
    + Encoder settings: x264 *scratchpad*
    + File format: MP4
    + Press "Queue"
    - In main MEGUI window -> "Input" tab -> "Audio encoding" section:
    + Audio Input: select original video
    + Encoder settings: FFmpeg AAC: *scratchpad*
    + Extension: M4A
    + Press "Queue"

    - Wait for MEGUI encoding, you will got 2 file: MP4 (video no audio) and M4A (audio)
    - Menu "Tools" -> "Muxer" -> "MP4 Muxer"
    - Select Video MP4 (no audio) as Video input
    - Select Audio M4A as Audio input
    - Press "Queue"