[FFmpeg-user] Cannot capture audio in screen recording
Abhijit Nathwani
abhijit.nathwani at gmail.com
Tue Sep 11 08:07:55 EEST 2018
Hi,
Please find the console output below:
abhijit at AHMCPU2092:~$ ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s
1280x720 -thread_queue_size 4096 -i :0.0+0,0 -f alsa -thread_queue_size
4096 -i hw:0,1,0 -acodec aac -strict -2 -ar 44100 -c:v libx264 -preset
veryfast -profile:v main -level 3.1 -pix_fmt yuv420p -r 30 -crf 25 -g 60
-tune zerolatency -f mp4 ~/test_1036.mp4
ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg
developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1
--build-suffix=-ffmpeg --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
--cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping
--disable-decoder=libopenjpeg --disable-decoder=libschroedinger
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libflite --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
--enable-libmodplug --enable-libmp3lame --enable-libopenjpeg
--enable-libopus --enable-libpulse --enable-librtmp
--enable-libschroedinger --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi
--enable-openal --enable-opengl --enable-x11grab --enable-libdc1394
--enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264
--enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, x11grab, from ':0.0+0,0':
Duration: N/A, start: 1536642371.114049, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1280x720, 30
fps, 30 tbr, 1000k tbn, 30 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'hw:0,1,0':
Duration: N/A, start: 1536642371.115637, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[libx264 @ 0x1de5f40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x1de5f40] profile Main, level 3.1
[libx264 @ 0x1de5f40] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1
ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=2 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=4 lookahead_threads=4
sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=0 weightp=1 keyint=60 keyint_min=6 scenecut=40
intra_refresh=0 rc=crf mbtree=0 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69
qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/home/abhijit/test_1036.mp4':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
1280x720, q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc56.60.100 libx264
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo,
fltp, 128 kb/s
Metadata:
encoder : Lavc56.60.100 aac
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
frame= 985 fps= 30 q=18.0 Lsize= 3988kB time=00:00:32.85 bitrate=
994.3kbits/s
video:3938kB audio:8kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 1.065508%
[libx264 @ 0x1de5f40] frame I:20 Avg QP:11.83 size:147475
[libx264 @ 0x1de5f40] frame P:965 Avg QP:21.21 size: 1122
[libx264 @ 0x1de5f40] mb I I16..4: 53.1% 0.0% 46.9%
[libx264 @ 0x1de5f40] mb P I16..4: 0.7% 0.0% 0.1% P16..4: 2.2% 0.1%
0.1% 0.0% 0.0% skip:96.9%
[libx264 @ 0x1de5f40] coded y,uvDC,uvAC intra: 34.7% 40.7% 36.8% inter:
0.9% 1.0% 0.5%
[libx264 @ 0x1de5f40] i16 v,h,dc,p: 54% 40% 6% 1%
[libx264 @ 0x1de5f40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 30% 14% 3% 4%
4% 5% 4% 6%
[libx264 @ 0x1de5f40] i8c dc,h,v,p: 65% 20% 14% 2%
[libx264 @ 0x1de5f40] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1de5f40] kb/s:982.36
abhijit at AHMCPU2092:~$
Regards,
Abhijit Nathwani
On Tue, Sep 11, 2018 at 2:56 AM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 2018-09-10 8:25 GMT+02:00, Abhijit Nathwani <abhijit.nathwani at gmail.com>:
>
> > I have been trying to record screen with audio using ffmpeg
>
> Command line and complete, uncut console output missing.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list