MasayukiSuda/Mp4Composer-android

generated video is not playable on browsers

maxsap opened this issue · 3 comments

Hello, I am trying to generate a video in mp4 encoding that is working on web browsers on web browsers but it seems that the generated video is not compatible.
I have tried specifying the mime type but that did not really help

I did a little bit of debugging and saw that the method
"createVideoOutputFormatWithAvailableEncoders" is having a hierarchy of codecs that it chooses from.
In my case it used HVEC for whatever reason even though I have enabled
composer .videoFormatMimeType(VideoFormatMimeType.MPEG4)

I set it to AVC and it now plays and encodes fine on most devices. The default HEVC selection even failed to encode on 50% of the devices.

That indeed solved the issue, maybe this was a debugger issue but it seemed that this flag just worked as the "auto" mode