You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[!] No podspec found for fvp in .symlinks/plugins/fvp/ios #5
I guess this line breaks the build. I'm using 3.10.5, removing this line result in the same error. You can try to clone this repo, make a symbolic link to darwin
cd fvp
ln -sf darwin ios
ln -sf darwin macos
If this can fix the issue, i will publish a new version with this fix.
I am facing with a problem, I want to import many 4K quality video. I only initialize 2 VideoPlayerController at the same time. But the crash happen because the memory usage exceed 2048MB. I know we can reduce resolution/bitrate but we need to pre-processing. It takes long time.
Is your package can improve it? or could you suggest me some technical to handle it?
Thank you so much hope you reply and discuss with me about this problem!!
I am facing with a problem, I want to import many 4K quality video. I only initialize 2 VideoPlayerController at the same time. But the crash happen because the memory usage exceed 2048MB. I know we can reduce resolution/bitrate but we need to pre-processing. It takes long time.
Is your package can improve it? or could you suggest me some technical to handle it?
Thank you so much hope you reply and discuss with me about this problem!!
Do you have any social networks where we can chat together? I really like
your knowledge when I read your github repositories
On Fri, Jun 30, 2023 at 5:27 PM Huỳnh Quốc ***@***.***>
wrote:
Unfortunately, I still facing with crashed issues on iOS, it looks I can
not allow the user input over 8~10 videos with 4k Quality
On Mon, Jul 3, 2023 at 10:40 AM Huỳnh Quốc ***@***.***>
wrote:
No, the logic only 1 at the same time. But when I add the video I need to
create the VideoPlayerController for 8~10 (without playing) It look it
takes many memory for high quality video
I tested macos example, the memory increases lot in xcode, but without xcode, the memory is low, about 150MB if texture is 4k. What about using official avfoundation plugin?
Thank you for your tip (it's better to seek when stop dragging the slider)
actually, I see you mention the `decoding`, what it means, and what it
does. Sorry maybe My knowledge about video processing is not good
I think we can close this issue now.
Just a last thing I want learn from you that
You said VideoPlayerController.initialize is decoding the first frame =>
how you know that could you share me the knowledge or document, and how you
know when seekTo called, it is the fast decoding
I think we can close this issue now. Just a last thing I want learn from you that You said VideoPlayerController.initialize is decoding the first frame
if initialize() finished, you can see the image, so the first frame must be decoded
how you know that could you share me the knowledge or document, and how you know when seekTo called, it is the fast decoding
seekTo will clear current frames, and start to decode from another position. if the target position is not a key frame, and you want to seekTo an accurate position, have to decode from the nearest key frame before target position and until the target position is decoded. To speed up seekTo, the decoding must be as fast as possible.
I find many plugins in pub.dev. there is no plugin do that
I also searched pub.dev. There are many video player packages, but most of them are wrappers on official video player with custom ui, some are new player classes and you have to rewrite your code to use their apis. none of them provide a plugin for official player to support all other platforms.
Activity
wang-bin commentedon Jun 29, 2023
https://github.com/wang-bin/fvp/blob/v0.0.4/pubspec.yaml#L50
I guess this line breaks the build. I'm using 3.10.5, removing this line result in the same error. You can try to clone this repo, make a symbolic link to darwin
If this can fix the issue, i will publish a new version with this fix.
https://docs.flutter.dev/packages-and-plugins/developing-packages#shared-ios-and-macos-implementations
sharedDarwinSource should work for flutter >= 3.7.0
quochuynh67 commentedon Jun 30, 2023
@wang-bin Thank you for your reply.
could you help me to resolve it?
quochuynh67 commentedon Jun 30, 2023
I am facing with a problem, I want to import many 4K quality video. I only initialize 2 VideoPlayerController at the same time. But the crash happen because the memory usage exceed 2048MB. I know we can reduce resolution/bitrate but we need to pre-processing. It takes long time.
Is your package can improve it? or could you suggest me some technical to handle it?
Thank you so much hope you reply and discuss with me about this problem!!
wang-bin commentedon Jun 30, 2023
follow the steps i mentioned. or upgrade flutter to 3.10.5. github actions can build without error
wang-bin commentedon Jun 30, 2023
macos is ok. don't know about ios
wang-bin commentedon Jun 30, 2023
i published a new version. try again
quochuynh67 commentedon Jun 30, 2023
quochuynh67 commentedon Jun 30, 2023
wang-bin commentedon Jun 30, 2023
email me, then i will send you discord account
quochuynh67 commentedon Jun 30, 2023
wang-bin commentedon Jun 30, 2023
your email is hidden
quochuynh67 commentedon Jul 3, 2023
quochuynh67 commentedon Jul 3, 2023
wang-bin commentedon Jul 3, 2023
play 8~10 4k videos at the same time? Maybe it's a system limitation. Can you provide stack trace?
quochuynh67 commentedon Jul 3, 2023
9 remaining items
wang-bin commentedon Jul 3, 2023
the master branch supports a fixed texture size, result in lower memory cost but also lower display quality
But you have to know system and hardware has a limit of the max number of 4k videos.
quochuynh67 commentedon Jul 4, 2023
quochuynh67 commentedon Jul 4, 2023
I think we reduce texture is not the good way, because Texture rendering use GPU not CPU so it does not take many memory. Do you think about it?
quochuynh67 commentedon Jul 4, 2023
It is so terrible :), I try to use 100x100 but the memory still pump very high. You can watch the video demo in the drive link below
https://drive.google.com/file/d/1lNCbYKg03qPpEzr0mU1RuSxPcaOAPaiR/view?usp=sharing
wang-bin commentedon Jul 4, 2023
memory is shared on mobile
wang-bin commentedon Jul 4, 2023
I tested macos example, the memory increases lot in xcode, but without xcode, the memory is low, about 150MB if texture is 4k. What about using official avfoundation plugin?
wang-bin commentedon Jul 4, 2023
You can enable log for the plugin and show me the full log
wang-bin commentedon Jul 4, 2023
when seeking the video, decoding speed is faster, so memory increases a lot. it's better to seek when stop dragging the slider
quochuynh67 commentedon Jul 4, 2023
wang-bin commentedon Jul 4, 2023
video is compressed, we need a decoder to extract uncompressed yuv or rgb images
quochuynh67 commentedon Jul 4, 2023
wang-bin commentedon Jul 4, 2023
The comment in official example: https://github.com/flutter/packages/blob/video_player-v2.7.0/packages/video_player/video_player/example/lib/basic.dart#L33
if initialize() finished, you can see the image, so the first frame must be decoded
seekTo will clear current frames, and start to decode from another position. if the target position is not a key frame, and you want to seekTo an accurate position, have to decode from the nearest key frame before target position and until the target position is decoded. To speed up seekTo, the decoding must be as fast as possible.
wang-bin commentedon Jul 4, 2023
can you compare memory load with the official implementation(without fvp)?
wang-bin commentedon Jul 4, 2023
I also searched pub.dev. There are many video player packages, but most of them are wrappers on official video player with custom ui, some are new player classes and you have to rewrite your code to use their apis. none of them provide a plugin for official player to support all other platforms.