Invalid pixel aspect ration 65536/65536, limit is 255/255

When I try to convert a mp4 video file to mkv file, I got following error message:

Invalid pixel aspect ration 65536/65536, limit is 255/255

 

We need to specify the aspect radio with -aspect 1:1

Then the error message is changed to:

timebase 1/90000 not supported by MPEG 4 standard, the maximum admitted value for the timebase denominator is 65535

Then we also need specify frame rate with -r 22