Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generated video is not playable on browsers #90

Open
maxsap opened this issue Dec 17, 2020 · 3 comments
Open

generated video is not playable on browsers #90

maxsap opened this issue Dec 17, 2020 · 3 comments

Comments

@maxsap
Copy link

maxsap commented Dec 17, 2020

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

@maxsap
Copy link
Author

maxsap commented Dec 17, 2020

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)

@vaibhavpandeyvpz
Copy link

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.

@maxsap
Copy link
Author

maxsap commented Dec 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants