Fix video playback stall at the beginning of some content#1015
Closed
emutavchi wants to merge 2 commits intoWebPlatformForEmbedded:wpe-2.28from
Closed
Fix video playback stall at the beginning of some content#1015emutavchi wants to merge 2 commits intoWebPlatformForEmbedded:wpe-2.28from
emutavchi wants to merge 2 commits intoWebPlatformForEmbedded:wpe-2.28from
Conversation
See: https://bugs.webkit.org/show_bug.cgi?id=233528 And partial backport of the sanity change done with change from: https://bugs.webkit.org/show_bug.cgi?id=237078
Member
|
The PR is good. I'm working to port the |
Member
|
"Don't extend PTS of non-key frame" patch submitted upstream as https://bugs.webkit.org/show_bug.cgi?id=251868 / WebKit/WebKit#9769 and landed as https://commits.webkit.org/260004@main |
webkit-early-warning-system
pushed a commit
to eocanha/WebKit
that referenced
this pull request
Feb 8, 2023
https://bugs.webkit.org/show_bug.cgi?id=251868 The edit list support patch from https://bugs.webkit.org/show_bug.cgi?id=231019 was reverted in https://bugs.webkit.org/show_bug.cgi?id=244428. While that patch isn't landed again, we're growing the first buffer of an append near the begining of the stream to make it start from 0. This workaround uses a tolerance of 0.1s, and can cause problems on frames short enough to fit more than one time in the tolerance margin (eg: 3 frames at 30fps would fit, as well as 6 frames at 60fps). The process of growing the seconde frame that still fit in the tolerance is triggering the deletion of the first frame, which is usually a sync one. This sweeps other frames into the deletion and causes problems. This patch changes the condition to enable frame growing to only apply on key frames (sync samples). Original author: Eugene Mutavchi <Ievgen_Mutavchi@comcast.com> See: WebPlatformForEmbedded/WPEWebKit#1015 Reviewed by Alicia Boya Garcia. * Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp: (WebCore::AppendPipeline::appsinkNewSample): Don't extend PTS of non-key frame. Canonical link: https://commits.webkit.org/260004@main
eocanha
pushed a commit
that referenced
this pull request
Feb 8, 2023
https://bugs.webkit.org/show_bug.cgi?id=251868 The edit list support patch from https://bugs.webkit.org/show_bug.cgi?id=231019 was reverted in https://bugs.webkit.org/show_bug.cgi?id=244428. While that patch isn't landed again, we're growing the first buffer of an append near the begining of the stream to make it start from 0. This workaround uses a tolerance of 0.1s, and can cause problems on frames short enough to fit more than one time in the tolerance margin (eg: 3 frames at 30fps would fit, as well as 6 frames at 60fps). The process of growing the seconde frame that still fit in the tolerance is triggering the deletion of the first frame, which is usually a sync one. This sweeps other frames into the deletion and causes problems. This patch changes the condition to enable frame growing to only apply on key frames (sync samples). Original author: Eugene Mutavchi <Ievgen_Mutavchi@comcast.com> See: #1015 Reviewed by Alicia Boya Garcia. * Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp: (WebCore::AppendPipeline::appsinkNewSample): Don't extend PTS of non-key frame. Canonical link: https://commits.webkit.org/260004@main
eocanha
added a commit
that referenced
this pull request
Feb 8, 2023
https://bugs.webkit.org/show_bug.cgi?id=251868 The edit list support patch from https://bugs.webkit.org/show_bug.cgi?id=231019 was reverted in https://bugs.webkit.org/show_bug.cgi?id=244428. While that patch isn't landed again, we're growing the first buffer of an append near the begining of the stream to make it start from 0. This workaround uses a tolerance of 0.1s, and can cause problems on frames short enough to fit more than one time in the tolerance margin (eg: 3 frames at 30fps would fit, as well as 6 frames at 60fps). The process of growing the seconde frame that still fit in the tolerance is triggering the deletion of the first frame, which is usually a sync one. This sweeps other frames into the deletion and causes problems. This patch changes the condition to enable frame growing to only apply on key frames (sync samples). Original author: Eugene Mutavchi <Ievgen_Mutavchi@comcast.com> See: #1015 Reviewed by Alicia Boya Garcia. * Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp: (WebCore::AppendPipeline::appsinkNewSample): Don't extend PTS of non-key frame. Canonical link: https://commits.webkit.org/260004@main
Member
|
I've backported the upstream patch and manually pushed both patches to wpe-2.28 as:
And to wpe-2.38 as:
|
aperezdc
pushed a commit
to WebKit/WebKit
that referenced
this pull request
Feb 12, 2023
…gi?id=251868 [MSE][GStreamer] Don't extend PTS of non-key frame https://bugs.webkit.org/show_bug.cgi?id=251868 The edit list support patch from https://bugs.webkit.org/show_bug.cgi?id=231019 was reverted in https://bugs.webkit.org/show_bug.cgi?id=244428. While that patch isn't landed again, we're growing the first buffer of an append near the begining of the stream to make it start from 0. This workaround uses a tolerance of 0.1s, and can cause problems on frames short enough to fit more than one time in the tolerance margin (eg: 3 frames at 30fps would fit, as well as 6 frames at 60fps). The process of growing the seconde frame that still fit in the tolerance is triggering the deletion of the first frame, which is usually a sync one. This sweeps other frames into the deletion and causes problems. This patch changes the condition to enable frame growing to only apply on key frames (sync samples). Original author: Eugene Mutavchi <Ievgen_Mutavchi@comcast.com> See: WebPlatformForEmbedded/WPEWebKit#1015 Reviewed by Alicia Boya Garcia. * Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp: (WebCore::AppendPipeline::appsinkNewSample): Don't extend PTS of non-key frame. Canonical link: https://commits.webkit.org/260004@main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is reproducible with apps that do transmuxing from TS to MP4 streams. In the reproduction case we can see 2 problems:
This PR backports some of the changes from upstream, and disables PTS extension for non-key frames