alwaysbegrowing / pre-processing

0 stars 0 forks source link

Create a lambda that will start the media pipeline. #105

Open chand1012 opened 2 years ago

chand1012 commented 2 years ago

This is an optional feature that will auto upload CCCs that users tag on a streamer automatically to TikTok. This lambda will start the media pipeline with the estimated location of the streamer's face (calculated with #104) and the center square of the screen. If the user is authenticated with TikTok, it will also flag the stream to be uploaded and generate a description for that will be used for the upload (see #108). Eventually it will ask the streamers for approval before upload, as well as use the Pillar AI to find the clips, but for now it will auto upload to a Pillar-controlled TikTok account CCCs only.

gatesyp commented 2 years ago

OOC, but why do we need to add a new lambda to trigger the media pipeline?

the current media pipeline Step Function is being triggered via API gateway, right?

chand1012 commented 2 years ago

@RusseII and I were going to make a Pillar TikTok account that would have a few streamers' content to test the viability of fully automated content creation. Later we would auto generate the content and just have the users approve posting the content to their various accounts.

chand1012 commented 2 years ago

Yes, it does trigger by API Gateway. We are forwarding the tokens via Vercel to our API Gateway endpoint. This wouldn't be able to do that since we wouldn't have a token to forward, so we could just initiate the step functions flow via the AWS SDK directly with the needed data.