[libav-bugs] [Bug 608] New: Tearing in video captured by x11grab

bugzilla at libav.org bugzilla at libav.org
Tue Dec 17 19:54:22 CET 2013


https://bugzilla.libav.org/show_bug.cgi?id=608

           Summary: Tearing in video captured by x11grab
           Product: Libav
           Version: git HEAD
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: lcreid at jadesystems.ca


Created attachment 444
  --> https://bugzilla.libav.org/attachment.cgi?id=444
Console output from above command

When capturing the screen using x11grab, I get flashes blue horizontal bands of
varying heights. Sometimes rather than blue they are what's behind the window
I'm trying to capture. The bands are not perfect rectangles, either.

I will upload an example file named "x11grab-tearing.mkv" to your ftp site. You
can see examples of what I'm talking about in the first 20 seconds of the
video. The effect only appears on the captured video, not on the screen. 

The command line I used is:

avconv  -v 9 -loglevel 99 \
    -f alsa -ac 1 -ab 192k -i pulse -acodec pcm_s16le \
    -f x11grab -show_region 1 -r 30 -s 854x480 -i :0.0+536,324 -qscale 0
-vcodec huffyuv \
    -y x11grab-tearing.mkv 2>&1 | tee x11grab-tearing.txt

I'm using Linux Mint 13 with the Cinnamon desktop with effects on. I've put the
following in my /etc/environment as recommended by a number of places on the
web, but it seems to have no effect:

export CLUTTER_PAINT=disable-clipped-redraws:disable-culling
export CLUTTER_VBLANK=True

I'm attaching the console output rather than pasting the whole thing here. The
first 60 lines of the console output follow, then after that the output of
lshw:

avconv version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the
Libav developers
  built on Apr  2 2013 17:02:36 with gcc 4.6.3
  configuration: --extra-version='4:0.8.6-0ubuntu0.12.04.1' --arch=amd64
--prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libfreetype --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  avutil      configuration:
--extra-version='4:0.8.6ubuntu0.12.04.1+medibuntu1' --arch=amd64 --prefix=/usr
--libdir=/usr/lib/x86_64-linux-gnu --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-version3 --enable-libfreetype
--enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree
--enable-gpl --enable-postproc --enable-swscale --enable-x11grab
--enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264
--enable-libxvid --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  avcodec     configuration:
--extra-version='4:0.8.6ubuntu0.12.04.1+medibuntu1' --arch=amd64 --prefix=/usr
--libdir=/usr/lib/x86_64-linux-gnu --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-version3 --enable-libfreetype
--enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree
--enable-gpl --enable-postproc --enable-swscale --enable-x11grab
--enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264
--enable-libxvid --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  libavutil    51. 22. 1 / 51. 22. 1
  libavcodec   53. 35. 0 / 53. 35. 0
  libavformat  53. 21. 1 / 53. 21. 1
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 15. 0 /  2. 15. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  52.  0. 0 / 52.  0. 0
[alsa @ 0x18f1be0] capture with some ALSA plugins, especially dsnoop, may hang.
[pcm_s16le @ 0x18f3fc0] err{or,}_recognition separate: 1; 1
[pcm_s16le @ 0x18f3fc0] err{or,}_recognition combined: 1; 1
[alsa @ 0x18f1be0] All info found
[alsa @ 0x18f1be0] Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'pulse':
  Duration: N/A, start: 1387305044.114837, bitrate: N/A
    Stream #0.0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768
kb/s
[x11grab @ 0x18f28e0] device: :0.0+536,324 -> display: :0.0 x: 536 y: 324
width: 854 height: 480
[x11grab @ 0x18f28e0] shared memory extension  found
[rawvideo @ 0x18f14e0] err{or,}_recognition separate: 1; 1
[rawvideo @ 0x18f14e0] err{or,}_recognition combined: 1; 1
[x11grab @ 0x18f28e0] All info found
[x11grab @ 0x18f28e0] Estimating duration from bitrate, this may be inaccurate
Input #1, x11grab, from ':0.0+536,324':
  Duration: N/A, start: 1387305044.158486, bitrate: 393523 kb/s
    Stream #1.0, 1, 1/1000000: Video: rawvideo, bgra, 854x480, 1/30, 393523
