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

Decoding h.264 in pure JS? #10

Open
bpartridge opened this issue Oct 13, 2023 · 2 comments
Open

Decoding h.264 in pure JS? #10

bpartridge opened this issue Oct 13, 2023 · 2 comments

Comments

@bpartridge
Copy link

First off, this is incredible work. Patching CEF is not for the faint of heart - kudos!

I wonder if you could try using something like https://github.com/mbebenita/Broadway or https://github.com/gliese1337/h264decoder to decode the h.264 streams in pure JS, and display frame by frame? Though I'm not sure whether certain features of their encoded videos are supported. Could be a way to work around the need for a CEF build!

@itsmeow
Copy link
Owner

itsmeow commented Oct 23, 2023

Most likely possible, although I would prefer something like transcoding to VP9/WEBM, since then the browser could display it natively.

In my initial design for this project, I looked into it briefly, but I found that the CEF thing was easier in the moment.

@itsmeow
Copy link
Owner

itsmeow commented Oct 23, 2023

I really want to keep this project light and maintainable, so I'm not sure about embedding any dependencies. Maybe if there was some type of live transcoding service that could accept a URL and then host a small VP9 it would work as an alternative, but it's also not sustainable bandwidth wise.

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