[FFmpeg-user] fade usage in complex filter
Jesse Koegler
jessekoegler at gmail.com
Fri Nov 4 21:18:39 EET 2016
Hi,
I am trying to add some fading in a complex filter. I`m not sure if this is
the correct approach or not -- I have a video where I want to do some
crossfading between scenes but I am stuck on simple fade. Ideally I want to
do something like this:
scene 1: frames 0-100 normal
-- frames 100-120 fade to scene 2
scene 2: frames 120-220 normal
--frames 220-240 fade to scene 3
..etc
But at this point I`m getting a 'too many inputs specified' error just
trying to test the fade filter
ffmpeg.exe -y -i "C:\Users\Public\Documents\Video
Recordings\99-99999-99\tempc-2016-11-04-14-34-14.avi" -preset faster -r 20
-tune film -c:v libx264 -b:a 96k -crf 27 -pixel_format yuv420p
-filter_complex
"[0:v]scale='trunc(oh*a/2)*2:600'[ready];[ready][0:v]fade=type=in:start_frame=100:nb_frames=20[out]"
-map "[out]" -map 0:a "C:\Users\Public\Documents\Compressed Video
Recordings\fdghdfgh.mp4"
ffmpeg version N-76224-ga7c5005 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 5.2.0 (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-libdcadec --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-lzma
--enable-decklink --enable-zlib
libavutil 55. 4.100 / 55. 4.100
libavcodec 57. 9.100 / 57. 9.100
libavformat 57. 10.101 / 57. 10.101
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 12.100 / 6. 12.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, avi, from 'C:\Users\Public\Documents\Video
Recordings\99-99999-99\tempc-2016-11-04-14-34-14.avi':
Metadata:
encoder : Lavf56.26.101
Duration: 00:00:32.95, start: 0.000000, bitrate: 2345 kb/s
Stream #0:0: Video: msmpeg4v3 (MP43 / 0x3334504D), yuv420p, 800x600,
1635 kb/s, 20 fps, 20 tbr, 20 tbn, 20 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 1
channels, s16, 705 kb/s
[AVFilterGraph @ 04ec9180] Too many inputs specified for the "fade" filter.
Error initializing complex filters.
Invalid argument
More information about the ffmpeg-user
mailing list