[Libav-user] Wrong FPS after transcoding mkv+h265 into mp4+h264

floe_trick0u at icloud.com floe_trick0u at icloud.com
Mon Oct 9 15:27:31 EEST 2023

Hi, I’m trying to create a transcoder with libav. I’ve managed to create the mp4 file but it has wrong FPS.

My code is in a pastebin https://pastebin.com/BwF1t8Ky

I’ve experimented a lot with setting frame rate and time base to different structures like format contexts, encoder, encoder context, but nothing seems to help.

I would appreciate any help 🙏.

More information about the Libav-user mailing list