Simplify ffprobe output parsing using -print_output json

Produces better output than manual parsing.
As a side benefit, this method also supports avprobe output.