Connecting multiple encoders in to STM32 TIMx hardware counter (using channels 3+4)
It's not possible. Each TIM module has only 1 (single) counter. Encoder mode is simply a clocking logic, which increments or decrements the single counter according to signals coming from input channels.