Why do I get a black box when I tile pictures with -filter_complex tile=2x1 in FFmpeg?

0

As I was trying to write a script (which attempts to join two pictures eventually) using FFmpeg I came across a very weird behaviour.

This is a command from I've found in the How to join two images into one with FFmpeg? thread:

ffmpeg -i a.jpg -i b.jpg -filter_complex scale=120:-1,tile=2x1 output.jpg
  • Input: a.jpg, b.jpg

    a.jpg b.jpg

  • Output: output.jpg

    output.jpg

What happened to the B cat? Why is it missing from the output image? I couldn't find any information why tile=2x1 behaves like this.

Mateusz Piotrowski

Posted 2016-06-19T09:14:21.397

Reputation: 2 768

Answers

1

The tile filter is when one wants to

Tile several successive frames together.

To stack two frames horizontally, use

ffmpeg -i a.jpg -i b.jpg -filter_complex [1]scale=120:-1[b];[0][b]hstack output.jpg

Gyan

Posted 2016-06-19T09:14:21.397

Reputation: 21 016

I get this error "At least one output file must be specified" – Zhen Liu – 2017-06-14T15:11:34.673