I want to attach 2 videos using hstack filter and this is what I am doing, resizing 1 of the video files (to match same height) and then proceeding to merge. This is happening as 2 different steps,
ffmpeg -y -i inputVideo1 -vf scale=-2:900 outputVideo1ffmpeg -y -i outputVideo1 -i inputVideo2 -c:v libx264 -filter_complex hstack outputVideo2.mp4
This is taking longer time. How do I make this happen in a single step? Something like,
ffmpeg -i inputVideo1 (something here) outputVideo1 (take this as input) -i inputVideo2 (hstack and stuff) outputVideo2.mp4```