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.



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: