From 7863dc306f82dff6348270c0a0b3984fed63b30e Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 2 Feb 2026 00:10:06 +0300 Subject: mediainfo --- src/posts/you-dont-need-mediainfo.svx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/you-dont-need-mediainfo.svx b/src/posts/you-dont-need-mediainfo.svx index 3f37365..9876cde 100644 --- a/src/posts/you-dont-need-mediainfo.svx +++ b/src/posts/you-dont-need-mediainfo.svx @@ -106,7 +106,7 @@ This does play out nicely until... You need a mobile application. You tell the m That is pretty smart innit, just a simple `os.exec(ffprobe)` and some string parsing and voila, you have your metadata. Not so fast. That requires your prod server to have ffprobe binary, launch a separate process, string match the output, just to get some information that is already available in the file. Instead we can write our own parser, and only request specific bytes from the file server: -```py +```python def main(url: str): READ_RANGE = 131072 # 128 kib in bytes -- cgit v1.2.3