pythonofftopic | Unsorted

Telegram-канал pythonofftopic - Offtopic

12466

Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)

Subscribe to a channel

Offtopic

Hello, apologies for the interruption. I am developing a Python web application that allows users to upload audio files (MP3, M4A, WAV) and converts them using FFmpeg. Since my local machine already has FFmpeg installed, I have been researching how to implement this in a Dockerized environment on my VPS.

I understand the best practice is to run one service per container. However, I am unsure how to apply this when my Flask application requires access to FFmpeg. I have found two potential approaches:

1. Install FFmpeg directly in the same container as the Flask application (e.g., using `

RUN apt-get update && apt-get install -y ffmpeg`

in the Dockerfile). This seems straightforward, but it violates the "one service per container" principle and makes it difficult to guarantee a specific FFmpeg version.

2. Use a separate, dedicated FFmpeg container (such as the `jrottenberg/ffmpeg` image). However, this image is not officially maintained by the FFmpeg project, may lack the latest version (9.0), and would require complex networking or shared volumes for my Flask app to locate the FFmpeg binary.

Given these constraints, what is the recommended approach for integrating FFmpeg with a Flask application in Docker while adhering to best practices?

Читать полностью…

Offtopic

Don't have the token budget for an ai OS lol

Читать полностью…

Offtopic

Who has tried this ....omarchy

Читать полностью…

Offtopic

And BTW
You should know that Python is high-level language.

It does a lot of work for you (like managing memory, dynamic typing, and many more things), which makes it slower to execute but fast to write and prototype in.

That is the tradeoff, you want pure speed and performance - use a lower level language like C, C++, Rust - but it is YOU who now has to manage all of those that Python does for you automaticly.

There is always a tradeoff
You as a developer need to know about those and select the best tool for a job.

Читать полностью…

Offtopic

That's 2000 AT THE SAME TIME
it is not few.

And given you do not have anything built by now, i would focus on that.

As you do not have ANY users, that would be my first goal

Читать полностью…

Offtopic

because it's different runtime from node?

Читать полностью…

Offtopic

There is a diffrence

Читать полностью…

Offtopic

See but they say if i include my Razorpay pay button in my static Github Page, i need to have a running server which get confirmation that i received a payment, is not Cloudflare workers is for this???

Читать полностью…

Offtopic

we were talking about workers

Читать полностью…

Offtopic

Thats CF Workers - not CF Pages

Читать полностью…

Offtopic

Usually is not free, that's the business

Читать полностью…

Offtopic

rent on free 😅🙂
i am got excited over this,
so is this like running python flask app or something there in their infrastructure?
ok let me do some research

Читать полностью…

Offtopic

Cloudflare Workers is one of the many ways to run (deploy) things. It is good to know as well other options

Читать полностью…

Offtopic

why are u learning about cloudflare workers?

Читать полностью…

Offtopic

You can use Linux without the arguing, fyi

Читать полностью…

Offtopic

Like This anyone know anything sticker,
saying

Downloading

?
or which ai like thigns can make one like this?

Читать полностью…

Offtopic

Pure arch Linux with custom hyprland dots

Читать полностью…

Offtopic

In The Way of learning python i found, for audio, video processing and converting i need to use FFMPEG, but even i will use python there is no direct support for audio convert and so on i need to use FFMPEG by install this externally. So what do you say, in consistency i will install ffmpeg how best way ?
i am confused because in my this linux os i have ffmpeg installed in vps there i need to install this externally as a debian package so best docker ?

Читать полностью…

Offtopic

It depends on the task you're doing. Use a language best suited for it

Читать полностью…

Offtopic

I’ve been learning Python for many years, but I recently discovered that it handles very few requests per second. 😭😭😭 What do you think? Should we switch to a new language to become a better web developer?

Читать полностью…

Offtopic

why they Keep Bun in this language list?

Читать полностью…

Offtopic

Workers - yes
Pages - no

Читать полностью…

Offtopic

But OP is talking about CF Pages

Читать полностью…

Offtopic

i never had enough users to exceed free tier quota 😞

Читать полностью…

Offtopic

Cloudflare Pages do not support dynamic runtime like Python.
It is for serving static content - like GH Pages

Cloudflare Workers support python workloads, but again, not used for proper web app but as a part of infrastructure (serverless functions, on-demand APIs, etc...)

Читать полностью…

Offtopic

they did recently added python support for workers but i haven't tried it, most of the people use javascript.

Читать полностью…

Offtopic

just think of it as always on computer that u can rent (usually free)

Читать полностью…

Offtopic

because i don't know what is this!!!
when i will do research about Razorpay integration, then they say i must need to open 24×7 service and cloudflare worker will need to setup???

Читать полностью…

Offtopic

I am still on my web development journey and have been learning about Cloudflare. How will learning about Cloudflare Workers help me?

Читать полностью…

Offtopic

u means desktop or laptop?
configuring?

Читать полностью…
Subscribe to a channel