How to convert .mkv file into .mp4 file losslessly?


Get needed software

sudo apt-get install gpac mkvtoolnix

Extract video and audio from matroska file

First you need to check what tracks the matroska file contains with

mkvmerge --identify video.mkv

File 'video.mkv': container: Matroska Track ID 1: video (V_MPEG4/ISO/AVC) Track ID 2: audio (A_AC3)

Then extract video and audio according to their tracks with:

mkvextract tracks video.mkv 1:video.h264 2:audio.ac3

Extracting track 1 with the CodecID 'V_MPEG4/ISO/AVC' to the file 'video.h264'. Container format: AVC/h.264 elementary stream Extracting track 2 with the CodecID 'A_AC3' to the file 'audio.ac3'. Container format: Dolby Digital (AC3) Progress: 100%

Mux audio and video into mp4 containter

MP4Box -fps 24 -add video.h264 -add audio.ac3 video.mp4

AVC-H264 import - frame size 1280 x 720 at 24.000 FPS Import results: 31671 samples - Slices: 5672 I 125048 P 122648 B - 32288 SEI - 4936 IDR AC3 import - sample rate 48000 - 6...
0 0

Make MKV works well, and all automatically.

The downside is that youll need additional splitters etc to play a MKV file.

If you are they type that would rather not install any additional codecs, there is another option:

Its free but will require a little extra effort on your part.

Browse the DVD and look the first .VOB
It should be .99GB in size, and lists something like ,, .VTS_01_1 - VTS_01_02 etc. >>
Notice the very last number. This will tell you the order they go in.

Add the first one, then use JOIN to add the rest in order they appear.

You can then Mux as a TS or M2TS. I would just use .TS

This obviously isn't a automated method, but ...
1) Its Free
2) No extra codecs needed to play the file afterwards
3) Lossless

MP4 containers can be picky when trying to put lossless DVD into them.
Your best bet is MKV or Transport Stream.

If you decide to convert to H264,...

0 0


I need to convert a video file from Matroska container into mp4 container. Matroska file contains one h.264 video track and one AC3 sound track. It should be possible to do this losslessly, but how to do it with native Ubuntu tools?

Transcoding is not an option.


Perhaps the easiest tool for that is ffmpeg, or avconv from the libav-tools package. Libav is a fork of FFmpeg, which Ubuntu switched to for a few years until Ubuntu 15.04. It is one of the backends for many of the GUI tools mentioned in other answers.

Changing container without re-enconding content could not be simpler:

ffmpeg -i input.mkv -codec copy output.mp4

It auto-detects a Matroska to MP4 container conversion based on input/output filenames.

-codec copy stream copies, or "re-muxes", the streams from the input to the output without re-encoding. Think of it like a copy and paste.

Default stream selection...

0 0

Do you have a video in MKV file and you can't open it because some program (like Sony Vegas Pro) doesn't support this format? If so, you probably wonder how to convert it into some different format. I just discovered a way to do this.

To understand this method, first you need to know that media file formats are just containers (for example, MKV is Matroska). Each format encapsulates a set of streams, usually one video and one audio stream. Now, each stream is encoded using some specific codec. There may be various codecs used, but for the file I needed to convert, Media Player Classic (my favorite movie player, installed with K-Lite Codec Pack) shows following information after selecting File > Properties:

Type: Matroska
Video: MPEG4 Video (H264) 720x400 25fps [V: English [eng] (h264 main L4.0, yuv420p, 720x400) [default]]
Audio: AAC 44100Hz stereo [A: aac lc, 44100 Hz, stereo [default]]

MPEG4 Video is the same codec that may be used with MP4 file...

0 0

