I have an immense number of MKVs containing H.264 video and different types of audio (usually AC3). I'm converting the MKVs using mplayer to output them to yuv video in a 24 fps (for Apple TV) pipe for x264 to convert to a h.264 that I can then use mp4box to remux the audio and video.
What is giving me trouble right now is that I cannot get the video to be the 'proper length', i.e. mplayer seems to halt a little bit at the beginning, and then play too quickly. I have a short source clip @ 23.976 fps (8.8 seconds long) that ends up 9.1 seconds long, I have a 25 fps file (58 seconds long), that I'm forcing mplayer to play at 24 fps, that ends up 2-3 seconds too long. The proportions seem to be roughly (24/25) * original video length, which makes sense for the 25 fps file, but not the 23.97 fps files.
This also throws off my audio. when i export the audio from the MKVs using quicktime, it throws out the 2 channel aac I need, which I then remux with the video. Using movie properties in Quicktime Pro, its clear that the video length has changed, even if I'm just converting 23.976 to 23.976, and the audio is constant.
Isn't there some way to say 'hey mplayer, output this 25 fps file at 24 fps, but just drop a frame every second to keep it a constant time length'?
I know its easier to use ffmpeg, mencoder, etc., but I like the flexibility I have with this setup, where I can easily recompile either mplayer or x264 to take advantage of new features, and I have a lot of discretion in what options to pass to each.
What is giving me trouble right now is that I cannot get the video to be the 'proper length', i.e. mplayer seems to halt a little bit at the beginning, and then play too quickly. I have a short source clip @ 23.976 fps (8.8 seconds long) that ends up 9.1 seconds long, I have a 25 fps file (58 seconds long), that I'm forcing mplayer to play at 24 fps, that ends up 2-3 seconds too long. The proportions seem to be roughly (24/25) * original video length, which makes sense for the 25 fps file, but not the 23.97 fps files.
This also throws off my audio. when i export the audio from the MKVs using quicktime, it throws out the 2 channel aac I need, which I then remux with the video. Using movie properties in Quicktime Pro, its clear that the video length has changed, even if I'm just converting 23.976 to 23.976, and the audio is constant.
Isn't there some way to say 'hey mplayer, output this 25 fps file at 24 fps, but just drop a frame every second to keep it a constant time length'?
I know its easier to use ffmpeg, mencoder, etc., but I like the flexibility I have with this setup, where I can easily recompile either mplayer or x264 to take advantage of new features, and I have a lot of discretion in what options to pass to each.