[libav-bugs] [Bug 723] Unsynchronised x11grab and sound

bugzilla at aruru.libav.org bugzilla at aruru.libav.org
Tue Nov 4 17:38:56 CET 2014


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

--- Comment #4 from crec <tarest2 at gmail.com> ---
Created attachment 510
  --> https://bugzilla.libav.org/attachment.cgi?id=510&action=edit
Test result in libav11

I downloaded libav11 and the problem is still there. I attached the resulting
screencast and output of avconv command for this file.
Sorry for late response, I had problem with email notifications.

----------------
~/Downloads/libav-11 $ ./avconv -f pulse -i
alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -f x11grab -s 1366x742 -r 10
-i :0+0,0 -vcodec libx264 -preset ultrafast ~/Videos/Screencast.mp4
avconv version 11, Copyright (c) 2000-2014 the Libav developers
  built on Oct  5 2014 22:22:17 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[pulse @ 0x1f41260] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, pulse, from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor':
  Duration: N/A, start: 1415117916.657180, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[x11grab @ 0x1f602e0] device: :0+0,0 -> display: :0 x: 0 y: 0 width: 1366
height: 742
[x11grab @ 0x1f602e0] shared memory extension  found
[x11grab @ 0x1f602e0] Estimating duration from bitrate, this may be inaccurate
Input #1, x11grab, from ':0+0,0':
  Duration: N/A, start: 1415117916.761693, bitrate: 324343 kb/s
    Stream #1.0: Video: rawvideo, bgra, 1366x742, 324343 kb/s, 1000k tbn, 10
tbc
[libx264 @ 0x1f719a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x1f719a0] profile Constrained Baseline, level 3.2
[libx264 @ 0x1f719a0] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1
deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0
me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1
chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0
decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0
keyint=250 keyint_min=10 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
Output #0, mp4, to '/home/darek/Videos/Screencast.mp4':
  Metadata:
    encoder         : Lavf56.1.0
    Stream #0.0: Video: libx264, yuv420p, 1366x742, q=-1--1, 10 fps, 10 tbn, 10
tbc
    Metadata:
      encoder         : Lavc56.1.0 libx264
    Stream #0.1: Audio: libvo_aacenc, 48000 Hz, stereo, s16, 200 kb/s
    Metadata:
      encoder         : Lavc56.1.0 libvo_aacenc
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (libvo_aacenc))
Press ctrl-c to stop encoding
frame=  239 fps= 10 q=-1.0 Lsize=     848kB time=23.80 bitrate= 291.8kbits/s    
video:250kB audio:585kB other streams:0kB global headers:0kB muxing overhead:
1.560100%
[libx264 @ 0x1f719a0] frame I:1     Avg QP:20.00  size: 78751
[libx264 @ 0x1f719a0] frame P:238   Avg QP: 9.63  size:   741
[libx264 @ 0x1f719a0] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x1f719a0] mb P  I16..4:  0.3%  0.0%  0.0%  P16..4:  1.0%  0.0% 
0.0%  0.0%  0.0%    skip:98.7%
[libx264 @ 0x1f719a0] coded y,uvDC,uvAC intra: 21.8% 18.9% 18.0% inter: 0.3%
0.7% 0.3%
[libx264 @ 0x1f719a0] i16 v,h,dc,p: 57% 42%  0%  1%
[libx264 @ 0x1f719a0] i8c dc,h,v,p: 64% 24% 11%  0%
[libx264 @ 0x1f719a0] kb/s:85.43
Received signal 15: terminating.
----------------

There was also no difference when using "wallclock" option (I hope I used it
correctly):
./avconv -f pulse -wallclock 1 -i
alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -f x11grab -s 1366x768 -r 10
-i :0+0,0 -vcodec libx264 -preset ultrafast ~/Videos/Screencastw.mp4

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20141104/e12fea0c/attachment-0001.html>


More information about the libav-bugs mailing list