You are not logged in.
Does anyone know how to extract H264 video and AAC audio from an mp4 container?
I want to be able to mux those with ASS subtitles into a mkv container.
Last edited by Acecero (2009-03-17 21:44:37)
Offline
You can use FFmpeg to simply change the container and mkvtoolnix to add the subtitles. The FFmpeg part is simple:
ffmpeg -i <YOUR_INPUT>.mp4 -vcodec copy -acodec copy <YOUR_OUTPUT>.mkv
I don't know what the state of libass is in FFmpeg. If the code is in, you could use that too. But, I can't test it without any subtitles.
--EDIT--
I just read somewhere that mkvmerge from mkvtoolnix can also make the conversion from mp4 to mkv. It may be easiest just to use one tool.
Offline
Actually using FFmpeg and mkvtoolnix together was probably what I needed.
Before I made this thread I did attempt to do the easiest way:
mkvmerge -o <OUTPUT>.mkv <INPUT>.mp4 <INPUT>.ass
But that method did not work out. There was a freeze frame for the first few seconds of the video, probably due to the incompatibility with mp4 and ASS.
Using your method with FFmpeg to transfer the video and audio codecs to mkv helped because then all I had to do was mux the subtitles:
mkvmerge -o <OUTPUT>.mkv <INPUT>.mkv <INPUT>.ass
Video worked perfectly.
Last edited by Acecero (2009-08-29 18:34:22)
Offline
mkvmerge even has a gui *cough*
start "mmg"
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
I wasn't even aware of a gui version.
It's nice, thanks for mentioning it. Is there anything else I should I know?
Offline