[FFmpeg-user] Overlay a video with a image at multiple offsets and of varying duration?
Ryan Williams
rwilliams at busivid.com
Thu Jan 7 02:16:55 CET 2016
I suspect you have a syntax error in your filter_complex with use of double quotes.
Also your input/output pad mapping is incomplete.
give this a try -filter_complex "[0][1]overlay=enable='between(t,1,5)'[tmp]; [tmp][1]overlay=enable='between(t,10,20)'"
-----Original Message-----
From: ffmpeg-user [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Garside, Vic
Sent: Thursday, 7 January 2016 11:39
To: ffmpeg-user at ffmpeg.org
Subject: [FFmpeg-user] Overlay a video with a image at multiple offsets and of varying duration?
Hi,
I'm trying to overlay an image on different parts of a video. If I use a single overlay command it will overlay the image for the time period I pass in.
However, when I create a command line for FFMPEG that should overlay the image on the frames from 1-5 seconds and 10-20 seconds the command below fails with the error "Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_overlay_1". I thought that filter chains take as input the previous filter's output but obviously not how I have constructed it.
How can I overlay the video with a image at multiple offsets and varying duration?
Thanks,
ffmpeg -i adpod.mkv -i output.bmp -filter_complex "overlay=enable='between(t,1,5)'","overlay=enable='between(t,10,20)'" output.mp4
ffmpeg version N-67091-ge397edb Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 21 2014 22:01:56 with gcc 4.9.1 (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-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --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-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 54. 10.100 / 54. 10.100
libavcodec 56. 8.102 / 56. 8.102
libavformat 56. 9.101 / 56. 9.101
libavdevice 56. 1.100 / 56. 1.100
libavfilter 5. 2.100 / 5. 2.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'adpod.mkv':
Metadata:
ENCODER : Lavf54.63.104
Duration: 00:01:00.23, start: 0.200000, bitrate: 1163 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 768x432 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, fltp (default) Input #1, bmp_pipe, from 'output.bmp':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: bmp, bgr24, 768x432, 25 tbr, 25 tbn, 25 tbc Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_overlay_1
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list