Open Bug 1955763 Opened 1 year ago Updated 11 months ago

h265/hevc videos on TikTok drop a lot of frames

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 138
defect

Tracking

()

UNCONFIRMED

People

(Reporter: tgnff242, Unassigned, NeedInfo)

References

(Regression)

Details

(Keywords: nightly-community, regression)

Steps to reproduce:

I'm using Linux and Nightly.

  1. Visit a TikTok channel.
  2. Click on the first video and scroll to watch a few more.

Actual results:

There are a lot of dropped frames. The video stays to a still image every few seconds for a while. Setting media.hevc.enabled:false workarounds the issue.

The following logs are from two different videos. Note that both profiles show the playback of only one video, but I had to play at least one before that in order for the issue to reproduce.

https://share.firefox.dev/4kViFuH
https://share.firefox.dev/4hAgIRr

Expected results:

See also: Bug 1954323. Not sure if this is an issue on TikTok only, btw.

Has STR: --- → yes
Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
See Also: → 1954323
Summary: h264/hevc videos on TikTok drop a lot of frames → h265/hevc videos on TikTok drop a lot of frames
Flags: needinfo?(alwu)
Regressed by: 1894818

When using hardware decoding, I can't reproduce this issue on my Windows and MacOS. On my Linux, it's sw decoding due to the Nvidia card issue, but sw decoding doesn't have problem for me as well. Can you try to disable the pref media.hardware-video-decoding.enabled and restart Firefox to see if the issue still exists? Thanks!

Blocks: hevc
Flags: needinfo?(alwu) → needinfo?(tgnff242)

Yes, I can reproduce it with hardware acceleration disabled or even in safe mode. Keep in mind, when I say scroll to watch a few videos, you need to let them play. I can reliably reproduce it in a clean profile (the logs are from a clean profile) after watching fewer than five or six videos of about 15-60sec each.

Flags: needinfo?(tgnff242)

Could you help me capture a media profile for SW decoding as well? I tried to let every video play to the end, then scroll to next one, but still no luck to reproduce. I also confirmed every videos I played were HEVC. What is the version of your system ffmpeg? will you see stuttering on these hevc videos as well? (but some HEVC videos on that page are not supported) Thanks!

Flags: needinfo?(tgnff242)

Here is a profile with SW decoding using the same video as in the first of the two profiles I shared before: https://share.firefox.dev/4hBGCnZ.

I'm on ArchLinux/KDE/X11. ffmpeg is at 7.1, but I have the 4.4.5 version installed as a dependency. I removed 4.4.5 and was still able to reproduce it, but all the profiles I provided are with it installed.

I don't see any dropped frames on those samples (tried quite a few), that's why I mentioned that this might be specific to TikTok. Even on TikTok, if I click directly on a video that I know it had the issue before, it won't reproduce.

Flags: needinfo?(tgnff242)
Flags: needinfo?(alwu)
Severity: -- → S3

Using Firefox Nightly 140.0a1: This issue still persists as described from user tgn-ff. I have used a clean firefox profile and viewed videos off a tiktok profile that still stutters after a couple 2, 13+ sec videos.

Are you also on Linux? Could you capture a profile per this instruction as well? Thanks!

Flags: needinfo?(alwu) → needinfo?(kevinpachuca55)

(In reply to Alastor Wu [:alwu] from comment #6)

Are you also on Linux? Could you capture a profile per this instruction as well? Thanks!

I'm on Windows 11 home 24H2 using Firefox Nightly 140.0a1,

To reproduce this I go into my profile where I can view saved videos from other creators and just go through each video. After I go through a couple videos that are 13secs+, my video's start lagging/stuttering after the 13secs.

Capture Profile: https://share.firefox.dev/44Ucu4i

Flags: needinfo?(kevinpachuca55)

Given time, I can give a better bug report about the dropped frames on H.265/HEVC Tiktok videos.

Environment:
Operating system: Windows 11 25H2
Firefox version: Nightly 142.0a1 (2025-07-12) (64-bit)

Steps to reproduce:

  1. Go to either of these 3 links;
  1. Open the user profile of the video
  2. Click the video associated with the link/video you clicked on in step 1
  3. Observe the video for dropped frames

Expected Results:
Video playback is displayed correctly

Actual Results:
There is stutters or frame drops during video playback

Capture Profile:
https://share.firefox.dev/3U6ZmSG

Notes:

  1. Video playback is normal and working from the link
  2. The issue only happens when viewing the video within a Tiktok profile
  3. Stutter/Frame drops are more persistent when big effects or transitions happen in the video
  4. I got a recording of my test. I want to share it but I'm not sure how.
Flags: needinfo?(alwu)
You need to log in before you can comment on or make changes to this bug.