I did some research, but wasn't able to find exactly what I need help with, so I figured i'd come to the pros and ask for advice.
I'm not having trouble literally muxing audio. I'm having trouble syncing the audio files from two different sources, into a single file.
Two video files
Video file 1 - 50.000 FPS - Audio 44.1kHz, 2 channels
Video file 2 - 29.970 FPS - Audio 48.0kHz, 2 channels
I want to take the audio from video file 2, and mux it with the video of file 1.
I've already stripped both files, so now i'm left with video file 1, which now has no audio track, and an mp3 of the audio from video file 2.
I've tried muxing them, and running it through avidemux and time shifting the audio, but it never seems to sync up properly. It'll seem like it's synced at the beginning, but it slowly gets out of sync. I assume that this has to do with the video being at a higher fps than the original, but I could be wrong.
In my mind, because the fps is higher, that would mean that the frames are moving faster in the first video, than in the second, and the audio has been adjusted accordingly. Maybe i'd have to speed up/slow down the actual audio track in order to accomplish this, but again, this is all just a guess, as I'm not really sure.
Hope somebody could help me out with this, thanks!
Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or try DVDFab DRM and remove iTunes movie & music protection! :)
+ Reply to Thread
Results 1 to 17 of 17
There are just too many possibilities to make this an easy job, or even to provide accurate advice. In addition, there's a good chance the people that 'made' the videos didn't know what they were doing. As a possible way out, compare the audio/video lengths and make one match the other.
25 seconds means nothing unless we also know the total length of the videos. Have you done as I suggested? I'm thinking one's PAL and the other is NTSC, but there's not enough information yet to determine if that's the cause. Are these movies? This synching only works well if the two videos have the same number of frames. Do they?
File 1 = 50.000FPS
(does not indicate PAL or NTSC in either MediaInfo or VLC)
File 2 = 29.970 FPS
Sorry, I was confused by what you were asking. Were you saying that I should cut the audio file, to make it match the length of the video file? I can do that, no problem.
Well, it's partially an NTSC/PAL problem except, if the content was otherwise identical, there should be nearly a 4 minute difference, not 25 seconds. So, I don't guess the frame count is the same for both, which would make it pretty easy to solve. My advice is to forget about it, unless you can find another better source whose audio you can keep.
Were you saying that I should cut the audio file, to make it match the length of the video file?
I'm just having trouble with the terminology, I guess. When I say "cut", i'm saying that i'm going to trim 25 seconds off the end of the credits, because that wouldn't be a big deal, and then the audio would be the same duration as the video, and then once I time shift it correctly, it should be in sync, or at least that's what i'm thinking.
I'm still a little confused. In theory, if the videos were the exact same, scene for scene, except one was 50.000 FPS, and the other was 29.970 FPS, and the audio duration were the same, would the sync work perfectly, or would there still be an issue solely because one is NTSC and the other is PAL?
Video frame rate is independent of audio duration (there are many ways the frame rate can be changed, some change the running time, some don't). The length of the audio and video in an A/V file don't need to be the same. They don't need to start at the same time or end at the same time. Releases in different countries are often different cuts of the film -- with scenes cut or added. If one was recorded off broadcast TV it may have been sped up or cut to fit a time slot. Or someone who recorded a broadcast may have cut out the commercials leaving different amounts of dead time between sections. A bad capture of broadcast TV may have missing frames, changing the running time. There are just a zillion possible reasons for why your two audio files don't sync. You have to figure out what the problem is before you can fix it. The fix may not be as simple as adjusting the initial delay/advance and running time.
Film has historically been shot at 24 fps. In PAL countries it was usually sped up to 25 fps for broadcast. That led to a 4 percent shorter running time and a 4 percent rise in pitch of the audio. That is known as the "PAL speedup". But there are other ways the 24 fps film can be displayed at 50 fields per second, some of which don't change the running time, some that do. For example, you could simply duplicate every 24 frame, increasing the number of frames by 4 percent so playing them 4 percent faster gives exactly the same running time (and a little jerk every second). Another way is to duplicate at the field level so every 12 frames becomes 25 fields. This also retains the running time but creates a tiny jerk every half second. Yet another way is to create in-between frames that are a blend of adjacent film frames. This method also retains the running time and pitch.
In NTSC countries film was usually slowed to 23.976 fps (about 0.1 percent), then frames were displayed for the duration of 2 or 3 fields, alternating between the two. So half the frames were displayed for 2/59.94 seconds, the other half for 3/59.94 seconds. This retains the running time and pitch (aside from the 0.1 percent change caused by slowing from 24 fps to 23.976 fps). But the difference in display time of the film frames results in a visible "judder", especially in smooth panning shots.
From what I'm understanding, it seems like it could be possible to convert the frame rate of a file. Would I be able to convert the 50 FPS file, down to 29 FPS? At that point, I would be able to just mux the the audio, and it would be fine. But I assume it can't be that easy, and there are probably huge issues that come along with converting the FPS of a video like that. If this can be done, any idea how to go about it?
If your audio is about 25 seconds too long over a ~5580 second movie you need to change the frame rate by about 0.45 percent. So from 50 fps to about 49.776 fps.
Last edited by jagabo; 9th Sep 2018 at 19:29.
I see what you're saying. I mentioned earlier that the 25 second difference may be because of an extra scene, or maybe longer credits, so I'm going to skim through both of them, and see if there are any differences.
From what you're telling me, it solely replies on the duration, rather than the specific FPS? Meaning, If I chop the "extra" scene out of the movie, and try muxing it again, it would work? Hard to explain, but what I mean is, despite the two movies having different FPS, are they both technically "moving" at the same pace? and the audio isn't sped up/slowed down to account for the FPS being different? Just trying to break it down into layman's terms, because I don't know much about this topic.
And if these are movies, then the people that 'created' them are idiots. PAL movies aren't 50fps and NTSC movies aren't 29.97fps. As I suggested before, find another source.
...despite the two movies having different FPS, are they both technically "moving" at the same pace?