Note that ffprobe can output JSON which is much easier to handle than CSV. I have this snippet in my bashrc:
ffpj() { for f in "$@"; do ffprobe -v quiet -print_format json -show_format -show_streams "$f"; done }