Allow specifying multiple inputs

The -i,--input option can be given multiple times, to read from multiple
input channels.