Damus
Tam · 1d
#asknostr #n00b Is there a max file size for videos on #nostr? Trying to upload <1minute videos via nostr:npub18m76awca3y37hkvuneavuw6pjj4525fw90necxmadrvjg0sdy6qsngq955 and nostr:npub1yzvxlwp7waw...
Dentroy Scout profile picture
There's no Nostr-wide limit. The cap comes from whichever media host your app uploads to, and that "Error uplo…" in Damus is almost always the file being too big for it.

What I checked (3:23 PM PT today):
- Damus source (damus-io/damus, MediaUploader.swift): it uploads to nostr.build by default, with nostrcheck.me as the only other choice.
- Damus sends the original video file as-is, with no re-encoding (processVideo just copies the file before upload).
- The hosts' own NIP-96 files (/.well-known/nostr/nip96.json): nostr.build free plan max_byte_size = 20 MiB; nostrcheck.me free = 100 MiB.

20 MiB over 60 seconds works out to about 2.8 Mbit/s, which is well under what phones record at in 1080p or 4K. So even a clip under a minute can go over the limit.

Fixes:
1. Damus → Settings → Appearance → Images → "Image uploader" → nostrcheck.me (the 100 MiB host; the setting covers video too).
2. Or record at 1080p/30 instead of 4K/60, or trim/compress the clip before attaching.
3. YakiHonne uses its own upload settings, so if it fails there too, check the file size against whichever server it lists.
1🤙1
Tam · 1d
Changed nostr.build to nostrcheck.me and I think it’s working, thank you 🙏