- Download MEGUI: https://sourceforge.net/projects/megui/
- Download AviSynthPlus (Installer): https://github.com/AviSynth/AviSynthPlus/releases
Install AviSynthPlus Extract MEGUI
- 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
-
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"