Convert video to exactly the same format as another video

avconvffmpegmencodervideo

Suppose I have two video files A and B.

Now I want to convert A to the same format (i.e. same container, same audio and video codec), same bitrate, size etc. as B.

Is there a way to do this automatically (i.e. without extracting the information manually and giving it manually as input parameters) using a command line tool (or even a GUI tool)?

Best Answer

I think if you parse ffmpeg output you could achieve this in part, but beware the labyrinthe documentation on how to encode for best results. It's a little tricky.

Perhaps an alternate approach is to find a common standard whose parameters can be set one, and leave your transcoder job running on all A, B, etc.