I want to go through a bunch of files in various sub folders within a root directory quickly to get the video and audio format type.
I can get the information I need from a single file using:
ffprobe file.mp4 2>&1 >/dev/null | grep "Stream"
I can run ffprobe for each file inside the root folder using
find . -name "*.mp4" -execdir ffprobe "{}" \;
What I am struggling with is to use grep with the second command to filter the output I want (as per the first command) and pipe the entire output into a file. What is the missing link/s here?