On a Video DVD (Digital Video Disc or Digital Versatile Disc), you can see various types of file which contains Audio, Video, Subtitle, Chapters, Manu and many others system files information which required to play a DVD. ".VOB" is the file that contains the audio and video material of any DVD. The DVD specification limits each individual VOB file to maximum length of 1GByte. There are different ways to save your DVD videos content in your PC / laptop like make DVD's ISO image file or just copy, past "VIDEO_TS" directory from the root of a DVD. For those who want a VOB alternative format which can keep the same excellent quality, the best solution is to convert VOB to MKV with lossless quality.

The article will show you how to convert VOB to MKV videos losslessly so that you can easily share the movies or play the movies on some media players.

Normally conversion of a high quality VOB video into MKV required a lot time for process because size of the VOB file....

0 0

The formats mp4 and mkv are just the "containers" for video files that you have, which "contain" the video, audio, and metadata, such as chapter information and subtitles, for the content. The video and audio streams are encoded using codecs such as libx264 and vorbis etc. Since mkv and mp4 can both hold the same codecs (as far as I'm aware) you can losslessly convert an mp4 file into an mkv file in order to take advantage of the additional functionality mkv can provide, such as better support for subtitles etc.

This tutorial assumes you are using a Linux computer.

To convert an mp4 video to mkv, simply install ffmpeg and run the command below:

ffmpeg \ -i input.mp4 \ -vcodec copy \ -acodec copy \...
0 0

WMV to MP4: the Best Way to Convert WMV Video to MP4 on Windows 10 and Earlier

"I have tons of wmv that I'd like them to be converted into mp4. What is the best software to do so? Fast, can be done at once, size would not be too big, easy to use."
"The latest Handbrake does not recognize WMV from my use of it. What is the current recommendation for a bundleware-free converter from WMV to mp4 with the goal of joining a number of segments to make a continuous media piece?"

Why we need to convert WMV file to MP4? The answer will be clear after figuring out the limitations of WMV and the advantages of MP4.

WMV, short for Windows Media Video, is one of the mainstream file formats. Featuring the capability of containing large quantity of video and audio information in smaller storage space, WMV is suitable for online streaming. Despite of some advantages, its disadvantages are also obvious. As Microsoft's Proprietary, WMV is compatible with Windows powered...

0 0

This guide is about the steps on how to convert MXF videos to MKV/MP4 format with the help of MXF converter.

“I have a few episodes that are about 1.5GB and they are in separate folders as MXF files. Is it possible to convert .mxf to .mkv or .mp4 or other playable video formats? Thank you for any tip”

Compared with highly compressed MXF file, MKV/MP4 files tend to be in a better quality and smaller file size. With MKV/MP4, you can save more space and copy a complete MXF file in a more streamlined digital video. Therefore, it is much important for users to get a professional third party program if they wanna change MXF to MKV/MP4 losslessly.

After long time searching online, I found a powerful third party program for you-Brorsoft MXF Converter. It enables users to encode MXF files into other formats freely including MKV, MP4, AVI, MOV, M4V .etc. In additon, it also offers optimized codecs for NLEs like DNxHD for Avid, MPEG-2 for Premiere, WMV for Windows...

0 0
Part One: What are BDMV Files


BDMV files commonly contains the names of the movies and the directory location of the movie, the movie objects and the movie file’s audio data. Generally, a BDMV file comes from three places:

* AVCHD folders (BDMV and CERTIFICATE) with .mts/m2ts file extension from HD camcorders.

* Blu-ray movie with BDMV and CERTIFICATE folder. In this folder there is a stream subfolder, which contains a MTS file inside.

* Ripped Blu-ray DVD movie with a BDMV folder structure, and in this folder there are files with .m2ts extension.

Part Two: How to Play BDMV Files on Windows/Mac?

In order to edit and play MTS/M2TS files from BDMV folder, you can use the most popular VLC media player, or QuickTime Player. But as some media players need to have the right codec or plugin installed first, and some editors need to render for loaing the BDMV files, it makes it difficult to smoothly get BDMV folder into these editors and players...

0 0

Top MOV to MP4 Converter for Windows & Mac

VideoSolo Video Converter Ultimate is the best video converter you can find on internet that supports convert videos in different formats to 300+ video formats including MOV, MP4, MKV, AVI, WMV, FLV, etc. Besides, if you need to convert some audio files, VideoSolo Video Converter Ultimate also enables you to do so.

It also supports converting almost all existing audio formats such as WMA, AAC, AC3, FLAC, AIFF, MP3, OGG, M4A, etc. There will be zero quality loss during the conversion and the conversion normally takes only moments because the software supports 6X faster speed with Intel and NVIDIA hardware acceleration. If you like to enjoy videos with different definitions such as 4K(HD), 1080P(FHD), 720(HD), 480P(SD), you can take full control of the conversion with VideoSolo Video Converter Ultimate.

Moreover, it will surprise you that it supports downloading videos from YouTube, Yahoo, Vimeo, Dailymotion, Niconico,...

0 0

Basically, what gcjm said. But since I started drafting a reply to your post before I read his and saw he'd said it all already, I'll post this anyway.

"So if mp4 and mkv are the same, "

They're not "the same" exactly. It's hard to find the words to explain the concept.

Imagine you have a Word document and you use WinRAR to create a RAR file of it and WinZIP to create a ZIP file of it.

The RAR file and the ZIP file would be slightly different sizes, and they would be quite different at the binary level. But the "quality" of the Word document you would get if you extracted it? That is what would be "the same".

That's the case with the audio and video streams within the MKV / MP4 files.

"then why are so many mkv files uploaded? "

The "early adopters" of the h.264 codec were anime encoders, and they happened to choose MKV. It's open source and pirates like that. So it stole a march and network effects being what they are, they've kept...

0 0

This free MKV to MP4 converter is a piece of software that you can download for your computer that will enable you to convert MKV media types into the MP4 type. This is a straight forward piece of software that can be installed easily and without any problems. Furthermore, you will be able to use this software to get the highest quality MP4 files that are far more popular than the MKV file type.

Getting compatible media files for the different players can be a difficult task if you do not have the right software. MKV are not a popular type of file, which means that you need to find a way of converting into the MP4 format. With the MP4 format, it is possible for you to play almost any of the media files without any problems.

The installation process for the free MKV to MP4 converter is incredibly simple. Just get the download link installed on your computer and go through the entire installation process. You will have brief tutorial sections that will allow you to...

0 0

Here is a familiar scenario. You have been all over looking to watch a certain movie or video clip. You finally get it somehow and you swiftly copy it to your computer’s hard drive. You expectantly double click on the precious video file but NO! Your video cannot be played. What do you do? Do you go in search for another clip? That is not an option. Before you think of discarding your “hard – earned video clip” out of desperation, there is a nifty little tool you can use to convert video clips to readable formats. Don’t get carried away by the hype of the free and flashy converters you encounter every day on the internet either. Most of their relevance usually ends up at the GUI level; while others eventually offer an avenue for malware to find a way into your system.

For video conversion, Handbrake is arguably the best utility you can use and it is absolutely free. You may not have heard of it before but it has been around for quite a while (the best stuff usually are,...

0 0
Sponsored Link

Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated using projects, job queue and powerful scripting capabilities.

Avidemux is available for Linux, BSD, Mac OS X and Microsoft Windows under the GNU GPL license. The program was written from scratch by Mean, but code from other people and projects has been used as well.

We have already discussed How to install avidemux in ubuntu.

Procedure to follow

1) Open the mkv file in avidemux and Select safe mode if prompted.

2) Leave the video as copy.

