I have 1080p mkv file with low quality audio and the exact same video at 720p with higher quaity audio.HOw do i extract the 1080p video and the higher quality audio from the 2 sources without converting it and the add these together to form a mkv video??How can I add subtite to the mkv file??
Have a look at MKVToolNix.
Available at: MKVToolNix news – Matroska tools for Linux/Unix and Windows
Use MKV Toolnix + MKV Extract GUI - The MKV Extractor will allow you to extract the raw AV data and the subtitles as well as chapter info. Also, ensure that you have 2-3 times the free space of the two files combined before starting this - since it extracts the files and when muxing them, creates a new file. Also, remember the frame rate of the video data as when you mux it back into a single file - you may have to enter it.
I personally use the above with MP4 Muxer to make MP4 files from MKVs - so that I can embed cover art, and the files do not need a 3rd party playing software on most of the OSes.
mkvmerge from mkvtoolnix and mp4box gui are the best tools.
you can also add srt subs to mkv file using the gui. typically I would use mp4boxgui for extracting streams from mp4s and put them in mkv using mkvmerge.
MKVToolNix. MKVToolNix news – Matroska tools for Linux/Unix and Windows Plus, You will need to find and download mkvextract GUI separately.
By using mkvextract GUI, you can extract separate Video, Audio and Sub tracks from both MKVs. Now, choose best Video and Audio tracks and subs. Merge them using mkvtoolnix. You can do this by running mmg.exe.
You can always come back here if you face any problems using this tools.