بدء موضوع جديد

Moving h264 from mkv container to mp4 container

Hi,


I have an h264-encoded file that is in an mkv container. Unfortunately, as nice as an open container format is, I have yet to find a player than can handle it as well as and avi or mp4 container. So, I'd like to move it if possible. What tools can/should I use? I have access to a Vista machine and an OS X machine. I'd prefer to use the Mac as it's much beefier. I can probably get most free software tools to work as well. I am not afraid of the command line. In fact, I probably prefer it?


Please help.

 

I didn't find the right solution from the Internet.

 

References:-

https://arstechnica.com/civis/viewtopic.php?t=103970

Corporate Marketing Campaign Video


Thanks

تعليق واحد

The best tool I know of for simple conversion is Handbrake (https://handbrake.fr/downloads.php).


There is a Mac version that should accomplish the results you're looking for.


If your video is h.264, then you should only need to change the container format and copy the video rather than transcode it.


If you change the container (instead of transcoding), then it should only take a minute or two per video.


Handbrake is also capable of batch conversions.


If you want to script it, then use FFMPEG.  I created a script to do this years ago: https://gitlab.com/ThatGuy/convert2mkv/blob/master/convert2mkv.sh


Just change the line:

container="mkv"

to

container="mp4"


Good luck.