New submission from Lou <[email protected]>:
When using a mouse theme that includes a drop shadow with transparency, FFmpeg
will render the mouse with a black border instead of the drop shadow. Switching
to a mouse theme without a transparent drop shadow, such as the basic x11 mouse
theme, will render just fine. Using Arch Linux x86_64 and also reproduced on
Ubuntu Lucid Lynx 10.04 x86_64.
$ ffmpeg -t 5 -f x11grab -r 30 -s 640x320 -i :0.0 -vcodec libx264 -vpre
lossless_ultrafast -an -threads 0 -y mouse-shadow.mkv
FFmpeg version SVN-r23939, Copyright (c) 2000-2010 the FFmpeg developers
built on Jul 1 2010 09:47:45 with gcc 4.5.0 20100610 (prerelease)
configuration: --prefix=/usr --enable-gpl --enable-nonfree --enable-libfaac
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264
--enable-pthreads --enable-x11grab --arch=x86_64
libavutil 50.19. 0 / 50.19. 0
libavcodec 52.78. 0 / 52.78. 0
libavformat 52.71. 0 / 52.71. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 1 / 1.20. 1
libswscale 0.11. 0 / 0.11. 0
[x11grab @ 0x1db5470] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 640
height: 320
[x11grab @ 0x1db5470] shared memory extension found
[x11grab @ 0x1db5470] Estimating duration from bitrate, this may be inaccurate
Input #0, x11grab, from ':0.0':
Duration: N/A, start: 1278012731.947480, bitrate: 196608 kb/s
Stream #0.0: Video: rawvideo, bgra, 640x320, 196608 kb/s, 30 tbr, 1000k tbn,
30 tbc
[ffmpeg_output @ 0x1ddf5f0] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'src' and the filter 'out'
[scale @ 0x1ddf8e0] w:640 h:320 fmt:bgra -> w:640 h:320 fmt:yuv420p
flags:0xa0000004
[libx264 @ 0x1dc4870] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle
SSE4.2
[libx264 @ 0x1dc4870] profile High 4:4:4 Predictive, level 3.0
[libx264 @ 0x1dc4870] 64 - core 100 r1659 57b2e56 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2010 - http://www.videolan.org/x264.html - options: cabac=0 ref=1
deblock=1:0:0 analyse=0x1:0 me=dia subme=0 psy=0 mixed_ref=0 me_range=16
chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0
chroma_qp_offset=0 threads=12 sliced_threads=0 nr=0 decimate=1 interlaced=0
constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc=cqp mbtree=0 qp=0
Output #0, matroska, to 'mouse-shadow.mkv':
Metadata:
encoder : Lavf52.71.0
Stream #0.0: Video: libx264, yuv420p, 640x320, q=10-51, 200 kb/s, 1k tbn,
30 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 151 fps= 30 q=-1.0 Lsize= 145kB time=5.03 bitrate= 236.5kbits/s
video:144kB audio:0kB global headers:0kB muxing overhead 1.051395%
[libx264 @ 0x1dc4870] frame I:1 Avg QP: 0.00 size: 26025
[libx264 @ 0x1dc4870] frame P:150 Avg QP: 0.00 size: 805
[libx264 @ 0x1dc4870] mb I I16..4: 68.9% 0.0% 31.1%
[libx264 @ 0x1dc4870] mb P I16..4: 47.4% 0.0% 0.0% P16..4: 0.3% 0.0% 0.0%
0.0% 0.0% skip:52.3%
[libx264 @ 0x1dc4870] coded y,uvDC,uvAC intra: 0.6% 0.6% 0.6% inter: 0.3% 0.5%
0.5%
[libx264 @ 0x1dc4870] i16 v,h,dc,p: 100% 0% 0% 0%
[libx264 @ 0x1dc4870] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 55% 3% 1% 1% 1% 1%
1% 1%
[libx264 @ 0x1dc4870] i8c dc,h,v,p: 99% 1% 0% 0%
[libx264 @ 0x1dc4870] kb/s:233.18
----------
messages: 11024
nosy: FakeOutdoorsman
priority: normal
status: new
substatus: new
title: x11grab fails to render mouse shadow transparency
type: bug
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2056>
________________________________________________