Нужно отрисовать две последовательности картинок в видео, наложить картинку поверх, добавить аудио.
Однострочник сейчас выглядит так:
ffmpeg -y -framerate 144 -i katana_bad_%04d.jpg -framerate 144 -i katana_good_%04d.jpg -filter_complex "[0:v]crop=iw/2:ih:iw*0.33:0[left];[1:v]crop=iw/2:ih:iw*0.33:0[right];[left][right]hstack" -i katana_videolayer.tga -filter_complex "overlay=0:0" -i katana_bad_.WAV out.mkv
Вывод:
[xdshot@pbody-pc left4dead2]$ bash render.sh
ffmpeg version n4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.1.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, image2, from 'katana_bad_%04d.jpg':
Duration: 00:01:15.90, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 144 fps, 144 tbr, 144 tbn, 144 tbc
Input #1, image2, from 'katana_good_%04d.jpg':
Duration: 00:01:15.90, start: 0.000000, bitrate: N/A
Stream #1:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 144 fps, 144 tbr, 144 tbn, 144 tbc
Input #2, image2, from 'katana_videolayer.tga':
Duration: 00:00:00.04, start: 0.000000, bitrate: 255060 kb/s
Stream #2:0: Video: targa, bgra, 1920x1080, 25 tbr, 25 tbn, 25 tbc
Guessed Channel Layout for Input Stream #3.0 : stereo
Input #3, wav, from 'katana_bad_.WAV':
Duration: 00:01:15.90, bitrate: 1411 kb/s
Stream #3:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_overlay_0
[xdshot@pbody-pc left4dead2]$
Как правильно сделать?