I have a folder of mixed video files (multiple formats for web display mp4, ogv, webm). When retrieving those files in Java I can verify the format by pulling the extension from the filename. **Is there a way to retrieve other information such as video and audio codec data from the file?**

To create the files I am using ffmpeg from within Java to transcode video files to the formats and sizes I need, so when the file is being created I do know the codec information. **If its not automatically stored somewhere in the file, is there a way to set metadata or something and store the info manually so I can retrieve it later?** I am not using a database to store file locations or other data, just simply scanning and retrieving from the file system.