diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-02-02 00:10:06 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-02-02 00:10:06 +0300 |
| commit | 7863dc306f82dff6348270c0a0b3984fed63b30e (patch) | |
| tree | 7f789fb7909323c5d561908a89d32b05da0d7079 /src/posts/you-dont-need-mediainfo.svx | |
| parent | 3a6fdb3eb9de5efd8ffbb913a91fe220c570d820 (diff) | |
mediainfo
Diffstat (limited to 'src/posts/you-dont-need-mediainfo.svx')
| -rw-r--r-- | src/posts/you-dont-need-mediainfo.svx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
