MP4 streams could be split into audio and video codec types, and the code was by default checking ffprobeOutput[0] which was possibly the audio codec type, so it couldn't get the video dimensions.
A sample MP4 file split into streams looks like https://pastebin.com/tsy5r4QR
I've kept the default behaviour so shouldn't break anything, but should handle MP4s that are split streams, like the above pastebin example.
MP4 streams could be split into audio and video codec types, and the code was by default checking
ffprobeOutput[0]
which was possibly the audio codec type, so it couldn't get the video dimensions. A sample MP4 file split into streams looks like https://pastebin.com/tsy5r4QR I've kept the default behaviour so shouldn't break anything, but should handle MP4s that are split streams, like the above pastebin example.