Converting .mkv to h.264 FFmpeg

会有一股神秘感。 提交于 2019-12-03 20:59:12
Ely

I suggest you first check whether your .mkv file already has H.264/AAC streams in the first place. Because if it does, all you have to do is copy the streams and change the container:

ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4

If it doesn't, you probably got rejected because you didn't specify a bitrate to libvo_aacenc. Try the following:

ffmpeg -i input.mkv -c:v libx264 -c:a libvo_aacenc -b:a 128k output.mp4

But again, if your .mkv already contains H.264/AAC, USE THE FIRST SOLUTION. It'll be faster and will have a better quality.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!