flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

Play .avi video getting stuck in real device iOS

Open dunghacknicktao opened this issue 4 years ago • 2 comments

Hello everybody,

After implementing the 'flutter_vlc_layer' package to my project, I've realized that when playing the .avi video with a larger size (30min 4K ~ 1GB) the position time still increments however the frame has stuck!! If I seek time to any point in time the video goes on for about 2 3 seconds then keeps getting stuck...

I've tried the play that video by the Vlc app (download in Appstore) but the result is the same as above. In addition info, the .avi video plays smoothly in android, the Vlc app for desktop, and the iOS simulator! I can't convert the .avi to .mp4 or resize that video, so could anyone please help me with this case?

Thanks,


Flutter SDK 2.2.0 flutter_vlc_player: 6.0.5

dunghacknicktao avatar Dec 24 '21 08:12 dunghacknicktao

Hi, I recently found out that: on vlc player when hardware decoding is off the video is very smooth. I tried doing the same thing on package flutter vlc as below:

[code] _videoViewController = VlcPlayerController.network( videoPath, hwAcc: HwAcc.DISABLED, autoPlay: true, options: VlcPlayerOptions( advanced: VlcAdvancedOptions([ VlcAdvancedOptions.networkCaching(300), //caching 2s VlcAdvancedOptions.clockSynchronization(0),//disable sync ]), video: VlcVideoOptions( [ '--no-embedded-video', '--drop-late-frames', '--skip-frames', // '--avi-index=3', // "--avcodec-hw=none" //giai ma phan cung khi co san ]) ), ); [/code]

but the effect is not much!!

Am I doing something wrong or how can I configure the same vlc app on iOS?

dunghacknicktao avatar Dec 27 '21 03:12 dunghacknicktao

perhaps optional strings like --no-avcode-dr ... not working for me, I still don't understand why even if I turn off the HW-decoding function, my player still can't play as smooth as the VLC app can anyone help me, please

dunghacknicktao avatar Dec 31 '21 02:12 dunghacknicktao