M2v Video file unreadable error

I am getting this error while uploading m2v file in the PeerTube using UI and REST API. I have attached the screenshot of the file and the file.

https://filesamples.com/samples/video/m2v/sample_960x400_ocean_with_audio.m2v

Hello,

Unfortunately ffmpeg can not guess the file duration. It’s the reason why peertube refuses the upload.

I suggest to create an issue on ffmpeg bug tracker with the sample file.

Looks like there is no way to guess the file duration using ffmpeg for m2v file for now. The below ticket discusses it:
https://trac.ffmpeg.org/ticket/9726#comment:2