Join two video files with different properties

I need to join two video files file1 and file2.

File1 has to be converted to get the properties of file2 and then the two are supposed to be joined together into one file.

If the properties like codec, resolution etc are different, it is impossible to merge the two files.

Is there an easy way to copy the properties of file2 and then merge the files?

I have to do the same thing with many different files.

Well, you forgot to specify anything about the computer system you are using.

For example, on a Debian-based system:

apt-get install mediainfo

Example:

$ mediainfo "The Blues Brothers.mp4" | grep -E 'Duration|Format  |Width|Height' | sort | uniq
Duration                                 : 2h 27mn
Format                                   : AAC
Format                                   : AVC
Format                                   : MPEG-4
Height                                   : 688 pixels
Width                                    : 1 280 pixels

I'm using ubuntu

So, you have your answer already then :slight_smile:

(You're Welcome)

Did you solve it already? If not I can show you how to do with ffmpeg.