Is there a way to resample a video's frame-rate so it exactly matches another?

Started by Toner, January 08, 2018, 08:11:53 PM

Previous topic - Next topic

Toner

Hi guys,

Been running into this problem as I append two videos together a lot.

I have a two second intro clip I use for youtube which I append other videos to in avidemux.
The two second clip is exactly 30 frames per second. 

When I try to re-sample another video's frame rate in avidemux so it matches 30 frames per second so I can append it to the two second intro clip, I can rarely get it to be exactly 30 frames per second.

Often it will come out as 30.112 frames per second or some decimal figure like that. 

Consequently, when I append it to the the 2 second clip, the audio in the second video will sound high-pitched.

Even when I use avs proxy to make a 30 frame per second video out of an audio file & still picture, I can never get it to be exactly 30 frames per second so I can append it.

I have tried to resample the frame rate of the two second clip to 30.112 or whatever the second video is so it matches the second video but it always comes out as another figure for example 30.212. 

What am I doing wrong or is there a work around?

I also notice looking at the properties of of a video in windows that it will often give me a different frame rate then the one I see for the same video in avidemux.

Which frame rate is the better reading?

eumagga0x2a

I think that slightly differing framerate is rather an artifact of the MP4 demuxer in Avidemux (if frame increment is slightly irregular, Avidemux takes the lower value as the base for the FPS calculation, resulting in higher FPS). What happens if you save resampled video to a MKV?

Toner

Just resampled a 25 FPS mp4 into a 30 FPS MKV and it is exactly 30 FPS so that might be it. 
Cheers.

j-man

Hi everybody, this is my first post on the forum.
I know this is a rather old discussion, but I had exactly the same issue and I just found out that it happens only when the Output Container is set to "MP4v2 Muxer".
Just set it to "MP4 Muxer" and the frame rate will stay to the correct value.
Hope this will help. Cheers.