Home » Questions » Computers [ Ask a new question ]

How can I merge two mp4 files without losing quality?

How can I merge two mp4 files without losing quality?

I have two high-quality mp4 files, which are of two parts of the same show.

Asked by: Guest | Views: 66
Total answers/comments: 5
Guest [Entry]

"I usually use VirtualDub to merge my files, but it doesn't seem to support mp4. So what alternatives are there?

Avidemux. It's just like VirtualDub, only with more formats supported and built-in codecs and filters. I always use it in preference; it joins AVC+AAC.MP4 files (without recoding) fine for me.

To join them in AviDemux:

File -> Open -> Select File
File -> Append -> Select File
Set all to Copy
File -> Save -> FileName

According to AViDemux forums, this join process is lossless (http://www.avidemuxdotorg/smf/index.php?topic=9467.0)"
Guest [Entry]

"Concat demuxer

The concat demuxer was added to ffmpeg 1.1. If your version of ffmpeg is to old, get the newest static binary from here: http://www.ffmpegdotorg/download.html


Create a file mylist.txt with all the files you want to have concatenated in the following form (Lines starting with a dash are ignored):

# this is a comment
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'

Note that these can be either relative or absolute paths. Then you can encode your files with:

ffmpeg -f concat -i mylist.txt -c copy output

It is possible to generate this list file with a bash for loop, or using printf. Either one of the following would generate a list file containing every *.wav in the working directory:

for f in ./*.wav; do echo ""file '$f'"" >> mylist.txt; done
printf ""file '%s'\n"" ./*.wav > mylist.txt

Source: ffmpeg wiki"
Guest [Entry]

"SUPER © (Simplified Universal Player Encoder & Renderer) provides the following additional Output Process:

Any supported input Multimedia file can be processed:

o Join Format-Identical Files.
o Mux Video & Audio Streams.
o DeMux Extract Streams.

of course, MP4 is a supported format.

SUPER © is freeware."
Guest [Entry]

If you can play them on your system / have a codec installed, Windows Movie Maker may the quickest (and free) way to join the two files. You can then use Virtualdub to convert to a different format.
Guest [Entry]

Another solution is Open Video Joiner. It also does transition effects.