kb/s, 30 tbr, 1000k tbn, 30 tbc
[buffer @ 0x18f38c0] w:854 h:480 pixfmt:bgra
[huffyuv @ 0x1915540] err{or,}_recognition separate: 1; 1
[huffyuv @ 0x1915540] err{or,}_recognition combined: 1; 1
[huffyuv @ 0x1915540] Unsupported bit depth: 0
[huffyuv @ 0x1915540] using huffyuv 2.2.0 or newer interlacing flag
[libvorbis @ 0x192b780] err{or,}_recognition separate: 1; 1
[libvorbis @ 0x192b780] err{or,}_recognition combined: 1; 1
[pcm_s16le @ 0x18f3fc0] err{or,}_recognition separate: 1; 1
[pcm_s16le @ 0x18f3fc0] err{or,}_recognition combined: 1; 1
[rawvideo @ 0x18f14e0] err{or,}_recognition separate: 1; 1
[rawvideo @ 0x18f14e0] err{or,}_recognition combined: 1; 1
Output #0, matroska, to 'x11grab-tearing.mkv':
  Metadata:
    encoder         : Lavf53.21.1
    Stream #0.0, 0, 1/1000: Video: huffyuv, bgra, 854x480, 1/30, q=2-31, 200
kb/s, 1k tbn, 30 tbc
    Stream #0.1, 0, 1/1000: Audio: libvorbis, 48000 Hz, 1 channels, s16
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo -> huffyuv)
  Stream #0:0 -> #0:1 (pcm_s16le -> libvorbis)
Press ctrl-c to stop encoding
[matroska @ 0x1914fe0] Writing block at offset 4193, size 489084, pts 0, dts 0,
duration 33, flags 128
[matroska @ 0x1914fe0] Writing block at offset 493285, size 24, pts 0, dts 0,
duration 0, flags 128
[matroska @ 0x1914fe0] Writing block at offset 493315, size 125, pts 12, dts
12, duration 0, flags 128
[matroska @ 0x1914fe0] Writing block at offset 493447, size 123, pts 33, dts
33, duration 0, flags 128
[matroska @ 0x1914fe0] Writing block at offset 493577, size 124, pts 55, dts
55, duration 0, flags 128
[matroska @ 0x1914fe0] Writing block at offset 493708, size 125, pts 76, dts
76, duration 0, flags 128
[matroska @ 0x1914fe0] Writing block at offset 493840, size 132, pts 97, dts
97, duration 0, flags 128
[matroska @ 0x1914fe0] Starting new cluster at offset 493979 bytes, pts 133
[matroska @ 0x1914fe0] Writing block at offset 493994, size 120, pts 119, dts
119, duration 0, flags 128
[matroska @ 0x1914fe0] Writing block at offset 494120, size 489788, pts 133,
dts 133, duration 33, flags 128
[matroska @ 0x1914fe0] Writing block at offset 983916, size 134, pts 140, dts
140, duration 0, flags 128

*********** End of first 60 lines of console output

*********** lshw

    description: Computer
    width: 64 bits
    capabilities: vsyscall32
  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory
          physical id: 0
          size: 3954MiB
     *-cpu
          product: Intel(R) Core(TM)2 Quad  CPU   Q8200  @ 2.33GHz
          vendor: Intel Corp.
          physical id: 1
          bus info: cpu at 0
          size: 2GHz
          capacity: 2GHz
          width: 64 bits
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8
apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht
tm pbe syscall nx x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl
aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1
lahf_lm dtherm cpufreq
     *-pci
          description: Host bridge
          product: 82G33/G31/P35/P31 Express DRAM Controller
          vendor: Intel Corporation
          physical id: 100
          bus info: pci at 0000:00:00.0
          version: 02
          width: 32 bits
          clock: 33MHz
        *-pci:0
             description: PCI bridge
             product: 82G33/G31/P35/P31 Express PCI Express Root Port
             vendor: Intel Corporation
             physical id: 1
             bus info: pci at 0000:00:01.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:40 ioport:d000(size=4096) memory:fd000000-feafffff
