Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ATProto: detect and handle videos that are over Bluesky's 60s limit #1353

Open
snarfed opened this issue Sep 30, 2024 · 2 comments
Open

ATProto: detect and handle videos that are over Bluesky's 60s limit #1353

snarfed opened this issue Sep 30, 2024 · 2 comments
Labels
compat Protocol differences that need special handling.

Comments

@snarfed
Copy link
Owner

snarfed commented Sep 30, 2024

Related to #1348: Bluesky currently only supports short videos, 60 seconds or less. It'd be nice to detect videos that are too long and include a [Video] text suffix, like we used to do, instead of bridging them anyway and having the client show that they failed:

image

This is technically nontrivial though. I'd need to buffer the entire video in memory, add decoding logic for multiple different formats, who knows what else. I'm unlikely to prioritize this myself, but I'm open to merging a PR if it's reasonable!

@qazmlp
Copy link

qazmlp commented Sep 30, 2024

ffprobe would almost certainly work.
It also takes URLs as input and likely doesn't need to download the entire file.

I'm not sure how well that works with your deployment model, though.

@snarfed
Copy link
Owner Author

snarfed commented Sep 30, 2024

Sadly yeah, I generally need to avoid command line and filesystem-based tools.

@Tamschi Tamschi added the compat Protocol differences that need special handling. label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compat Protocol differences that need special handling.
Projects
None yet
Development

No branches or pull requests

3 participants