Ambrose821 / Social_Media_Manager

An all in one API that includes functionality of multiple social media APIs in a sinlge convenient place.
0 stars 1 forks source link

SM-01 #2

Closed Ambrose821 closed 1 week ago

Ambrose821 commented 3 months ago

See comments for review MOVE TO SOURCING API AND USE THE SAME AUDIO MERGING LOGIC USED WITH RANDOM MUSIC CHOICE MERGE INSIDE PHOTO TO VIDEO FUNCTION

Successfully Merge video file with corresponding Audio before posting.

Ambrose821 commented 2 months ago

Working but slow. Consider doing this from the Media-API side and upload video to AWS S3 url

Ambrose821 commented 3 weeks ago

NOT CURRENTLY STORING IN S3 DUE TO DATABASE STORAGE HOWEVER IT IS SIMPLE WHEN USING THE AWS METHODS INCLUDING IN THE REPO This functionality has been moved to the Media API but is still relatively slow. At the moment limiting threads to less than 5 will allow the function to run without sacrificing the performance of the computer.

Need to decide an appropriate time to perform this merge and generate posts. This consideration in particular is more specifically for videos sourced from reddit, as it will need to undergo a 3rd ffmpeg transformation to add commentary,and a perform other video editing. Will it happen at the point of sourcing? This would increase database overhead.

Will it happen at the time of post creation when the get content endpoint is accessed? this would allow immediate deletion from s3 following the post. Likely it would be a smaller number of media to process through ffmpeg as an account should only post small amounts at a given instance in time. However this may be difficult to scale if multiple accounts need to post content at the same time and may significantly slow down the API.