ioport:f0000000(size=167772160)
           *-display
                description: VGA compatible controller
                product: GK106 [GeForce GTX 660]
                vendor: NVIDIA Corporation
                physical id: 0
                bus info: pci at 0000:05:00.0
                version: a1
                width: 64 bits
                clock: 33MHz
                capabilities: vga_controller bus_master cap_list rom
                configuration: driver=nvidia latency=0
                resources: irq:16 memory:fd000000-fdffffff
memory:f0000000-f7ffffff memory:f8000000-f9ffffff ioport:dc00(size=128)
memory:fea00000-fea7ffff
           *-multimedia
                description: Audio device
                product: GK106 HDMI Audio Controller
                vendor: NVIDIA Corporation
                physical id: 0.1
                bus info: pci at 0000:05:00.1
                version: a1
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master cap_list
                configuration: driver=snd_hda_intel latency=0
                resources: irq:17 memory:feafc000-feafffff
        *-usb:0
             description: USB controller
             product: 82801I (ICH9 Family) USB UHCI Controller #4
             vendor: Intel Corporation
             physical id: 1a
             bus info: pci at 0000:00:1a.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master cap_list
             configuration: driver=uhci_hcd latency=0
             resources: irq:16 ioport:b400(size=32)
        *-usb:1
             description: USB controller
             product: 82801I (ICH9 Family) USB UHCI Controller #5
             vendor: Intel Corporation
             physical id: 1a.1
             bus info: pci at 0000:00:1a.1
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master cap_list
             configuration: driver=uhci_hcd latency=0
             resources: irq:21 ioport:b480(size=32)
        *-usb:2
             description: USB controller
             product: 82801I (ICH9 Family) USB2 EHCI Controller #2
             vendor: Intel Corporation
             physical id: 1a.7
             bus info: pci at 0000:00:1a.7
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: ehci bus_master cap_list
             configuration: driver=ehci_hcd latency=0
             resources: irq:18 memory:fcdfec00-fcdfefff
        *-multimedia
             description: Audio device
             product: 82801I (ICH9 Family) HD Audio Controller
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci at 0000:00:1b.0
             version: 02
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:46 memory:fcdf4000-fcdf7fff
        *-pci:1
             description: PCI bridge
             product: 82801I (ICH9 Family) PCI Express Port 1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci at 0000:00:1c.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:41 ioport:2000(size=4096) memory:fa200000-fa3fffff
ioport:fa400000(size=2097152)
        *-pci:2
             description: PCI bridge
             product: 82801I (ICH9 Family) PCI Express Port 2
             vendor: Intel Corporation
             physical id: 1c.1
             bus info: pci at 0000:00:1c.1
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:42 ioport:1000(size=4096) memory:fcf00000-fcffffff
ioport:fa000000(size=2097152)
           *-network
                description: Wireless interface
                product: AR928X Wireless Network Adapter (PCI-Express)
                vendor: Qualcomm Atheros
                physical id: 0
                bus info: pci at 0000:03:00.0
                logical name: wlan0
                version: 01
                serial: 00:21:00:8c:3f:3d
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=ath9k
driverversion=3.2.0-45-generic firmware=N/A ip=10.3.3.24 latency=0
multicast=yes wireless=IEEE 802.11abgn
                resources: irq:17 memory:fcff0000-fcffffff
        *-pci:3
             description: PCI bridge
             product: 82801I (ICH9 Family) PCI Express Port 3
             vendor: Intel Corporation
             physical id: 1c.2
             bus info: pci at 0000:00:1c.2
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: pci normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:43 ioport:e000(size=4096) memory:feb00000-febfffff
ioport:fbf00000(size=1048576)
           *-network
                description: Ethernet interface
                product: RTL8111/8168/8411 PCI Express Gigabit Ethernet
Controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci at 0000:02:00.0
                logical name: eth0
                version: 02
                serial: 00:24:8c:07:1b:91
                size: 10Mbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list rom ethernet physical tp mii
10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169
driverversion=2.3LK-NAPI duplex=half firmware=N/A latency=0 multicast=yes
port=MII speed=10Mbit/s
                resources: irq:45 ioport:e800(size=256)
memory:febff000-febfffff memory:fbff0000-fbffffff memory:febc0000-febdffff
        *-usb:3
             description: USB controller
             product: 82801I (ICH9 Family) USB UHCI Controller #1
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci at 0000:00:1d.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master cap_list
             configuration: driver=uhci_hcd latency=0
             resources: irq:23 ioport:b800(size=32)
        *-usb:4
             description: USB controller
             product: 82801I (ICH9 Family) USB UHCI Controller #2
             vendor: Intel Corporation
             physical id: 1d.1
             bus info: pci at 0000:00:1d.1
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master cap_list
             configuration: driver=uhci_hcd latency=0
             resources: irq:19 ioport:b880(size=32)
        *-usb:5
             description: USB controller
             product: 82801I (ICH9 Family) USB UHCI Controller #3
             vendor: Intel Corporation
             physical id: 1d.2
             bus info: pci at 0000:00:1d.2
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master cap_list
             configuration: driver=uhci_hcd latency=0
             resources: irq:18 ioport:bc00(size=32)
        *-usb:6
             description: USB controller
             product: 82801I (ICH9 Family) USB UHCI Controller #6
             vendor: Intel Corporation
             physical id: 1d.3
             bus info: pci at 0000:00:1d.3
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master cap_list
             configuration: driver=uhci_hcd latency=0
             resources: irq:16 ioport:c000(size=32)
        *-usb:7
             description: USB controller
             product: 82801I (ICH9 Family) USB2 EHCI Controller #1
             vendor: Intel Corporation
             physical id: 1d.7
             bus info: pci at 0000:00:1d.7
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: ehci bus_master cap_list
             configuration: driver=ehci_hcd latency=0
             resources: irq:23 memory:fcdff800-fcdffbff
        *-pci:4
             description: PCI bridge
             product: 82801 PCI Bridge
             vendor: Intel Corporation
             physical id: 1e
             bus info: pci at 0000:00:1e.0
             version: 92
             width: 32 bits
             clock: 33MHz
             capabilities: pci subtractive_decode bus_master cap_list
             resources: memory:fce00000-fcefffff
           *-firewire
                description: FireWire (IEEE 1394)
                product: FW322/323 [TrueFire] 1394a Controller
                vendor: LSI Corporation
                physical id: 5
                bus info: pci at 0000:01:05.0
                version: 70
                width: 32 bits
                clock: 33MHz
                capabilities: ohci bus_master cap_list
                configuration: driver=firewire_ohci latency=64 maxlatency=24
mingnt=12
                resources: irq:20 memory:fceff000-fcefffff
        *-isa
             description: ISA bridge
             product: 82801IR (ICH9R) LPC Interface Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci at 0000:00:1f.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master cap_list
             configuration: latency=0
        *-storage
             description: RAID bus controller
             product: 82801 SATA Controller [RAID mode]
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci at 0000:00:1f.2
             version: 02
             width: 32 bits
             clock: 66MHz
             capabilities: storage bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:44 ioport:c880(size=8) ioport:c800(size=4)
ioport:c480(size=8) ioport:c400(size=4) ioport:c080(size=32)
memory:fcdff000-fcdff7ff
        *-serial UNCLAIMED
             description: SMBus
             product: 82801I (ICH9 Family) SMBus Controller
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci at 0000:00:1f.3
             version: 02
             width: 64 bits
             clock: 33MHz
             configuration: latency=0
             resources: memory:fcdffc00-fcdffcff ioport:400(size=32)
  *-scsi
       physical id: 1
       bus info: scsi at 6
       logical name: scsi6
       capabilities: scsi-host
       configuration: driver=usb-storage

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list