[FFmpeg-user] Desktop Capture 'Jerky'

derekg dhopley2000 at gmail.com
Mon Mar 6 16:29:14 EET 2017



On 06/03/17 13:58, Moritz Barsnick wrote:
> On Mon, Mar 06, 2017 at 13:22:51 +0000, derekg wrote:
>> Dear Carl Eugen ,
> Why just him? ;)
>
>> addition of '--enable libasound' in the compilation stage . An ffmpeg
>> capture process successfully captures both video and sound , however
>> unsurprisingly on the older machine it is a little jerky . I've used
>> ffmpeg -f alsa -f pulse -ac 2 -i default -f x11grab -s 1920x1080 -r 60
>> -i :0.0 -qscale 0 -f mpeg -ar 48000 -s wvga -y /media/sda5/sample.mkv to
> Could you please post the *actual* command lines (this/these has/have
> some errors in it), along with their complete, uncut console output?
> (Copy/paste from the shell, not screenshot.)
>
> There's probably a lot that can be improved, but we need the info which
> ffmpeg's log kindly provides.
>
> Moritz
> _______________________________________________
> 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".

Dear Fellow User (Moritz) ,

I apologise if not using the correct protocol and hope that I'm also 
following the 'Top Posting' format correctly . Please find attached my 
bash script and about thirty (30) seconds of execution of that script 
together with the 'out.txt' console log . I hope that is what you've 
requested . Thank you ,

Derek

-------------- next part --------------
#!/bin/sh
ffmpeg -f alsa -f pulse -ac 2 -i default -f x11grab -s 1920x1080 -r 60 -i :0.0 -qscale 0 -f mpeg -ar 48000 -s wvga -y /media/sda5/sample.mkv > out.txt 2>&1
exit 
-------------- next part --------------
ffmpeg version N-83743-gd757ddb Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.5-2ubuntu1~14.04.1)
  configuration: --prefix=/home/derek/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/derek/ffmpeg_build/include --extra-ldflags=-L/home/derek/ffmpeg_build/lib --bindir=/home/derek/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libpulse --enable-nonfree
  libavutil      55. 47.101 / 55. 47.101
  libavcodec     57. 82.100 / 57. 82.100
  libavformat    57. 66.103 / 57. 66.103
  libavdevice    57.  3.100 / 57.  3.100
  libavfilter     6. 74.100 /  6. 74.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, pulse, from 'default':
  Duration: N/A, start: 1488809814.796631, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[x11grab @ 0x35873e0] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #1, x11grab, from ':0.0':
  Duration: N/A, start: 1488809814.835099, bitrate: N/A
    Stream #1:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 60 fps, 1000k tbr, 1000k tbn, 1000k tbc
Please use -q:a or -q:v, -qscale is ambiguous
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> mpeg1video (native))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> mp2 (native))
Press [q] to stop, [?] for help
[pulse @ 0x357d2c0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[mpeg @ 0x358ea40] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to '/media/sda5/sample.mkv':
  Metadata:
    encoder         : Lavf57.66.103
    Stream #0:0: Video: mpeg1video, yuv420p(progressive), 852x480, q=2-31, 200 kb/s, 60 fps, 90k tbn, 60 tbc
    Metadata:
      encoder         : Lavc57.82.100 mpeg1video
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
    Metadata:
      encoder         : Lavc57.82.100 mp2
[x11grab @ 0x35873e0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
frame=   18 fps=0.0 q=0.0 size=     184kB time=00:00:00.26 bitrate=5790.5kbits/s speed=0.514x    
frame=   36 fps= 36 q=0.0 size=     276kB time=00:00:00.56 bitrate=3980.3kbits/s speed=0.563x    
frame=   55 fps= 36 q=0.0 size=     474kB time=00:00:00.87 bitrate=4423.3kbits/s speed=0.581x    
frame=   75 fps= 37 q=0.0 size=     662kB time=00:00:01.22 bitrate=4433.5kbits/s speed= 0.6x    
frame=   96 fps= 38 q=0.0 size=     786kB time=00:00:01.55 bitrate=4131.7kbits/s speed=0.611x    
frame=  116 fps= 38 q=0.0 size=     992kB time=00:00:01.89 bitrate=4283.0kbits/s speed=0.621x    
frame=  135 fps= 38 q=0.0 size=    1178kB time=00:00:02.21 bitrate=4360.2kbits/s speed=0.619x    
frame=  155 fps= 38 q=0.0 size=    1302kB time=00:00:02.55 bitrate=4179.2kbits/s speed=0.624x    
frame=  175 fps= 38 q=0.0 size=    1508kB time=00:00:02.88 bitrate=4275.9kbits/s speed=0.628x    
frame=  196 fps= 38 q=0.0 size=    1708kB time=00:00:03.22 bitrate=4336.5kbits/s speed=0.63x    
frame=  215 fps= 38 q=0.0 size=    1816kB time=00:00:03.54 bitrate=4199.2kbits/s speed=0.628x    
frame=  235 fps= 38 q=0.0 size=    2022kB time=00:00:03.87 bitrate=4270.2kbits/s speed=0.631x    
[mpeg1video @ 0x35902c0] warning, clipping 1 dct coefficients to -255..255
    Last message repeated 1 times
frame=  254 fps= 38 q=0.0 size=    2144kB time=00:00:04.19 bitrate=4186.7kbits/s speed=0.63x    
frame=  271 fps= 38 q=0.0 size=    2376kB time=00:00:04.48 bitrate=4335.4kbits/s speed=0.627x    
frame=  290 fps= 38 q=0.0 size=    2526kB time=00:00:04.80 bitrate=4309.6kbits/s speed=0.626x    
frame=  309 fps= 38 q=0.0 size=    2752kB time=00:00:05.11 bitrate=4403.9kbits/s speed=0.626x    
frame=  327 fps= 38 q=0.0 size=    2964kB time=00:00:05.41 bitrate=4487.8kbits/s speed=0.623x    
frame=  346 fps= 38 q=0.0 size=    3126kB time=00:00:05.72 bitrate=4473.0kbits/s speed=0.623x    
frame=  364 fps= 38 q=0.0 size=    3354kB time=00:00:06.04 bitrate=4548.6kbits/s speed=0.623x    
frame=  385 fps= 38 q=0.0 size=    3506kB time=00:00:06.37 bitrate=4503.6kbits/s speed=0.625x    
frame=  404 fps= 38 q=0.0 size=    3728kB time=00:00:06.69 bitrate=4564.0kbits/s speed=0.624x    
frame=  423 fps= 38 q=0.0 size=    3936kB time=00:00:07.00 bitrate=4600.9kbits/s speed=0.624x    
frame=  443 fps= 38 q=0.0 size=    4086kB time=00:00:07.34 bitrate=4557.2kbits/s speed=0.625x    
frame=  462 fps= 38 q=0.0 size=    4312kB time=00:00:07.65 bitrate=4611.9kbits/s speed=0.625x    
frame=  481 fps= 38 q=0.0 size=    4472kB time=00:00:07.97 bitrate=4591.6kbits/s speed=0.625x    
frame=  501 fps= 38 q=0.0 size=    4688kB time=00:00:08.31 bitrate=4619.8kbits/s speed=0.626x    
frame=  520 fps= 38 q=0.0 size=    4924kB time=00:00:08.62 bitrate=4674.7kbits/s speed=0.625x    
frame=  540 fps= 38 q=0.0 size=    5084kB time=00:00:08.96 bitrate=4644.4kbits/s speed=0.626x    
frame=  559 fps= 38 q=0.0 size=    5302kB time=00:00:09.28 bitrate=4678.3kbits/s speed=0.626x    
frame=  578 fps= 38 q=0.0 size=    5430kB time=00:00:09.59 bitrate=4636.0kbits/s speed=0.625x    
frame=  598 fps= 38 q=0.0 size=    5660kB time=00:00:09.93 bitrate=4667.1kbits/s speed=0.626x    
frame=  617 fps= 38 q=0.0 size=    5894kB time=00:00:10.24 bitrate=4713.1kbits/s speed=0.625x    
frame=  636 fps= 38 q=0.0 size=    6032kB time=00:00:10.56 bitrate=4679.0kbits/s speed=0.624x    
frame=  654 fps= 38 q=0.0 size=    6260kB time=00:00:10.87 bitrate=4716.1kbits/s speed=0.624x    
frame=  674 fps= 38 q=0.0 size=    6392kB time=00:00:11.19 bitrate=4678.5kbits/s speed=0.624x    
frame=  694 fps= 38 q=0.0 size=    6612kB time=00:00:11.52 bitrate=4698.0kbits/s speed=0.624x    
frame=  713 fps= 38 q=0.0 size=    6832kB time=00:00:11.84 bitrate=4725.5kbits/s speed=0.624x    
frame=  733 fps= 38 q=0.0 size=    6976kB time=00:00:12.18 bitrate=4691.8kbits/s speed=0.625x    
frame=  753 fps= 38 q=0.0 size=    7204kB time=00:00:12.51 bitrate=4714.1kbits/s speed=0.626x    
frame=  772 fps= 38 q=0.0 size=    7434kB time=00:00:12.83 bitrate=4745.0kbits/s speed=0.625x    
frame=  791 fps= 38 q=0.0 size=    7578kB time=00:00:13.15 bitrate=4720.6kbits/s speed=0.625x    
frame=  810 fps= 38 q=0.0 size=    7834kB time=00:00:13.46 bitrate=4767.8kbits/s speed=0.624x    
frame=  829 fps= 38 q=0.0 size=    7994kB time=00:00:13.77 bitrate=4753.7kbits/s speed=0.624x    
frame=  848 fps= 38 q=0.0 size=    8246kB time=00:00:14.09 bitrate=4794.0kbits/s speed=0.624x    
frame=  866 fps= 38 q=0.0 size=    8400kB time=00:00:14.40 bitrate=4776.6kbits/s speed=0.624x    
frame=  885 fps= 38 q=0.0 size=    8642kB time=00:00:14.72 bitrate=4808.9kbits/s speed=0.624x    
frame=  903 fps= 37 q=0.0 size=    8856kB time=00:00:15.01 bitrate=4831.7kbits/s speed=0.623x    
frame=  922 fps= 37 q=0.0 size=    9026kB time=00:00:15.33 bitrate=4823.2kbits/s speed=0.623x    
frame=  941 fps= 37 q=0.0 size=    9266kB time=00:00:15.64 bitrate=4852.4kbits/s speed=0.623x    
frame=  960 fps= 37 q=0.0 size=    9418kB time=00:00:15.96 bitrate=4833.7kbits/s speed=0.623x    
frame=  980 fps= 37 q=0.0 size=    9656kB time=00:00:16.29 bitrate=4853.5kbits/s speed=0.623x    
frame=  997 fps= 37 q=0.0 size=    9810kB time=00:00:16.58 bitrate=4845.0kbits/s speed=0.623x    
frame= 1016 fps= 37 q=0.0 size=   10050kB time=00:00:16.90 bitrate=4870.2kbits/s speed=0.623x    
frame= 1035 fps= 37 q=0.0 size=   10266kB time=00:00:17.21 bitrate=4884.0kbits/s speed=0.622x    
frame= 1055 fps= 37 q=0.0 size=   10436kB time=00:00:17.55 bitrate=4869.5kbits/s speed=0.623x    
frame= 1074 fps= 37 q=0.0 size=   10668kB time=00:00:17.87 bitrate=4889.5kbits/s speed=0.623x    
frame= 1093 fps= 37 q=0.0 size=   10824kB time=00:00:18.18 bitrate=4875.7kbits/s speed=0.623x    
frame= 1112 fps= 37 q=0.0 size=   11056kB time=00:00:18.50 bitrate=4895.6kbits/s speed=0.623x    
frame= 1131 fps= 37 q=0.0 size=   11274kB time=00:00:18.81 bitrate=4908.4kbits/s speed=0.622x    
frame= 1151 fps= 37 q=0.0 size=   11450kB time=00:00:19.15 bitrate=4897.4kbits/s speed=0.623x    
frame= 1172 fps= 37 q=0.0 size=   11690kB time=00:00:19.49 bitrate=4913.3kbits/s speed=0.623x    
frame= 1190 fps= 37 q=0.0 size=   11842kB time=00:00:19.80 bitrate=4898.0kbits/s speed=0.623x    
frame= 1211 fps= 37 q=0.0 size=   12082kB time=00:00:20.14 bitrate=4913.6kbits/s speed=0.623x    
frame= 1230 fps= 37 q=0.0 size=   12326kB time=00:00:20.45 bitrate=4935.7kbits/s speed=0.623x    
frame= 1250 fps= 37 q=0.0 size=   12484kB time=00:00:20.79 bitrate=4917.9kbits/s speed=0.624x    
frame= 1269 fps= 37 q=0.0 size=   12714kB time=00:00:21.11 bitrate=4933.7kbits/s speed=0.624x    
frame= 1288 fps= 37 q=0.0 size=   12942kB time=00:00:21.42 bitrate=4948.3kbits/s speed=0.623x    
frame= 1307 fps= 37 q=0.0 size=   13088kB time=00:00:21.74 bitrate=4931.3kbits/s speed=0.623x    
frame= 1327 fps= 37 q=0.0 size=   13318kB time=00:00:22.07 bitrate=4941.6kbits/s speed=0.624x    
frame= 1347 fps= 37 q=0.0 size=   13540kB time=00:00:22.41 bitrate=4948.3kbits/s speed=0.624x    
frame= 1366 fps= 37 q=0.0 size=   13700kB time=00:00:22.73 bitrate=4937.2kbits/s speed=0.624x    
frame= 1385 fps= 37 q=0.0 size=   13928kB time=00:00:23.04 bitrate=4950.8kbits/s speed=0.624x    
frame= 1405 fps= 37 q=0.0 size=   14082kB time=00:00:23.38 bitrate=4933.1kbits/s speed=0.624x    
frame= 1424 fps= 37 q=0.0 size=   14312kB time=00:00:23.69 bitrate=4947.3kbits/s speed=0.624x    
frame= 1444 fps= 38 q=0.0 size=   14546kB time=00:00:24.03 bitrate=4957.0kbits/s speed=0.625x    
frame= 1463 fps= 38 q=0.0 size=   14692kB time=00:00:24.35 bitrate=4942.1kbits/s speed=0.624x    
frame= 1482 fps= 38 q=0.0 size=   14930kB time=00:00:24.66 bitrate=4958.3kbits/s speed=0.624x    
frame= 1494 fps= 38 q=0.0 Lsize=   15084kB time=00:00:24.87 bitrate=4966.9kbits/s speed=0.625x    
video:13667kB audio:1330kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.584924%
Exiting normally, received signal 2.


More information about the ffmpeg-user mailing list