Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
12.91k stars 1.48k forks source link

Some videos not playing properly in some geographical regions #6313

Closed FediVideos closed 5 months ago

FediVideos commented 5 months ago

Describe the current behavior

Some videos on some instances seem to have problems playing for some videos on some instances. For example this video https://video.canadiancivil.com/w/icJhCfvv6iGuE7kFVS18cJ stops after 10 or 20 seconds if you're watching from Europe.

(I asked others about this and similar pattern for them, see Fediverse thread at https://social.chinwag.org/@FediThing/112218319947974047)

Have also seen similar problems on other instances, for example videos older than 3 years on https://tilvids.com don't seem to play at all in Europe, but the maintainer (in North America) can play them fine. For example https://tilvids.com/w/skdJs94R8Noe1CATFhTjgY doesn't play in Europe.

I'm wondering if this is due to geographically-based cacheing services? It's kind of random though, other videos on same instance may work fine everywhere.

Steps to reproduce

  1. Try watching https://video.canadiancivil.com/w/icJhCfvv6iGuE7kFVS18cJ from within Europe
  2. See if it plays properly beyond 10 or 20 seconds on all resolutions
  3. Try watching same video outside Europe (either by asking another person to do it or using a VPN)

Describe the expected behavior

Video should play for people around the world.

Additional information

Chocobozzz commented 5 months ago

Hi,

For example this video https://video.canadiancivil.com/w/icJhCfvv6iGuE7kFVS18cJ stops after 10 or 20 seconds if you're watching from Europe.

I think this is a cloudflare issue, probably the same as https://github.com/Chocobozzz/PeerTube/issues/5046

For example https://tilvids.com/w/skdJs94R8Noe1CATFhTjgY doesn't play in Europe.

Seems to be another problem, maybe a sysadmin one. You can tell to the maintainer of tilvids to contact me by email if they need help

FediVideos commented 5 months ago

Okay, thanks, I guess this isn't a PeerTube issue then! :/ Hopefully it gets fixed at cloudflare end.

FediVideos commented 5 months ago

Just a follow-up, someone has pointed out these play okay in Europe on Safari-based browsers in iOS (which is all of them until Apple opens up browsing). Kind of struggling to see a pattern here, this is so intermittent. It's only a few videos this happens to as well.

Chocobozzz commented 5 months ago

Kind of struggling to see a pattern here, this is so intermittent. It's only a few videos this happens to as well.

Seems related to the cache status of cloudflare (if MISS it downloads the entire video instead of respecting the byte-range header). So yes, it's kinda random :) Don't hesitate to contact the admins that can use the forum to get help

S0yKaf commented 4 months ago

Hello, I'm the video.canadiancivil sysadmin. The issue was in fact caused by our Cloudflare config (same as #5046). problem should start becoming resolved as Cloudflare propagates the config change. New uploads should work as intended.

@FediVideos if you run into anymore issues don't hesitate to shoot me an email at victor@fedihost.co

Cheers!