bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
8.22k stars 1.1k forks source link

Video with avc1.f4001e/f not supported on Firefox #5294

Open MetaflameDragon opened 1 week ago

MetaflameDragon commented 1 week ago

Describe the bug

Video with avc1.f4001e and avc1.f4001f won't load on Firefox, showing an error & retry screen.

This fails in level-controller::filterAndSortMediaOptions.

To Reproduce

  1. Open Firefox
  2. Peruse this post: https://bsky.app/profile/bossett.social/post/3l3wru4mlxy2j

Expected behavior

I can watch and enjoy the video in full

Screenshots

:( image

Details

Additional context

I went through a bunch of posts from the videos-only feed that Paul had reposted, logging every codec I encountered. Every single video I saw had avc1.6400xx (xx being one of 14, 15, 1e, 1f, 20). Only Bossett's silly creation had the unplayable avc1.f4001e and avc1.f4001f.

This is also related to #5292, though the issues mentioned there are much more varied.

MetaflameDragon commented 1 week ago

More tests:

Bossett commented 1 week ago

mediainfo for the file is in #5292 (and the file itself) as well - for me I can play in VLC/MPC-HC (not surprising though since I generated the file)

surfdude29 commented 1 week ago

I don't know if this is a helpful data point, but I can play that video fine in Safari on iOS, but not in the iOS app.

Bossett commented 1 week ago

Can you try this one - https://bsky.app/profile/bossett.social/post/3l3y5yjp6v22q - it's the same, but in 4:2:0 (i.e. I think it's not the codec)

surfdude29 commented 1 week ago

Can you try this one - https://bsky.app/profile/bossett.social/post/3l3y5yjp6v22q - it's the same, but in 4:2:0 (i.e. I think it's not the codec)

Like others in that thread, this one plays fine for me, in both Safari on iOS and in the iOS app 👍

uguu-org commented 1 week ago

I also have a video that's playable in Chrome but not in Firefox, not sure if it's the same problem:

https://bsky.app/profile/omoikane.bsky.social/post/3l3ynwhkpxr2d

Attached is the original video that I tried to upload.

https://github.com/user-attachments/assets/f930ab92-d937-4f70-8c92-c2da4b280002

I will note that Twitter complained that it didn't like the aspect ratio, so maybe it's something about the aspect ratio that's causing trouble for both Bluesky and Twitter. Mastodon handled it just fine, though.