[Bug 1987631] [NEW] Screencast only records one second

Launchpad Bug Tracker 1987631 at bugs.launchpad.net
Fri Dec 30 06:41:14 UTC 2022


You have been subscribed to a public bug by Bin Li (binli):

[Impact]
When recording a screencast with gnome on kinetic the resulting video will play for one second and then freeze. It looks like the same bug was discussed upstream at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5585

This issue is caused by the new two patches in 0.3.48-1ubuntu2 which is fixed the Cheese preview stuck issue on jammy
  * d/p/0001-buffers-ensure-buffer-size-does-not-exceed-maxsize.patch
    d/p/0002-gst-dequeue-a-shared-buffer-instead-of-original-pool.patch
    - Camera output freeze when using pipewiresrc (LP: #1985057)

Here is a comment from https://bugs.launchpad.net/ubuntu/+source/pipewire/+bug/1985057/comments/51 .
===
So that's a regression of one of the cherrypicked commits, details are in https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/d32c03488

the issue is fixed in Kinetic through a combination of the shell fix and
a new pipewire.

In 22.04 the shell issue is fixed in the recent 42.5 update but we will need to cherrypick https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/1ea1d525 in pipewire to be working.
===

[Test Plan]
1. Install Jammy on the hardware issue reported, and hardware didn't report the issue to avoid the regression
   hardware list:
   a. 0bda:58ff Realtek Semiconductor Corp. Integrated_Webcam_HD
   b. 0c45:6747 Microdia Integrated_Webcam_HD
   c. 0c45:6a14 Microdia Integrated_Webcam_HD
   d. 1bcf:28d0 Sunplus Innovation Technology Inc. Integrated_Webcam_5M
   e. 04f2:b76b Chicony Electronics Co., Ltd HP HD Camera
   f. 0408:545a Quanta Computer, Inc. HP 5MP Camera
   g. 0408:5483 Quanta Computer, Inc. HP HD Camera
   h. 174f:2459 Syntek Integrated Camera (ThinkBook 14 Gen 4)
   i. 5986:116d Acer, Inc Integrated Camera (ThinkCentre Neo 50a)
   j. 0bda:5556 Realtek Semiconductor Corp. Integrated_Webcam_FHD
2. try to install the updated pipewire packages (= 0.3.48-1ubuntu2)
3. $ sudo reboot
4. Check if gst-launch-1.0 work
   a. $ gst-device-monitor-1.0 Video/Source to get caps and suggest gst-launch-1.0 command
   b. $ gst-launch-1.0 pipewiresrc path=<id> ! <cap> ! decodebin ! videoconvert ! glimagesink
   c. Check if the result ok
5. Check the screencast function by pressing 'prt sc'
   a. the screenshot of all screen/selected region should work good
   b. the screenrecord of all screen/selected region should work good
6. Check that video recording in gnome-shell works
   - use Ctrl+Shift+Alt+R to start a recording, stop it from the indicator, verify that there is a new entry in ~/Video
7. Check that screen sharing is working
   - go to settings, screen sharing and enable the feature
   - try to connect using rdp/vnc from another client

do those steps under wayland and unset X

[Where problems could occur]
The patches try to dequeue the shared buffer, instead of pool buffer to prevent the pool buffer being corrupted. it might cause some camera preview failed if shared buffer is corrupted.
It is from upstream and there is no regression found, so the risk is low.

[Other Info]
Upstream commits for pipewire:
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/7cc509b117a6db66c395fb56ac4f17fb8cbd0c92
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/a1f33a99df5756c3dedd68f5ba2690819098d14f
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/1ea1d525c1ac946a915599c6bee813e88e8cee12
Upstream commits for gstreamer:
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/3b900e1fa4fd888012dc005fa26ae2532a89b7a7

** Affects: gnome-shell
     Importance: Unknown
         Status: Fix Released

** Affects: oem-priority
     Importance: High
     Assignee: Bin Li (binli)
         Status: In Progress

** Affects: gnome-shell (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: gst-plugins-base1.0 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: gstreamer1.0 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: pipewire (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: gnome-shell (Ubuntu Jammy)
     Importance: Undecided
         Status: Fix Released

** Affects: gst-plugins-base1.0 (Ubuntu Jammy)
     Importance: Undecided
         Status: New

** Affects: gstreamer1.0 (Ubuntu Jammy)
     Importance: Undecided
         Status: New

** Affects: pipewire (Ubuntu Jammy)
     Importance: Undecided
         Status: Confirmed


** Tags: fixed-in-gnome-shell-42.5 fixed-in-gnome-shell-43.rc fixed-upstream kinetic oem-priority originate-from-1994117 regression-update rls-jj-incoming sutton verification-done verification-done-jammy
-- 
Screencast only records one second
https://bugs.launchpad.net/bugs/1987631
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list