title: Is there a way to use ffmpeg to determine the encoding of a file before transcoding?
body: <p>I am planning to use ffmpeg to ensure all video files uploaded to my website are encoded as mp4 h264. </p>
  
  <p>Rather than automatically processing every file I would like to minimise the processing overhead by only processing those files that are not already mp4 h264. Is there an easy way to do this either with ffmpeg or with another command line utility?</p>