- users submit a url for a video or a playlist and then the processing begins
- obviously yt-dlp is against terms of service from what i know
- how do I handle this?
- option 1: i could ask user to download the mp4 themselves externally for a video or a playlist and then ask them to upload (bad UX but good on the legal side)
- option 2: ask user to paste link to video or playlist, send it to express and run yt-dlp on it (good UX, bad legal side) + it ll need a lot of workarounds and maintenance to ensure your server IP isnt getting blocked all the time
- option 3: paste url to video and link on webapp, download videos client side to mp4 and then upload to signed s3 bucket which is taken by the server for processing (not sure about ux or legal here)
- any other options?
- what do you recommend?
- i need video frames to ocr
- maybe i can process video to frames and send frames over to server directly or aws s3 bucket directly with video id as folder
- not sure if there are better ways
- this worker would have to use yt-dlp unless youtube api provides a way to download videos not belonging to your channel
- the worker's IP address ll definitely get flagged by youtube after a few short runs
- not to mention i have no idea what is the legality of doing this as a limited liability company
- the workflow for ocr is simple, once i have the frames from input video, i can add a task to the queue with s3 image links per video id and any model such as paddle ocr, chandra etc can quickly perform the image analysis and send my express server back the results
- the major bottleneck for me seems to be the process to get an mp4 out of youtube currently