3) Choose File-> Properties. Check if the audio codec is aac.

4) If audio codec is NOT aac, select aac(faac).

Otherwise, leave it as copy. (Sometimes using this option the audio may be out of sync or distorted, in that case select aac(faac)...

0 0

How to Use an MKV-to-MP4 Converter

MKV is a popular format for HD video compression. However, in spite of becoming more popular over the last few years, it is still far from being widely supported on mobile devices and even computers as MKV files are often too “heavy” for smooth playback. There is an easy solution for this problem, though. You can transcode MKV video into an MPEG-4 file, which makes it possible to watch your movies and video clips on almost any platform or device.

With Movavi Video Converter, you can even transfer MKV to MP4 without losing quality using the revolutionary SuperSpeed mode! You can also use this smart app as an MP4 to MKV converter if you need to do the reverse – convert MP4 to MKV. The program was specifically designed for fast conversion between more than 180 multimedia formats, so you can forget about format compatibility problems once and for...

0 0

TV shows recorded with windows media center are encoded in WTV (DVR-MS on windows vista) proprietary file format, it is incompatible with iTunes, QuickTime and many other media players like iPad, iPhone, Android, Surface, etc. While MP4 is commonly used for saving files recorded by camcorder, or sharing video files on the Internet, or playing on various hardware devices. Therefore sometimes people need to convert WTV to MP4 to enjoy and share WTV files with others. This article will recommend a professional software to convert WTV files to MP4 within only 3 steps.

In fact, the process is not as difficult as it sounds as long as you have a WTV video Converter like Brorsfot WTV Video Converter in hand. The program has the ability to transcode WTV files to MP4 format with fast converting speed wihle ramainning the excellent visual quality. Besides WTV files, it can also help you encode/re-encode almost all 1080p/720p HD videos including AVI, MKV, VOB, MPG, MOV, TiVo,...

0 0
Input File Formats Supported (Support directly capture videos from camcorder.) Video

AVCHD, AVCHD Lite files, MTS, M2TS, MOD, TOD files from JVC, Canon, Panasonic, Sony camcorders, H.264/MPEG4 AVC/VC-1 Video (*.m2ts, *.mts) with TrueHD, DTS-HD, Eac3, DTS, AC3, DTS-MA, AAC, etc audio codec

Canon: HF200, HF100, HF S10, HF S21, HF11, HF S11, HF S100,etc.
JVC: GZ-HM1, GZ-HD620, GZ-HM400, GZ-X900, GZ-HD10, GZ-HD320, etc.
Sony: HXR-NX5, NEX-VG10, HDR-CX150, TX7, HDR-CX350V, HDR-XR520V, etc.
Panasonic: HDC-TM900, HDC-TM700, HDC-HS700, DMC-ZS7, HDC-SD60, etc.


1080/60p, 1080/50p, 1080/60i, 1080/50i, 1080/25p, 1080/30p, 1080/24p, 720/50p, etc.

Output File Formats Supported Video Lossless output (*.mkv, *.mts, *.m2ts, *.mod, *.tod), keep format and quality intact. 3D Video: MPEG4-3D Video(.mp4), WMV 3D Video(.wmv), MKV 3D Video(.mkv), AVI 3D Video(.avi) H.264 HD (*.mp4), MPEG TS HD Video (*.ts), H.264 HD video (*.mov),...
0 0

What is M2V

To put it simply, a file with M2V file extension is just an MPEG-2 video file which contains video content only, so there are no audio, subtitles and other data.

Where is it from? If you use some DVD authoring tools like TMPGEnc or GUI, then you got M2V files, but these tools usually requires you to split the audio and video into two separate files (this is called demuxing). Sometimes, the M2V also can be created by converting video to MPEG-2.

Note: Although M2V files don’t contain audio, but it is combined with corresponding audio files like WAV or AIFF, so you may just merge audio and video together by other tool.

Why Need to Transfer M2V Files

You can choose VLC or RealPlayer as M2V player to open it. But if you want to transfer M2V to standard DVD video format VOB or you want to play this file in commonly used devices. Then to change M2V into some commonly used video format is the best way, like convert M2V to MP4, M2V to AVI and...

0 0
0 0