[FFmpeg-user] -vf split + overlay uses all RAM

Mark Himsley mark at mdsh.com
Sat Dec 31 19:03:12 CET 2011


Running this command uses all RAM (and lots of swap) and outputs no
frames to the output file:

ffmpeg -loglevel verbose -i input.mov -vf
"split[one][two];[one][two]overlay=0:0" -aspect 16:9 -vcodec dvvideo
-acodec pcm_s16le -ac 2 -y output.mov

I know it's a crazy command, but I was trying to overlay a smaller
version of a video over its self, like this:

./ffmpeg -loglevel verbose -i input.mov -vf
"split[one][two];[two]scale=200:200[three];[one][three]overlay=0:0[out]"
-aspect 16:9 -vcodec dvvideo -acodec pcm_s16le -ac 2 -y output.mov

That also uses all RAM and swap and doesn't output any frames, so I
tried the simpler version.

Can anyone else confirm this?


This is the full command and output:

$ ./ffmpeg -loglevel verbose -i input.mov -vf
"split[one][two];[one][two]overlay=0:0" -aspect 16:9 -vcodec dvvideo
-acodec pcm_s16le -ac 2 -y output.mov
ffmpeg version N-36253-g1941549, Copyright (c) 2000-2011 the FFmpeg
developers
  built on Dec 30 2011 11:24:18 with gcc 4.0.1 (Apple Inc. build 5490)
  configuration: --cpu=i686 --extra-cflags='-I$PREFIX/include'
--extra-libs='-L$PREFIX/lib' --prefix=/usr/local --disable-ffplay
--disable-indev=x11_grab_device --enable-gpl --enable-version3
--enable-nonfree --enable-pthreads --enable-libdirac --enable-libgsm
--enable-libmp3lame --enable-libvpx --enable-libx264
  libavutil      51. 33.100 / 51. 33.100
  libavcodec     53. 49.100 / 53. 49.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 55.100 /  2. 55.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
  Metadata:
    creation_time   : 2008-03-05 08:55:33
  Duration: 00:00:22.00, start: 0.000000, bitrate: 28899 kb/s
    Stream #0:0(eng): Video: dvvideo (dvcp / 0x70637664), yuv420p,
720x576 [SAR 64:45 DAR 16:9], 28800 kb/s, SAR 118:81 DAR 295:162, 25
fps, 25 tbr, 25k tbn, 25 tbc
    Metadata:
      creation_time   : 2008-03-05 08:55:34
      handler_name    : ?Apple Alias Data Handler
[buffer @ 0x1223620] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:118/81
sws_param:
[overlay @ 0x1224110] auto-inserting filter 'auto-inserted scale 0'
between the filter 'Parsed_split_0' and the filter 'Parsed_overlay_1'
[scale @ 0x1224410] w:720 h:576 fmt:yuv420p -> w:720 h:576 fmt:yuva420p
flags:0x4
[overlay @ 0x1224110] main w:720 h:576 fmt:yuv420p overlay x:0 y:0 w:720
h:576 fmt:yuva420p
[overlay @ 0x1224110] main_tb:1/1000000 overlay_tb:1/1000000 ->
tb:1/1000000 exact:1
Output #0, mov, to 'output.mov':
  Metadata:
    creation_time   : 2008-03-05 08:55:33
    encoder         : Lavf53.29.100
    Stream #0:0(eng): Video: dvvideo (dvcp / 0x70637664), yuv420p,
720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Metadata:
      creation_time   : 2008-03-05 08:55:34
      handler_name    : ?Apple Alias Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (dvvideo -> dvvideo)
Press [q] to stop, [?] for help
Killed

-- 
Mark


More information about the ffmpeg-user mailing list