[FFmpeg-user] Lavfi video generator slow performance

Elliott Balsley elliottbalsley at gmail.com
Fri Apr 6 03:04:55 EEST 2018


Thank you, with that suggestion I do get approximately double the speed.
But still my CPU usage is very low.  Is there any way to get more
performance out of this?


ffmpeg.exe -f lavfi -i color=color=red:s=3840x2160 -t 60 -pix_fmt rgb48le
-y -s 3840x2160 TIFF\output%4d.tiff
ffmpeg version N-90615-g53688b62ca Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 7.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth
  libavutil      56. 13.100 / 56. 13.100
  libavcodec     58. 17.100 / 58. 17.100
  libavformat    58. 10.100 / 58. 10.100
  libavdevice    58.  2.100 / 58.  2.100
  libavfilter     7. 14.100 /  7. 14.100
  libswscale      5.  0.102 /  5.  0.102
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
Input #0, lavfi, from 'color=color=red:s=3840x2160':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 3840x2160
[SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> tiff (native))
Press [q] to stop, [?] for help
[swscaler @ 0000023b208b59c0] No accelerated colorspace conversion found
from yuv420p to rgb48le.
Output #0, image2, to 'TIFF\output%4d.tiff':
  Metadata:
    encoder         : Lavf58.10.100
    Stream #0:0: Video: tiff, rgb48le, 3840x2160 [SAR 1:1 DAR 16:9],
q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.17.100 tiff
frame=  272 fps= 13 q=-0.0 Lsize=N/A time=00:00:10.88 bitrate=N/A
speed=0.536x
video:8817448kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Exiting normally, received signal 2.

(I canceled it with Ctrl-C)

On Wed, Apr 4, 2018 at 4:08 PM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> 2018-04-05 0:56 GMT+02:00, Elliott Balsley <elliottbalsley at gmail.com>:
>
> > ffmpeg -f lavfi -i color=color=red -t 60 -pix_fmt rgb48le -y
> > -s 3840x2160 ffmpeg\%4d.tiff
>
> Complete, uncut console output missing.
>
> You get significantly higher performance if you tell
> the color filter to create its output at the size you
> wish instead of scaling later:
> color=color=red:s=3840x2160
>
> 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