Bug 222795 - [LibWebRTC][WPE][GTK] Enable vp9 and NO_MAIN_THREAD_WRAPPING
Summary: [LibWebRTC][WPE][GTK] Enable vp9 and NO_MAIN_THREAD_WRAPPING
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Philippe Normand
URL:
Keywords: InRadar
Depends on:
Blocks: 213780 218221
  Show dependency treegraph
 
Reported: 2021-03-05 03:50 PST by Philippe Normand
Modified: 2021-04-23 13:11 PDT (History)
15 users (show)

See Also:


Attachments
[fast-cq] Patch (35.42 KB, patch)
2021-04-21 07:46 PDT, Philippe Normand
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2021-03-05 03:50:27 PST
NO_MAIN_THREAD_WRAPPING prevents creating socket server in Web Process. Also I see no reason preventing us to enable H.265 and VP9, unless I missed something?
Comment 1 Philippe Normand 2021-03-05 04:33:23 PST
Actually I'm not sure H.265 makes much sense for us, VP9 should cover most cases nowadays.
Comment 2 Philippe Normand 2021-04-21 07:46:36 PDT
Created attachment 426682 [details]
[fast-cq] Patch
Comment 3 Xabier Rodríguez Calvar 2021-04-22 01:37:54 PDT
Comment on attachment 426682 [details]
[fast-cq] Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=426682&action=review

> Source/WebCore/platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp:159
> +        gst_bin_add_many(GST_BIN_CAST(m_pipeline.get()), m_src.get(), videoconvert, videoscale, m_capsFilter.get(), m_encoder.get(), m_sink.get(), nullptr);
> +        if (!gst_element_link_many(m_src.get(), videoconvert, videoscale, m_capsFilter.get(), m_encoder.get(), m_sink.get(), nullptr)) {
> +            GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN_CAST(m_pipeline.get()), GST_DEBUG_GRAPH_SHOW_VERBOSE, "webkit-webrtc-encoder.error");

I think we should at least warn here as well.
Comment 4 Philippe Normand 2021-04-22 06:42:25 PDT
A glib warning is already raised when linking fails.

In fact this is the only place where we check a _link_many return value. I wonder if it makes much sense anyway. :)
Comment 5 EWS 2021-04-23 02:23:14 PDT
Committed r276491 (236950@main): <https://commits.webkit.org/236950@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 426682 [details].
Comment 6 Radar WebKit Bug Importer 2021-04-23 13:11:56 PDT
<rdar://problem/77083214>