Can we use mp4box to read mp4 metadata and get resolution #600
Labels
No labels
MediaFlow Proxy
autorelease: pending
autorelease: tagged
bug
documentation
duplicate
enhancement
help wanted
invalid
question
wontfix
🇩🇪 German
🇫🇷 French
🇮🇳 Indian
🇸🇦 Arabic
🌐 Multi
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/webstreamr-github#600
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi
Can we use smth like this to read mp4 metadata and get the resolution(streamtape for example or others)
https://github.com/gpac/gpac/wiki/mp4box
If not can't be done why not guess by filesize?
Something like
`function estimateHeightFromSize(bytes: number): number | undefined {
const gb = bytes / 1024 ** 3;
// Heuristic thresholds for ~90–120 min movies
if (gb >= 1.7) return 1080;
if (gb >= 1.1) return 720;
if (gb >= 0.6) return 480;
return undefined;
}
`
Duplicate sorry