tapioca icon indicating copy to clipboard operation
tapioca copied to clipboard

Code stucks at cup.suckUp methord ???

Open AmarchandK opened this issue 1 year ago • 13 comments

try { final String path = await _getTempPath(); log('applyFiltersToVideo Filter Index ${state.filterIndex}'); Cup cup = Cup( Content(state.videoFile!.path), tapiocaBalls[state.filterIndex]); log('cup created'); await cup.suckUp(path).then((value) => log('suckUp value: $value'));/////// stucks here ///// log('return value'); return path; } catch (e) { log("error on filter applying ==================$e"); } }

AmarchandK avatar Jul 01 '23 12:07 AmarchandK

same problem for me, I hope someone has an answer

randabt avatar Sep 04 '23 17:09 randabt

I was hanged up on this issue too for past 3 days. The basic issue is from video codecs and the only temporary fix I got is to decrease the bitrate of recorded video and it started to work. 👍

MusabBoltX avatar Jan 28 '24 10:01 MusabBoltX

I was hanged up on this issue too for past 3 days. The basic issue is from video codecs and the only temporary fix I got is to decrease the bitrate of recorded video and it started to work. 👍

Bro I have been facing this for a while now, can you please tell me what exactly have you used/done to decrease the bitrate of the recorded video?

tiltmaster avatar Jan 28 '24 12:01 tiltmaster

I was hanged up on this issue too for past 3 days. The basic issue is from video codecs and the only temporary fix I got is to decrease the bitrate of recorded video and it started to work. 👍

Bro I have been facing this for a while now, can you please tell me what exactly have you used/done to decrease the bitrate of the recorded video?

So, I used camera plugin to record videos. It ResolutionPreset was set to max I just downgraded it to keep things working. That's why I mentioned it's a temporary fix but, it works.

MusabBoltX avatar Jan 29 '24 09:01 MusabBoltX

I was hanged up on this issue too for past 3 days. The basic issue is from video codecs and the only temporary fix I got is to decrease the bitrate of recorded video and it started to work. 👍

Bro I have been facing this for a while now, can you please tell me what exactly have you used/done to decrease the bitrate of the recorded video?

So, I used camera plugin to record videos. It ResolutionPreset was set to max I just downgraded it to keep things working. That's why I mentioned it's a temporary fix but, it works.

Hey i have the same problem, i'm trying to build an app with camera plugin to record videos and then i want to add an overlay text to the video. Can we talk of how did you do that?

NachoL24 avatar Feb 06 '24 00:02 NachoL24

I was hanged up on this issue too for past 3 days. The basic issue is from video codecs and the only temporary fix I got is to decrease the bitrate of recorded video and it started to work. 👍

Bro I have been facing this for a while now, can you please tell me what exactly have you used/done to decrease the bitrate of the recorded video?

So, I used camera plugin to record videos. It ResolutionPreset was set to max I just downgraded it to keep things working. That's why I mentioned it's a temporary fix but, it works.

Hey i have the same problem, i'm trying to build an app with camera plugin to record videos and then i want to add an overlay text to the video. Can we talk of how did you do that?

No worries, share me the issue you are facing.

MusabBoltX avatar Feb 07 '24 15:02 MusabBoltX

I was hanged up on this issue too for past 3 days. The basic issue is from video codecs and the only temporary fix I got is to decrease the bitrate of recorded video and it started to work. 👍

Bro I have been facing this for a while now, can you please tell me what exactly have you used/done to decrease the bitrate of the recorded video?

So, I used camera plugin to record videos. It ResolutionPreset was set to max I just downgraded it to keep things working. That's why I mentioned it's a temporary fix but, it works.

Hey i have the same problem, i'm trying to build an app with camera plugin to record videos and then i want to add an overlay text to the video. Can we talk of how did you do that?

No worries, share me the issue you are facing.

Can you pass me an email so we can talk?

NachoL24 avatar Feb 27 '24 18:02 NachoL24

I was hanged up on this issue too for past 3 days. The basic issue is from video codecs and the only temporary fix I got is to decrease the bitrate of recorded video and it started to work. 👍

Bro I have been facing this for a while now, can you please tell me what exactly have you used/done to decrease the bitrate of the recorded video?

So, I used camera plugin to record videos. It ResolutionPreset was set to max I just downgraded it to keep things working. That's why I mentioned it's a temporary fix but, it works.

Hey i have the same problem, i'm trying to build an app with camera plugin to record videos and then i want to add an overlay text to the video. Can we talk of how did you do that?

No worries, share me the issue you are facing.

Can you pass me an email so we can talk?

You can connect me via my LinkedIn: https://www.linkedin.com/in/syed-musab/

MusabBoltX avatar Feb 29 '24 06:02 MusabBoltX

@MusabBoltX it didnt work for me even after downgrading. Any fix? Mine is also stucked at cup.suckUp method

eokdev avatar Jun 15 '24 15:06 eokdev

Adding it here also that my code also gets stuck at the cup.suckUp method. my video assets are bundled into my flutter app in the pubspec.yaml file.

my current implementation: _videoControllers = await Future.wait(_videoPaths.map((path) async { try { final tapiocaBalls = [ TapiocaBall.textOverlay( "Your Text", 100, 10, 100, Colors.white), ]; final cup = Cup(Content(path), tapiocaBalls); videoPlayerController = VideoPlayerController.asset(path); log('assigned $videoPlayerController'); try { log('Cup suck up started'); /////This here is printed to my logs await cup.suckUp(path); log('Cup suck up successful'); /////i am not gettin this in my logs } catch (e) { log('Error: $e'); } // Initialize the video player controller // videoPlayerController = VideoPlayerController.asset(path); videoPlayerController!.initialize().then((_) { setState(() {}); videoPlayerController!.setVolume(0); videoPlayerController!.play(); videoPlayerController!.setLooping(true); }); } on PlatformException { print("error!!!!"); } return videoPlayerController!; }).toList()); cc: @anharu2394 @MusabBoltX

sobuur0 avatar Jun 18 '24 17:06 sobuur0

@MusabBoltX it didnt work for me even after downgrading. Any fix? Mine is also stucked at cup.suckUp method

Can you explain how did you record the video and if using camera plugin please attach video controller properties?

MusabBoltX avatar Jun 19 '24 12:06 MusabBoltX

Adding it here also that my code also gets stuck at the cup.suckUp method. my video assets are bundled into my flutter app in the pubspec.yaml file.

my current implementation: _videoControllers = await Future.wait(_videoPaths.map((path) async { try { final tapiocaBalls = [ TapiocaBall.textOverlay( "Your Text", 100, 10, 100, Colors.white), ]; final cup = Cup(Content(path), tapiocaBalls); videoPlayerController = VideoPlayerController.asset(path); log('assigned $videoPlayerController'); try { log('Cup suck up started'); /////This here is printed to my logs await cup.suckUp(path); log('Cup suck up successful'); /////i am not gettin this in my logs } catch (e) { log('Error: $e'); } // Initialize the video player controller // videoPlayerController = VideoPlayerController.asset(path); videoPlayerController!.initialize().then((_) { setState(() {}); videoPlayerController!.setVolume(0); videoPlayerController!.play(); videoPlayerController!.setLooping(true); }); } on PlatformException { print("error!!!!"); } return videoPlayerController!; }).toList()); cc: @anharu2394 @MusabBoltX

Looks like your video format is not supported. Do try lower quality mp4 videos, there will be a certain threshold upto where the certain video quality will work.

MusabBoltX avatar Jun 19 '24 12:06 MusabBoltX

I got mine to work by doing this in my pubspec.yaml.

tapioca: git: url: https://github.com/anharu2394/tapioca.git ref: tags/1.0.6

Hope this helps

eokdev avatar Jun 19 '24 12:06 eokdev