[Bug 1774915] Re: Video lag when using totem (audio does not lag)
When run in totem, during the first "significant" lag (> 1 second), I ran dmesg (output copied below) and top. Top showed totem and gnome- shell as the only processes using more than 10% of the processor. Dmesg output copied below: tracy@tracy-hp:~$ dmesg [0.00] Linux version 4.15.0-22-generic (buildd@lgw01-amd64-013) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 (Ubuntu 4.15.0-22.24-generic 4.15.17) [0.00] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-22-generic root=UUID=773579df-8683-4bb4-97e9-54d7a44ffac8 ro quiet splash vt.handoff=1 [0.00] KERNEL supported cpus: [0.00] Intel GenuineIntel [0.00] AMD AuthenticAMD [0.00] Centaur CentaurHauls [0.00] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' [0.00] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' [0.00] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' [0.00] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 [0.00] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format. [0.00] e820: BIOS-provided physical RAM map: [0.00] BIOS-e820: [mem 0x-0x0009d7ff] usable [0.00] BIOS-e820: [mem 0x0009d800-0x0009] reserved [0.00] BIOS-e820: [mem 0x000e-0x000f] reserved [0.00] BIOS-e820: [mem 0x0010-0x9ce3efff] usable [0.00] BIOS-e820: [mem 0x9ce3f000-0x9cebefff] reserved [0.00] BIOS-e820: [mem 0x9cebf000-0x9cfbefff] ACPI NVS [0.00] BIOS-e820: [mem 0x9cfbf000-0x9cffefff] ACPI data [0.00] BIOS-e820: [mem 0x9cfff000-0x9cff] usable [0.00] BIOS-e820: [mem 0x9d00-0x9f9f] reserved [0.00] BIOS-e820: [mem 0xe000-0xefff] reserved [0.00] BIOS-e820: [mem 0xfeb0-0xfeb03fff] reserved [0.00] BIOS-e820: [mem 0xfec0-0xfec00fff] reserved [0.00] BIOS-e820: [mem 0xfed1-0xfed19fff] reserved [0.00] BIOS-e820: [mem 0xfed1c000-0xfed1] reserved [0.00] BIOS-e820: [mem 0xfee0-0xfee00fff] reserved [0.00] BIOS-e820: [mem 0xffd8-0x] reserved [0.00] BIOS-e820: [mem 0x0001-0x00025fdf] usable [0.00] NX (Execute Disable) protection: active [0.00] random: fast init done [0.00] SMBIOS 2.7 present. [0.00] DMI: Hewlett-Packard HP Pavilion dv7 Notebook PC/165A, BIOS F.1B 10/05/2011 [0.00] e820: update [mem 0x-0x0fff] usable ==> reserved [0.00] e820: remove [mem 0x000a-0x000f] usable [0.00] e820: last_pfn = 0x25fe00 max_arch_pfn = 0x4 [0.00] MTRR default type: uncachable [0.00] MTRR fixed ranges enabled: [0.00] 0-9 write-back [0.00] A-B uncachable [0.00] C-F write-protect [0.00] MTRR variable ranges enabled: [0.00] 0 base 0 mask F8000 write-back [0.00] 1 base 08000 mask FE000 write-back [0.00] 2 base 09D00 mask FFF00 uncachable [0.00] 3 base 09E00 mask FFE00 uncachable [0.00] 4 base 0FFC0 mask FFFC0 write-protect [0.00] 5 base 1 mask F write-back [0.00] 6 base 2 mask FC000 write-back [0.00] 7 base 24000 mask FF000 write-back [0.00] 8 base 25000 mask FF000 write-back [0.00] 9 base 25FE0 mask FFFE0 uncachable [0.00] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT [0.00] e820: last_pfn = 0x9d000 max_arch_pfn = 0x4 [0.00] found SMP MP-table at [mem 0x000fe1b0-0x000fe1bf] mapped at [ (ptrval)] [0.00] Scanning 1 areas for low memory corruption [0.00] Base memory trampoline at [(ptrval)] 97000 size 24576 [0.00] reserving inaccessible SNB gfx pages [0.00] BRK [0x1a5d3e000, 0x1a5d3efff] PGTABLE [0.00] BRK [0x1a5d3f000, 0x1a5d3] PGTABLE [0.00] BRK [0x1a5d4, 0x1a5d40fff] PGTABLE [0.00] BRK [0x1a5d41000, 0x1a5d41fff] PGTABLE [0.00] BRK [0x1a5d42000, 0x1a5d42fff] PGTABLE [0.00] BRK [0x1a5d43000, 0x1a5d43fff] PGTABLE [0.00] BRK [0x1a5d44000, 0x1a5d44fff] PGTABLE [0.00] BRK [0x1a5d45000, 0x1a5d45fff] PGTABLE [0.00] BRK [0x1a5d46000, 0x1a5d46fff] PGTABLE [0.00] RAMDISK: [mem 0x318d9000-0x34c63fff] [0.00] ACPI: Early table checksum verification disabled [0.00] ACPI: RSDP 0x000FE020 24 (v02 HPQOEM) [0.00] ACPI: XSDT 0x9CFFE120 94 (v01 HPQOEM
[Bug 1774915] Re: Video lag when using totem (audio does not lag)
Sorry, follow-up. The lags/freezes still occur in totem - I will run it again and do the dmesg and top runs you requested, if that will help -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1774915 Title: Video lag when using totem (audio does not lag) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1774915] Re: Video lag when using totem (audio does not lag)
OK, so I went into the BIOS settings for the machine, and the only options for the video configuration is to set video switching to either dynamic or fixed. Dynamic (which was selected) allows the system to switch between the video card "on demand", while fixed (which is now selected) requires the OS or the user to manually switch between video cards. After setting the video configuration to fixed, I booted into Ubuntu and retried the mpv test with your video. I noticed only one brief lag (too fast to even let me try doing top or dmesg). Here is the output from mpv, which shows only a single dropped frame (which would be unnoticable for most people watching a video): tracy@tracy-hp:/mnt/VM$ mpv bbb_sunflower_1080p_60fps_normal.mp4 Playing: bbb_sunflower_1080p_60fps_normal.mp4 (+) Video --vid=1 (*) (h264 1920x1080 60.000fps) (+) Audio --aid=1 --alang=und (*) (mp3 2ch 48000Hz) Audio --aid=2 --alang=und (*) (ac3 6ch 48000Hz) File tags: Artist: Blender Foundation 2008, Janus Bager Kristensen 2013 Comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net Composer: Sacha Goedegebure Genre: Animation Title: Big Buck Bunny, Sunflower version AO: [pulse] 48000Hz stereo 2ch s16 Using hardware decoding (vaapi). VO: [opengl] 1920x1080 vaapi[nv12] AV: 00:10:34 / 00:10:34 (100%) A-V: 0.000 Dropped: 1 Exiting... (End of file) tracy@tracy-hp:/mnt/VM$ So, at this point, it looks like the dynamic switching was the basic problem. However, of interest to me is why this didn't present in earlier versions (I have run 16.04, 17.04, and 17.10 (Wayland), none of which exhibited this problem). So, given this, is there something specific that you want in the way of system information, or are we going to write this off to a (relatively minor) BIOS incompatibility with something introduced in 18.04? (I can live with the manual switching, at this point, if that's what it comes down to...) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1774915 Title: Video lag when using totem (audio does not lag) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1774915] Re: Video lag when using totem (audio does not lag)
VLC work fine for me -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1774915 Title: Video lag when using totem (audio does not lag) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1774915] Re: Video lag when using totem (audio does not lag)
Same here. I have IntelĀ® Ivybridge Desktop graphics only. lspci -k 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09) Subsystem: ASUSTeK Computer Inc. P8 series motherboard Kernel driver in use: ivb_uncore Kernel modules: ie31200_edac 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09) Kernel driver in use: pcieport Kernel modules: shpchp 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09) Subsystem: ASUSTeK Computer Inc. P8 series motherboard Kernel driver in use: i915 Kernel modules: i915 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) Subsystem: ASUSTeK Computer Inc. P8 series motherboard Kernel driver in use: xhci_hcd 00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04) Subsystem: ASUSTeK Computer Inc. P8 series motherboard Kernel driver in use: mei_me Kernel modules: mei_me 00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04) Subsystem: ASUSTeK Computer Inc. P8 series motherboard Kernel driver in use: ehci-pci 00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4) Kernel driver in use: pcieport Kernel modules: shpchp 00:1c.4 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 (rev c4) Kernel driver in use: pcieport Kernel modules: shpchp 00:1c.5 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c4) 00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04) Subsystem: ASUSTeK Computer Inc. P8 series motherboard Kernel driver in use: ehci-pci 00:1f.0 ISA bridge: Intel Corporation Z77 Express Chipset LPC Controller (rev 04) Subsystem: ASUSTeK Computer Inc. P8 series motherboard Kernel driver in use: lpc_ich Kernel modules: lpc_ich 00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04) Subsystem: ASUSTeK Computer Inc. P8 series motherboard Kernel driver in use: ahci Kernel modules: ahci 00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04) Subsystem: ASUSTeK Computer Inc. P8 series motherboard Kernel modules: i2c_i801 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06) Subsystem: ASUSTeK Computer Inc. P8P67 and other motherboards Kernel driver in use: r8169 Kernel modules: r8169 04:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 03) 05:00.0 Network controller: Qualcomm Atheros AR9227 Wireless Network Adapter (rev 01) Subsystem: Qualcomm Atheros AR9227 Wireless Network Adapter Kernel driver in use: ath9k Kernel modules: ath9k 05:01.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio] Subsystem: ASUSTeK Computer Inc. Virtuoso 100 (Xonar D1) Kernel driver in use: snd_virtuoso Kernel modules: snd_virtuoso -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1774915 Title: Video lag when using totem (audio does not lag) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1774915] Re: Video lag when using totem (audio does not lag)
OK, clarification on "lag" - during video playback, the picture will "freeze" at random points, then jump forward to a new position when it continues to play. This "freeze" will last anywhere from < 1 second up to 10 to 15 seconds. The video that would normally be played during this "freeze" is never played, it is simply skipped over. Sometimes, during these lag moments, I notice that video playback will resume if the mouse cursor is moved (whether that is coincidence or cause I do not know - but moving the mouse cursor does not always cause resumption of playback). When video playback continues, it is usually resynchronized with audio (there was no pause, freeze, or lag in the audio output, only in the video). It does not always occur at the same point in playback, even in the same video file. Here is output from mpv during playback of the test video. I did not catch "dmesg" or "top" during the lags - I will give that another try later today when I have a few minutes to look into it. tracy@tracy-hp:/mnt/VM$ mpv bbb_sunflower_1080p_60fps_normal.mp4 Playing: bbb_sunflower_1080p_60fps_normal.mp4 (+) Video --vid=1 (*) (h264 1920x1080 60.000fps) (+) Audio --aid=1 --alang=und (*) (mp3 2ch 48000Hz) Audio --aid=2 --alang=und (*) (ac3 6ch 48000Hz) File tags: Artist: Blender Foundation 2008, Janus Bager Kristensen 2013 Comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net Composer: Sacha Goedegebure Genre: Animation Title: Big Buck Bunny, Sunflower version AO: [pulse] 48000Hz stereo 2ch s16 Using hardware decoding (vaapi). VO: [opengl] 1920x1080 vaapi[nv12] AV: 00:06:26 / 00:10:34 (60%) A-V: 0.000 Dropped: 26 Audio/Video desynchronisation detected! Possible reasons include too slow hardware, temporary CPU spikes, broken drivers, and broken files. Audio position will not match to the video (see A-V status field). AV: 00:10:34 / 00:10:34 (100%) A-V: 0.000 Dropped: 636 Exiting... (End of file) tracy@tracy-hp:/mnt/VM$ Note that /mnt/vm is a partition on an SSD drive attached to the internal SATA bus, so there shouldn't be any I/O delays causing the problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1774915 Title: Video lag when using totem (audio does not lag) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1774915] Re: Video lag when using totem (audio does not lag)
Thanks for the bug report. Can you please also attach the following information?... 1. Text output from 'lspci -k' 2. Text output from 'mpv bbb_sunflower_1080p_60fps_normal.mp4' 3. Text output from running 'dmesg' after the lag problem has just happened. 4. Please clarify what you mean by "lag". Do you mean the audio is playing back earlier than the video? Or do you mean the frame rate is low? 5. While the "lag" problem is occurring, please also run 'top' in a terminal window and tell us if any process is using high CPU. ** Changed in: gstreamer1.0 (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1774915 Title: Video lag when using totem (audio does not lag) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1774915] Re: Video lag when using totem (audio does not lag)
Oh I see you already provided 'lspci -k'. Thanks. ** Tags added: radeon -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1774915 Title: Video lag when using totem (audio does not lag) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1774915] Re: Video lag when using totem (audio does not lag)
6. Please also see if you can disable the AMD GPU in your system BIOS and test with just the Intel GPU. Does the problem then go away? (I have a suspicion there is a problem with gnome-shell hybrid GPU support) ** Also affects: gnome-shell (Ubuntu) Importance: Undecided Status: New ** Changed in: gnome-shell (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1774915 Title: Video lag when using totem (audio does not lag) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs