[FFmpeg-user] fast video codec for screen casting
dE .
de.techno at gmail.com
Fri Jan 6 11:10:06 CET 2012
On 01/06/12 00:52, Carl Eugen Hoyos wrote:
> dE .<de.techno<at> gmail.com> writes:
>
>> Using -f null I get full performance (upto 100 FPS) till I set -r 100
>> for the input.
> Right, I forgot that 30 is default (iiuc)
>
>> Above 100 I only get 3 or 4 FPS. So everything is good
>> with -f null.
>>
>> I think I did post the output -
>>
>> ffmpeg -f alsa -i default -f x11grab -s 1280x800 -i :0.0 -threads 1
>> -qscale 2 -threads 1 -b 20000k -vcodec mpeg1video -ar 44100 -ac 2.0
>> -acodec pcm_s16le out.avi
> Sure, but the command for which output (or info about fps) is needed is:
> ffmpeg -f x11grab -s 1280x800 -i :0.0 -f null -qscale 2 -threads 1 -vcodec
> mpeg1video -
>
> Carl Eugen
ffmpeg -f x11grab -s 1280x800 -i :0.0 -f null -qscale 2 -threads 1
-vcodec mpeg1video -
ffmpeg version N-36445-gc4eec85, Copyright (c) 2000-2012 the FFmpeg
developers
built on Jan 5 2012 01:11:11 with gcc 4.5.3
configuration: --prefix=/usr --libdir=/usr/lib64
--shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared
--cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++
--ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2
-fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block
-fgraphite-identity' --extra-cflags='-march=native -O2
-fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block
-fgraphite-identity' --extra-cxxflags='-march=native -O2
-fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block
-fgraphite-identity' --disable-static --enable-gpl --enable-version3
--enable-postproc --enable-avfilter --disable-stripping --disable-debug
--disable-doc --disable-network --disable-vaapi --disable-vdpau
--enable-libmp3lame --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
--enable-libaacplus --enable-nonfree --enable-openal --disable-indev=v4l
--disable-indev=v4l2 --disable-indev=oss --disable-i libavutil 51.
34.100 / 51. 34.100
libavcodec 53. 53.100 / 53. 53.100
libavformat 53. 29.100 / 53. 29.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 57.101 / 2. 57.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 5.100 / 0. 5.100
libpostproc 51. 2.100 / 51. 2.100
[x11grab @ 0xde6490] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1280
height: 800
[x11grab @ 0xde6490] shared memory extension found
[x11grab @ 0xde6490] Estimating duration from bitrate, this may be
inaccurate
Input #0, x11grab, from ':0.0':
Duration: N/A, start: 1325844551.317414, bitrate: 982057 kb/s
Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1280x800,
982057 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc
Incompatible pixel format 'bgra' for codec 'mpeg1video', auto-selecting
format 'yuv420p'
[buffer @ 0xdf41f0] w:1280 h:800 pixfmt:bgra tb:1/1000000 sar:0/1
sws_param:
[buffersink @ 0xde6430] auto-inserting filter 'auto-inserted scale 0'
between the filter 'src' and the filter 'out'
[scale @ 0xdf5770] w:1280 h:800 fmt:bgra -> w:1280 h:800 fmt:yuv420p
flags:0x4
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf53.29.100
Stream #0:0: Video: mpeg1video, yuv420p, 1280x800, q=2-31, 200
kb/s, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> mpeg1video)
Press [q] to stop, [?] for help
frame= 19 fps= 0 q=2.0 size= 0kB time=00:00:00.60 bitrate=
0.0kbits/s dup=11 drop=0 frame= 36 fps= 33 q=2.0 size= 0kB
time=00:00:01.16 bitrate= 0.0kbits/s dup=20 drop=0 frame= 51 fps=
32 q=2.0 size= 0kB time=00:00:01.66 bitrate= 0.0kbits/s dup=28
drop=0 frame= 68 fps= 31 q=2.0 size= 0kB time=00:00:02.23
bitrate= 0.0kbits/s dup=37 drop=0 frame= 85 fps= 31 q=2.0
size= 0kB time=00:00:02.80 bitrate= 0.0kbits/s dup=46 drop=0
frame= 100 fps= 31 q=2.0 size= 0kB time=00:00:03.30 bitrate=
0.0kbits/s dup=54 drop=0 frame= 115 fps= 31 q=2.0 size= 0kB
time=00:00:03.80 bitrate= 0.0kbits/s dup=62 drop=0 frame= 132 fps=
31 q=2.0 size= 0kB time=00:00:04.37 bitrate= 0.0kbits/s dup=71
drop=0 frame= 148 fps= 31 q=2.0 size= 0kB time=00:00:04.90
bitrate= 0.0kbits/s dup=80 drop=0 frame= 164 fps= 31 q=2.0
size= 0kB time=00:00:05.43 bitrate= 0.0kbits/s dup=89 drop=0
frame= 179 fps= 30 q=2.0 size= 0kB time=00:00:05.93 bitrate=
0.0kbits/s dup=97 drop=0 frame= 196 fps= 30 q=2.0 size= 0kB
time=00:00:06.50 bitrate= 0.0kbits/s dup=106 drop=0 frame= 211 fps=
30 q=2.0 size= 0kB time=00:00:07.00 bitrate= 0.0kbits/s dup=114
drop=0 frame= 227 fps= 30 q=2.0 size= 0kB time=00:00:07.54
bitrate= 0.0kbits/s dup=123 drop=0 frame= 231 fps= 30 q=2.0
Lsize= 0kB time=00:00:07.67 bitrate= 0.0kbits/s dup=125 drop=0
video:9164kB audio:0kB global headers:0kB muxing overhead -100.000000%
More information about the ffmpeg-user
mailing list