Tools Needed:
MKVtoolnix
MKVextractgui
MP4Box
YAMB
MeGUI
AviSynth
Codec pack of choice (k-lite mega codec pack recommended)
Steps:
1a) Use MKVextractgui to extract the video, audio, subtitle, and fonts from your file.
1b) Install fonts if neccessary.
1c) Use YAMB to add the h.264 video to an MP4 container, you might need to specify the video frame rate. (File_RAW_NA.mp4) make note of the bitrate for the video
2a) In MeGUI create a new AVS script, Crtl+R
2b) OptionsTab : File_RAW_NA.mp4 for you input video then File_SUBBED.mp4
for your output.
2c) FiltersTab : Select the subtitles for your video, if you're using an older version of AviSynth you might need to get VSFilter.dll and manually add the subtitles.
(LoadPlugin("X:\Location\of\VSFilter.dll")
TextSub("X:\Location\of\Sub.ass or Sub.ssa"))
2d) Preview the script and then save.
2e) for the encoder select "x264: *scratchpad*" and config it to use ABR mode at the bitrate you found earlier. Click OK.
2f) Click "Enqueue" to add your file to the queue go back and setup any other files for conversion otherwise you're ready to start you're re-encode.
3) Finally use YAMB to add the audio into the File_SUBBED.mp4 file to make File_FINAL.mp4.
4) Make sure your final video is exactly what you want and delete any excess files you do not need any more.
+ Reply to Thread
Results 1 to 5 of 5
-
-
That was a very detailed answer to this most sought out question.
I suppose these tools help to take out the subtitles, audio and video from mkv file first, then mix subtitles with video, then mix audio and video(hardcoded subtilte) to get the mp4.
You seem to have taken linux or unix operating system, Is is possible to do it in Windows xp easily?
Do I need to install cygwin for mkv tools installation?
thanks,
Pradeep. -
-
You can also do this in AVIDemux (demux subtitles and fonts from MKV (install fonts if necessary), feed the MKV to AVIDemux, set the audio/video output and container options, then apply the appropriate subtitle hardsub filter (loading the subs you extracted). Save the video (adding the .mp4 extension to the filename), and you're done. No need for extra codecs, and fewer tools.)
Of course, AVIDemux takes a LOT more getting used to, and may require you to experiment to get the video the way you want it.If cameras add ten pounds, why would people want to eat them? -
First off, correct usage is "someone,"
Second, good job spamming five threads,
Third, I'm pretty sure my guide tells you what to do.
Edit:
This originally was the 6th post here and now the spammer's post is gone, how about that!Last edited by hawk16zz; 21st May 2010 at 01:14. Reason: Explained in post
Similar Threads
-
Converting Softsubs from Mkv into Hardsubs in Mp4?????
By aca85 in forum SubtitleReplies: 2Last Post: 30th Apr 2011, 13:30 -
Converting Softsubs from Mkv into Hardsubs in Mp4?????
By aca85 in forum Video ConversionReplies: 1Last Post: 29th Apr 2011, 21:52 -
MKV + softsubs to .avi hardsubs
By Born4battle in forum Video ConversionReplies: 4Last Post: 9th Nov 2008, 10:04 -
What is the best program to convert from H.264 mp4 to H.264 avi?
By Stealth3si in forum Video ConversionReplies: 6Last Post: 15th Sep 2007, 10:11 -
Converting .avi (Xvid) to .mp4 or .mkv (H.264 or x.264) w/ subs
By Tensai in forum Video ConversionReplies: 4Last Post: 18th Jul 2007, 09:25