-
Notifications
You must be signed in to change notification settings - Fork 240
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
Enable web platform #146
Comments
Wow, that's impressive work. Do you mind posting the sample code for how you made it work with ffmpeg_wasm? I'd love to be able to replicate it, at least until the package is updated for official web support. |
Wow! That's indeed very impressive! I also think this package will need some change especially when people wants to use a different binary of ffmpeg #133. Your idea would be to remove all the ffmpeg part from this package ? And include it in a different package It sounds like a good idea, we could release a different package for each ffmpeg binary, then people could select it based on their needs : video_editor_export_min: any
video_editor_export_min_gpl: any
video_editor_export_full: any
video_editor_export_full_gpl: any
video_editor_export_https: any For the web it would need need another package |
You can check out the changes made in PR #147
In that case, let the developer pick their own |
First of all, congratulations on this package.
The video editor feature is very powerful, however, the convert / export functionality could be decoupled from the package. For instance, I could let the user choose the aspect ratio / duration, but I want to do the conversion on the server side since:
My proposal is to create a new package for the export, let's say
video_editor_export
(it can be unlisted on pub.dev), which could use a federating plugin system so Android / iOS could importffmpeg_kit_flutter
, and web could importffmpeg_wasm
(currently, theffmpeg_wasm
package is not working properly. For instance, thecorePath
is ignored, the progress handler does nothing, but I have my own patches locally). This way, we could define our interface for the export functionality, and developers can import thevideo_editor_export
package to do the export.I know that the web has some limitations:
video_thumbnail
support for web is on the way. See justsoft/video_thumbnail#135I have made a demonstration video showing that the thumbnail generator and video export can also work on the web. Note that
Path.combine
might not work with the HTML renderer, but we can manually union and calculate the difference for two rects viaRect.intersect
/Rect.expandToInclude
andCropGridPainter._drawBackground
sometimes paints over the video. For instance, when I switch back to trim:video_editor.mp4
The text was updated successfully, but these errors were encountered: