I'm trying to change the frame rate of a MP4 file so it runs at the correct speed. I asked how to do this with FFmpeg without re-encoding here and the answer tgies gave worked. This was on a 25fps video. Now I have a 30fps video and it is not working as I expected. I changed the atempo
value by dividing 23.98/30. The resulting video plays much slower than I want. Also, the audio is not in sync. Here's what I did...
ffmpeg -i source.mp4 -r 23.98 -i output.h264 -filter_complex "[0:a]atempo=0.7993[out]" -map 1:v -map "[out]" -c:a aac -c:v copy output.mp4
Is there something I need to do differently because the source frame rate is now 30?
-show_packets
:ffprobe -i source.mp4 -show_packets > source.txt
andffprobe -i output.h264 -show_packets > output.txt
. Make sure thatduration_time=0.033333
for all packets insource.txt
andduration_time=0.041701
for all packets inoutput.txt
.