Skip to content
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

Code stucks at cup.suckUp methord ??? #79

Open
AmarchandK opened this issue Jul 1, 2023 · 13 comments
Open

Code stucks at cup.suckUp methord ??? #79

AmarchandK opened this issue Jul 1, 2023 · 13 comments

Comments

@AmarchandK
Copy link

AmarchandK commented Jul 1, 2023

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");
}
}

@randabt
Copy link

randabt commented Sep 4, 2023

same problem for me, I hope someone has an answer

@MusabBoltX
Copy link

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. 👍

@tiltmaster
Copy link

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?

@MusabBoltX
Copy link

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.

@NachoL24
Copy link

NachoL24 commented Feb 6, 2024

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?

@MusabBoltX
Copy link

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.

@NachoL24
Copy link

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?

@MusabBoltX
Copy link

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/

@eokdev
Copy link

eokdev commented Jun 15, 2024

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

@sobuur0
Copy link

sobuur0 commented Jun 18, 2024

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

@MusabBoltX
Copy link

@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
Copy link

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.

@eokdev
Copy link

eokdev commented Jun 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants