-
Notifications
You must be signed in to change notification settings - Fork 458
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
[Request] Support for video types other than Theora? #2089
Comments
Personal opinion: Ogg Theora sucks. The reference decoder is too slow even FFmpeg's own implementation beats them. I have separate LOVE branch containing integration with my WIP cross-platform audio and video decoder called NAV which can be found here: https://github.com/MikuAuahDark/love2d/tree/nav. So far both audio and video integration is promising. If it gets accepted, then we may use that to provide wider audio/video support in LOVE. So if you'd like to contribute using libVLC, I recommend doing so in NAV. |
Well i wouldnt be the one contributing this i dont know really anything about c++ LOL i was just making a suggestion as an alternative to theora since its so slow and bloated |
The mpv from libmpv have this lib to embed to others projects, and is writted in C. Like i dont know about implement this, here is my request for anyone who can |
I don't think we can use mpv (or specifically libmpv) due to licensing issue. We generally in favor for libraries with more permissive license compared to (L)GPL because we can't ship those libraries (which means a feature that depend on those copyleft license) in iOS. |
might I suggest pl_mpeg? |
Unfortunately MPEG-1 has even worse quality than Theora, so no. |
mpeg-1 quality's bad but it should perform a lot better, right? or mpeg-2? |
Theora is competing with MPEG-4 Part 2, so Theora also has better quality than MPEG-2. That being said, using Theora video for 720p60 playback in LOVE is fully possible (at least in my phone). At 1080p60 you'll start to see stuttering. Unfortunately we also cannot use any form of H264/H265 libraries because the algorithm behind that video codec is patented. A workaround is to call into system/OS APIs to perform H264 decoding. This is what my NAV library tries to solve. Unfortunately support for Apple platform is non-existent. |
I was wondering if it would be possible to support videos other than Ogg Theora in LOVE2D?
The one way that comes to mind on how to do this is using libVLC, specifically libvlcpp, the C++ version of it. Since libVLC is what's used for VLC Media player, theoretically it would be able to support ALL video and audio types.
As I don't really know a lot of cpp im not sure how hard this would be to implement but if it would be relatively easy then it would be realy cool if i could just directly use mp4 files rather than converting to Theora
The text was updated successfully, but these errors were encountered: