[FFmpeg-user] speeding up filter complex
Bouke (VideoToolShed)
bouke at videotoolshed.com
Sat Jun 28 11:38:41 CEST 2014
Trying to make a quad out of 4 input files.
All works swell, but the rendering is slow, while the process is only taking
up 15% CPU.
(With -threads 12 i'm getting 31 fps. Setting threads to 2 gives almost the
same speed, threads set to 1 gives my 28 fps.)
IO speed is not the bottleneck, as the input files are quite small.
Anything i can do to speed up the process?
Thx,
Bouke
C:\Users\Bouke\Desktop\BMtest\xtras\ffmpeg.exe -threads 12 -r 25 -ss
0.600 -i C:\Users\Bouke\Desktop\Adobe\creating\10_35_31_09_3.dnx -r 25 -i
C:\Users\Bouke\Desktop\Adobe\creating\10_35_31_09_4.dnx -r 25 -ss 1.880 -i
C:\Users\Bouke\Desktop\Adobe\creating\10_35_31_09_1.dnx -r 25 -ss 1.240 -i
C:\Users\Bouke\Desktop\Adobe\creating\10_35_31_09_2.dnx -filter_complex
"nullsrc=size=1920x1080 [base]; [0:v] setpts=PTS-STARTPTS, scale=960x540
[upperleft]; [1:v] setpts=PTS-STARTPTS, scale=960x540 [upperright]; [2:v]
setpts=PTS-STARTPTS, scale=960x540 [lowerleft]; [3:v] setpts=PTS-STARTPTS,
scale=960x540 [lowerright]; [base][upperleft] overlay=shortest=1 [tmp1];
[tmp1][upperright] overlay=shortest=1:x=960 [tmp2]; [tmp2][lowerleft]
overlay=shortest=1:y=540 [tmp3]; [tmp3][lowerright]
overlay=shortest=1:x=960:y=540" -b:v 36M -vcodec dnxhd -f rawvideo -an
C:\Users\Bouke\Desktop\Adobe\creating\10_35_31_09_quad.dnx 2>&1
-- "ffmpeg version N-60087-g94a5241 Copyright (c) 2000-2014 the FFmpeg
developers
built on Jan 21 2014 22:06:13 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth
--enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm
--enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib
libavutil 52. 63.100 / 52. 63.100
libavcodec 55. 48.102 / 55. 48.102
libavformat 55. 25.101 / 55. 25.101
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 1.100 / 4. 1.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, dnxhd, from
'C:\Users\Bouke\Desktop\Adobe\creating\10_35_31_09_3.dnx':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: dnxhd, yuv422p, 1920x1080, 25 fps, 25 tbr, 1200k
tbn, 25 tbc
Input #1, dnxhd, from
'C:\Users\Bouke\Desktop\Adobe\creating\10_35_31_09_4.dnx':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: dnxhd, yuv422p, 1920x1080, 25 fps, 25 tbr, 1200k
tbn, 25 tbc
Input #2, dnxhd, from
'C:\Users\Bouke\Desktop\Adobe\creating\10_35_31_09_1.dnx':
Duration: N/A, bitrate: N/A
Stream #2:0: Video: dnxhd, yuv422p, 1920x1080, 25 fps, 25 tbr, 1200k
tbn, 25 tbc
Input #3, dnxhd, from
'C:\Users\Bouke\Desktop\Adobe\creating\10_35_31_09_2.dnx':
Duration: N/A, bitrate: N/A
Stream #3:0: Video: dnxhd, yuv422p, 1920x1080, 25 fps, 25 tbr, 1200k
tbn, 25 tbc
Output #0, rawvideo, to
'C:\Users\Bouke\Desktop\Adobe\creating\10_35_31_09_quad.dnx':
Metadata:
encoder : Lavf55.25.101
Stream #0:0: Video: dnxhd, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-1024, 36000 kb/s, 90k tbn, 25 tbc (default)
Stream mapping:
Stream #0:0 (dnxhd) -> setpts
Stream #1:0 (dnxhd) -> setpts
Stream #2:0 (dnxhd) -> setpts
Stream #3:0 (dnxhd) -> setpts
overlay -> Stream #0:0 (dnxhd)
Press [q] to stop, [?] for help
frame= 14 fps=0.0 q=1.0 size= 2576kB time=00:00:00.56
bitrate=37683.2kbits/s
frame= 29 fps= 29 q=1.0 size= 5336kB time=00:00:01.16
bitrate=37683.2kbits/s
frame= 45 fps= 30 q=1.0 size= 8280kB time=00:00:01.80
bitrate=37683.2kbits/s
frame= 61 fps= 30 q=1.0 size= 11224kB time=00:00:02.44
bitrate=37683.2kbits/s
frame= 76 fps= 30 q=1.0 size= 13984kB time=00:00:03.04
bitrate=37683.2kbits/s
frame= 92 fps= 30 q=1.0 size= 16928kB time=00:00:03.68
bitrate=37683.2kbits/s
frame= 108 fps= 31 q=1.0 size= 19872kB time=00:00:04.32
bitrate=37683.2kbits/s
frame= 123 fps= 31 q=1.0 size= 22632kB time=00:00:04.92
bitrate=37683.2kbits/s
frame= 139 fps= 31 q=1.0 size= 25576kB time=00:00:05.56
bitrate=37683.2kbits/s
frame= 155 fps= 31 q=1.0 size= 28520kB time=00:00:06.20
bitrate=37683.2kbits/s
frame= 170 fps= 31 q=1.0 size= 31280kB time=00:00:06.80
bitrate=37683.2kbits/s
frame= 186 fps= 31 q=1.0 size= 34224kB time=00:00:07.44
bitrate=37683.2kbits/s
frame= 202 fps= 31 q=1.0 size= 37168kB time=00:00:08.08
bitrate=37683.2kbits/s
frame= 217 fps= 31 q=1.0 size= 39928kB time=00:00:08.68
bitrate=37683.2kbits/s
frame= 233 fps= 31 q=1.0 size= 42872kB time=00:00:09.32
bitrate=37683.2kbits/s
frame= 249 fps= 31 q=1.0 size= 45816kB time=00:00:09.96
bitrate=37683.2kbits/s
frame= 264 fps= 31 q=1.0 size= 48576kB time=00:00:10.56
bitrate=37683.2kbits/s
frame= 272 fps= 31 q=1.0 Lsize= 50048kB time=00:00:10.88
bitrate=37683.2kbits/s
video:50048kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.000000%
"
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
More information about the ffmpeg-user
mailing list