| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
iTube-transcoder is a small service that downloads a video from S3, transcodes it (HLS/DASH using FFmpeg), and uploads processed outputs back to an S3 bucket. Logging is centralized in app/core/logging_config.py. The entrypoint is app/main.py.
Copy and edit the provided example file .env.example to create a local .env that contains the required environment variables. The required variables are:
Note: S3_BUCKET and S3_KEY are often provided by the consumer service that triggers this transcoder (for example, via environment injection or a message payload). In many deployments you won't need to hard-code these into .env; the calling service or orchestrator injects them at runtime.
Do NOT commit .env to source control — treat it like your embarrassing search history: private, personal, and best kept off the internet. (Also: add .env to .gitignore.)
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtcp .env.example .env
# Edit .env with your credentials and S3 keysexport $(grep -v '^#' .env | xargs)
python3 -m app.mainNotes
The repository includes a Dockerfile that installs ffmpeg and your Python dependencies. Example build and run commands:
# Build the local image
docker build -t itube-transcoder .
# Run with environment variables loaded from .env
docker run --rm --env-file .env itube-transcoderThis repository's images should be pushed to your project's ECR repository. The exact commands to authenticate and push an image depend on the ECR repository URI and region. The AWS ECR Console provides an exact, step-by-step set of commands for your repository labeled "View push commands" — use those commands to push the image.
A general example (replace placeholders with your values):
# Tag the local image with your ECR repo URI
docker tag itube-transcoder:latest <aws_account_id>.dkr.ecr.<region>.amazonaws.com/<repo_name>:latest
# Authenticate Docker to ECR (example using AWS CLI)
aws ecr get-login-password --region <region> | docker login --username AWS --password-stdin <aws_account_id>.dkr.ecr.<region>.amazonaws.com
# Push the image
docker push <aws_account_id>.dkr.ecr.<region>.amazonaws.com/<repo_name>:latestTo ensure you run the exact sequence required for this specific project/repository, open the ECR Console, navigate to the repository for this project, and click "View push commands" (this shows the appropriate aws ecr login command plus the exact tag to use). Use those commands rather than the generic example above.
This project is available under the license in the LICENSE file.
If you’re stuck on pushing to ECR (we’ve all been there, mate), check out this step-by-step AWS troubleshooting guide.
Didn’t solve it? Try searching the official AWS docs for “ECR push commands” or “pushing a Docker image to Amazon ECR.” Stack Overflow’s also full of fine folks who’ve probably broken the same thing you just did.
| Back | FazBrowse Home | New Git URL |